Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are any of these still needed, though? I kinda assumed they would be like Duff's Device and be a nifty historical relic, but firmly in the "Let the compiler do this for you" category in modern C.


Many of those are not standard functions (or were not, until very recently). You have to implement it somehow, so having a ready-made collection that also performs well is very nice to have.


When you're working on Frostbite you definitely need these.

Optimizers are smart, but aren't smart enough yet


How do you let the compiler do these things for you?


By having someone write the optimization passes to detect these :)


Compile with optimizations enabled.


What code specifically do you write instead of the code in TFA, in order to have the optimizer generate the code in TFA? In general compiling with optimizations enabled has not produced particularly good code in my experience.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: