HN Hall of Fame Weekly email

The Byte Order Fiasco

justine.lol Essays & writing Essays & articles Software engineering Candidate

Resurfaced independently across 2 calendar years, with breakout response in 2 of them.

submissions
4
submitters
4
observed span
2021–2024
peak thread · 364 comments
319 pts
latest 20+ return · 2024-06-30
91 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

It is a ridiculous feature of modern C that you have to write the super verbose "mask and shift" code, which then gets compiled to a simple `mov` and maybe a `bswap`. Wheras, the direct equivalent in C, an assignment with a (type changing) cast, is illegal. There is a huge mismatch between the assumptions of the C spec and actual machine code. One of the few reasons I ever even reached to C is the ability to slurp in…

When I dealt with this, there were a couple major gotchas: * Compilers seem to reliably detect byteswap, but are(were) very hit-or-miss with the shift patterns for reading/writing to memory directly, so you still need(ed) an ifdef. I know compilers have improved but there are so many patterns that I'm still paranoid. * There are a lot of "optimized" headers that actually pessimize by inserting inline assembly that the compiler can't optimize through (in particularly, the compiler can't inline constants…

o11c·91-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
419

reference only — not used in Hall rules or ranking

Total comments
448

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2021-05-02The Byte Order Fiascojart50
2021-05-04The Byte Order Fiascodonmcc40
2021-05-08The Byte Order FiascoFirst breakout · Best threadcassepipe319364
2024-06-30The Byte Order Fiasco (2021)Latest 20+ point returnfanf29184