this post was submitted on 20 Aug 2025
172 points (75.3% liked)

Programmer Humor

25950 readers
511 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] FuckBigTech347@lemmygrad.ml 2 points 3 days ago (1 children)

Coding directly in assembly is rare.

I used to think that, but when you're dealing with a lot of low-level stuff you'll eventually realize that Compilers are pretty bad at generating fast and reliable Assembly where it's needed. Also, some Architectures have specific machine instructions that Compilers just don't take advantage of, no matter what flags you enable.

[–] CanadaPlus@lemmy.sdf.org 2 points 3 days ago* (last edited 3 days ago)

Also, some Architectures have specific machine instructions that Compilers just don’t take advantage of, no matter what flags you enable.

Interesting. Do you have some examples?

Writing those frequently-called leaf functions in assembly has certainly far outlived it's use in other places. But, the word on the street, or I guess the conventional wisdom, is that compilers have gradually caught up even there.