Hacker News new | ask | show | jobs
by vbezhenar 939 days ago
IMO padding is not necessary and just a relic of old implementations.
1 comments

I think so too. It feels similar to how many specifications from the 90s use big endian 4-byte integers for many things (like png, riff, jpeg, ...) despite little endian CPU's being most common since the 80s already, and those specifications seemingly assuming that you would want to decode those 4-byte values with fread without any bounds checking or endianness dependency.