Many can write faster asm than the compiler, yet don't. Why? — LessWrong
It used to be the case that you had to write assembly to make computers do things, but then compilers came along. Now we have optimizing compilers, and those optimizing compilers can write assembly better than pretty much any human. Because of that, basically nobody writes assembly anymore. The same is about to be true of regular programming. I 85% agree with this take. However, I think there's one important inaccuracy: even today, finding places where your optimizing compiler failed to produce optimal code is often pretty straightforward, and once you've identified those places 10x+ speedups for that specific program on that specific hardware is often possible[1]. The reason nobody writes assembly anymore is the difficulty of mixing hand-written assembly with machine-generated assembly. The issue is that it's easy to have the compiler write all of the assembly in your project, and it's easy from a build perspective to have the compiler write none of the assembly in your project, but h
x Many can write faster asm than the compiler, yet don't. Why? — LessWrong Programming AI World Modeling Frontpage 77 Many can write faster asm than the compiler, yet don't. Why? by faul_sname 30th Dec 2025 4 min read 18 77 There's a take I've seen going around, which goes approximately like this: It used to be the case that you had to write assembly to make computers do things, but then compilers came along. Now we have optimizing compilers, and those optimizing compilers can write assembly better than pretty much any human. Because of that, basically nobody writes assembly anymore. The same
Explore this link on the map →saved by
related reading
- A friendly introduction to machine learning compilers and optimizershuyenchip.com
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com
- Don't fall into the anti-AI hype - <antirez>antirez.com
- LLVM is Smarter Than Meblog.sulami.xyz
- Algorithms for Modern Hardware - Algorithmicaen.algorithmica.org
- We mourn our craft | Read the Tea Leavesnolanlawson.com
- The compiler will optimize that away | RoyalSlothblog.royalsloth.eu
- Reddit - Please wait for verificationreddit.com
- Finding Miscompiles for Fun, Not Profit - by Justin Lebarnewsletter.semianalysis.com
- Compiler Optimizations Are Hard Because They Forget - Faultlorefaultlore.com
- crawshaw - 2025-01-06crawshaw.io
- From hand-tuned Go to self-optimizing code: Building BitsEvolve | Datadogdatadoghq.com