Best of 2021

The blog posts Hacker News loved most in 2021. 5,820 posts.

Any topic
1180

The compiler will optimize that away

A lot of programmers believe that compilers are magic black boxes in which you put your messy code in and get a nice optimized binary out. The hallway philosophers will often start a debate on which language features or compiler flags to use in order to capture the full power of the compiler’s magic. If you have ever…

1192

When McDonalds Came to Denmark

Every few months, a prominent person or publication points out that McDonalds workers in Denmark receive $22 per hour, 6 weeks of vacation, and sick pay. This compensation comes on top of the general slate of social benefits in Denmark, which includes child allowances, health care, child care, paid leave, retirement…