sorry, just saw this

19.1K posts

sorry, just saw this

sorry, just saw this

@fashy

About yourself in fewer than 160 chars. About yourself in fewer than 160 chars. About yourself in fewer than 160 chars. About yourself in fewer than 160 chars.

USA 가입일 Mayıs 2008
743 팔로잉134 팔로워
Thorn
Thorn@ThornVaux·
@saltyAom No there have been memory safe languages for decades. It's trivial to prevent memory leaks in Java and Rust. They're also simple to detect since if you try the program halts and says you can't do that. Fixing them is also fairly simple. Hard is silent leaks like Heart Bleed
English
1
0
0
349
SaltyAom
SaltyAom@saltyAom·
It’s ludicrous easy to accidentally create memory leaks, really hard to fix without rewrite the entire thing and almost impossible to pin down where There’s also absolute zero tools to prevent or easily detect that, not even a linter
English
9
7
143
7.2K
sorry, just saw this
@BenjiGameDev Sees to imply that the answerer did something wrong, but end users should not be held responsible for how and whether search engines in the future decide to rank or derank things
English
0
0
0
6
Benji
Benji@BenjiGameDev·
when you google a question and the top result is a link to a forum where someone asked the same question and the top reply is "I’m curious if you tried googling?"
English
9
2
67
2.8K
sorry, just saw this
@yitscar If it doesn’t correctly handle 100% of valid C++ by spec, then it’s a terrible lexer that should be retired. That’s the job
English
1
0
0
6
Nikita Lisitsa
Nikita Lisitsa@lisyarus·
Since I'm teaching C++ I can just straight up tell the students about the "converges to" operator
Nikita Lisitsa tweet media
English
28
10
846
68.9K
sleepy
sleepy@Sl33pyThingg·
@N4pstr Fuck the sensor bar all together, just get a wiimote with wii motion plus & emulate it
English
6
0
15
11.2K
sorry, just saw this
@valigo “This creator is a backup of tsoding from the era during which he was a backup of primeagen”
English
0
0
0
52
Yitscar ⏹️
Yitscar ⏹️@yitscar·
@lisyarus Any lexer that would accept "-->" as two tokens is an abomination.
English
2
0
0
244
simey
simey@simeydotme·
@JLarky Absolutely abhor code font let ligatures, the triple equals and not equals is so ick With your example idek what I'm looking at, what is that even supposed to be? A yoke? Terrible!
English
1
0
1
586
JLarky
JLarky@JLarky·
why I would never use those stupid ligatures in my terminal
JLarky tweet mediaJLarky tweet media
English
7
2
166
20.7K
sorry, just saw this
@JLarky @Shreyassanthu77 Specifically, do you meant all font ligatures should be off by default in ghostty? Or just the “contextual alternates”? Unfortunately depending on the font, both of those choices might not solve the user problems. It’s all maybes & tradeoffs. But I hate the JB Mono ligatures too
English
0
0
0
4
JLarky
JLarky@JLarky·
@Shreyassanthu77 Top screenshot? :) I think it's build by people who asked tok many "wouldn't it be cool if ...?" and not enough "how do we make it actually useful?"
English
2
0
2
130
sorry, just saw this
@JLarky @Shreyassanthu77 mux is just a common abbreviation for a multiplexer, if we are going by other names we should maybe assume cmux is some sort of multiplexer for the C/C++ languages
English
0
0
0
6
JLarky
JLarky@JLarky·
@Shreyassanthu77 Two worst parts of it so far: ghostty and the fact that the name implies that it's somehow related to tmux I mean, it's better than default terminal, but way worse if you actually care about terminals 😂
English
2
0
2
164
sorry, just saw this
@devinjameson @DavidKPiano That’s just what programming is. When you have powerful and expressive tools, understanding the best ways to use them for each situation means understanding a lot more than syntax. It’s on you to know when constructs are positive and when they’re negative. All frameworks & lang.
English
1
0
0
24
Devin Jameson
Devin Jameson@devinjameson·
@DavidKPiano Quick React tip: stop using React. After 10+ years, we’re still sharing “tips” like this to avoid shooting ourselves in the foot. This should tell you something about the quality of the tool. None of us have any toes left.
English
3
0
5
710
David K 🎹
David K 🎹@DavidKPiano·
Quick React tip: don't subscribe to data that you don't render; it causes unnecessary rerenders. If it's only used in event handlers, read it there. AI coding agents tend to get this wrong.
David K 🎹 tweet media
English
25
26
607
55K
milky
milky@timetravelslop2·
ive been reading books of old
milky tweet media
English
28
1.1K
19K
288.1K
sorry, just saw this
@Aspie96 @SebAaltonen Such considerations are generally left to an optimization called dead store elimination, which is not based on how the operator is used but rather whether the result is used, and they fall within a separate optim step from the initial semantic analysis. And again, it’s optional
English
0
0
0
9
Valentino Giudice
Valentino Giudice@Aspie96·
@fashy @SebAaltonen The compiler needs to know what is and isn't a valid instruction and handle any unused result correctly. The compiler already knows that the meaning of "i++" is different when used as part of a wider expression or instructions and when used as an instruction on its own.
English
1
0
0
19
Sebastian Aaltonen
Sebastian Aaltonen@SebAaltonen·
Pre-increment operator doesn't need to create a temporary copy of the object. It can be faster. No difference for integers of course (they are in registers), but matters if you use a complex iterator object. Compiler tries to optimize the copy away in release builds.
Тsфdiиg@tsoding

