Tech article

Eight Bytes Are a Number

No preview is available. Read the original article for the full story.

Hacker News | Oct 1, 2026 | sebastianconcpt

Automated excerpt

Let’s use abstractions that won’t copy now. let raw: [u8; 8] = bytes. get(.. 8) This time we read the bytes in whichever place they already are, validate we can read 8 valid bytes there and use them to infallibly produce a u64. In the same way these eight bytes were already a number, a limit order is fifty-seven, in known places. The rest is getting them wrapped in an envelop with a sequence number and kind byte that tells me where to look for them safely, consistently, and in the right order. time: [4. 0990 ns 4.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More tech news