191
submitted 2 months ago by SnotFlickerman to c/techtakes@awful.systems

Sam "wrong side of FOSS history" Altman must be pissing himself.

Direct Nitter Link:

https://nitter.lucabased.xyz/jiayi_pirate/status/1882839370505621655

you are viewing a single comment's thread
view the rest of the comments

I have have crafted assembly instructions and have made it faster than the same C code.

Particular to if statements, C will do things push and pull values from the stack which takes a small but occasionally noticeable amount of cycles.

[-] khalid_salad@awful.systems 11 points 2 months ago* (last edited 2 months ago)

python, what are you doing?"

idk, I'm written in C, it does things push and pull values from the stack, have you tried assembly, it's faster

[-] froztbyte@awful.systems 5 points 2 months ago

til if I wanted the program to go faster I should've just been asking it to switch its runtime

[-] khalid_salad@awful.systems 6 points 2 months ago

if you use TeX as much as i do, you learn that "begging the program to behave differently" is pretty viable

[-] self@awful.systems 8 points 2 months ago

Particular to if statements, C will do things push and pull values from the stack which takes a small but occasionally noticeable amount of cycles.

holy fuck. llvm in shambles

[-] bitofhope@awful.systems 7 points 2 months ago* (last edited 2 months ago)

Meanwhile I'm reverse engineering some very much not performance sensitive video game binary patcher program some guy made a decade ago and Ghidra interprets a string splitting function as a no-op because MSVC decided calling conventions are a spook and made up a new one at link time. And it was right to do that.

EDIT: Also me looking for audio data from another old video game, patiently waiting for my program to take about half an hour on my laptop every time I run it. Then I remember to add --release to cargo run and while the compilation takes three seconds longer, the runtime shrinks to about ten seconds. I wonder if the above guy ever tried adding -O2 to his CFLAGS?

this post was submitted on 01 Feb 2025
191 points (100.0% liked)

TechTakes

1788 readers
45 users here now

Big brain tech dude got yet another clueless take over at HackerNews etc? Here's the place to vent. Orange site, VC foolishness, all welcome.

This is not debate club. Unless it’s amusing debate.

For actually-good tech, you want our NotAwfulTech community

founded 2 years ago
MODERATORS