People often ask me why do I choose to do pre-increments in my for-loops instead of post-increments. The answer is actually very simple. I don't fucking know, stop asking me that.

English
16
5
235
25K
Valentino Giudice
Valentino Giudice@Aspie96·
@fashy @SebAaltonen Not all expressions are valid instructions in C the way they are in (for example) Python. Pick the name of a variable: it can be used as an expression, but not as an instruction on its own.
English
2
0
0
23
sorry, just saw this
@Aspie96 @SebAaltonen That is not correct, at least for C. For one, there’s no concept of a “command” form. It’s just an expression with an unused result. & Compilers are free to wastefully store unused data while still being fully spec-compliant. And they typically do when optimizations are disabled
English
1
0
0
14
Valentino Giudice
Valentino Giudice@Aspie96·
@SebAaltonen i++ and ++i have different meanings when used as expressions vs when used as commands. When used as commands they don't return anything, they are commands. No output value is stored, added to the stack or sent to anything. And when used as commands they have the same meaning.
English
2
0
0
142
コーラ(趣味)ボンバー
日本を英語にするとJAPANなのよく考えたら謎だな NIHON、NIPPONならともかくJはどの辺から取ってきたんだ
日本語
913
516
36.3K
11.5M
sorry, just saw this
@mrsteyk1 @valigo There are quite a few pieces of software (mostly games) even today with bugs or performance degradations that are worked around by end users renaming the .exe
English
0
0
1
50
mrsteyk
mrsteyk@mrsteyk1·
@valigo I remember seeing a reddit post a couple years ago about a guy changing his application or engine name (don’t remember) and getting better perf, so yes?
English
1
0
9
910
Valentin Ignatev
Valentin Ignatev@valigo·
Because old graphics APIs were very high-level, drivers had a lot of compex code to optimize specific games and game engines on case-by-case basis, and every driver changelog would have a list of games with improved FPS. To my knowledge, Vulkan generation of graphics APIs meant to give a lot more control to programmers, specifically so that drivers can remove all of this bloat. However, Vulkan's VkApplicationInfo has fields for game/engine names and versions. Why is it needed? So that the driver can have special cases for it built in? If so - doesn't it kinda defeats the purpose? Can anyone who actually knows what's the deal here explain?
Valentin Ignatev tweet media
English
34
17
576
88K
sorry, just saw this
@dcolascione @zplesiv @jordwalke “It’s not risky or fraught when I do it” is a very natural sentiment in programming. But we don’t design code for the perfect experts that we think we are (or at least, we should not)
English
0
0
0
18
Pixel Cherry Ninja
Pixel Cherry Ninja@PixelCNinja·
"70% of Japan's youth don't know the fact that a dog's chain breaks after being pulled 49 times” Make that 99.7% in the UK 😂
English
63
132
1.6K
258.3K
sorry, just saw this
@zplesiv @jordwalke The fact it gets formatted like this is a good thing, and if seeing the nested nature of it visually discourages you from the pattern, that is a good thing as well
English
1
0
4
231
Zoran Plesivcak
Zoran Plesivcak@zplesiv·
@jordwalke The real issue with JS is that prettier formats it like this by default.
Zoran Plesivcak tweet media
English
8
2
137
7.5K