https://dalmatian.life/2026/04/03/endian-wars-and-anti-portability-this-again/ #EndianWars #DalmatianTech #ByteOrder #HackerNews #ngated
Trying to make https://github.com/kaitai-io/kaitai_struct_cpp_stl_runtime/pull/48 work - would be great to have access to #OpenBSD or #DragonFly box to test, ideally with various byte order configurations
Currently it seems to be completely broken i.e. tests do not pass even if the bswap16/bswap32/bswap64 functions are used for #FreeBSD and #NetBSD.
After rebasing,
/home/saper/src/kaitai_struct_cpp_stl_runtime/tests/unittest.cpp:36: Failure
Expected equality of these values:
ks.read_f4le()
Which is: -9.6157696e+09
3.14159f
Which is: 3.1415901
“On Endianness” [2021], Karl Stenerud (https://www.technicalsourcery.net/posts/on-endianness/).
Via HN: https://news.ycombinator.com/item?id=31475808
On Lobsters: https://lobste.rs/s/a0n98j/on_endianness
#ByteOrder #Endianness #LittleEndian #BigEndian #Encoding #RTL #LTR #Programming #Architecture #ComputerArchitecture #GulliversTravels