3 ms·
In high level programming, the code is for humans, the optimized compiler output is for the computer.
by z3t4 8y ago
In high level programming, the code is for humans, the optimized compiler output is for the computer.
- gruez 8y agoyou're greatly overestimating how much the compiler can optimize code.
- z3t4 8y agoYou need to be a pretty good assembler programmer in order to beat the optimizer already. Maybe in the future, with the help of "AI" the computer can do what we want, instead of what we tell it.
- JochemK 8y agoIf you call .sort() which implements bogo-sort, any programmar will be able to write a better sorting algorithm in assembly. I doubt any "AI" will be able to restructure your high-level bogo-sort into an efficient algorithm.
- Const-me 8y agoI'm not especially good assembly programmer but I beat the optimizer every day, in some cases by an order of magnitude. Even best compilers suck at automatic vectorization.
- MaxBarraclough 8y agoBut the article is about 3D graphics programming, which is often performance-sensitive.