logoalt Hacker News

dataflowtoday at 4:23 AM1 replyview on HN

The whole thing rests on these assertions:

> It is usually easy to write code that is endian-safe. Any code that is not endian-safe is poorly written and harder to maintain at best, and possibly obscuring security bugs at worst. Any project maintainer should be jumping for joy when they receive a patch adding a big-endian port of their project, especially if it includes reports that tests pass and the software works. That is the sign of a codebase that has a level of sanity that should not be noteworthy, yet is.

And every single sentence is false.

The tower collapses once you remove any of the bases, let alone all of them.


Replies

ozgrakkurttoday at 6:44 AM

Main issue I have with it is access to testing. It is extra work to be able to test big endian. I don’t want to think about big endian while writing code but it would be ok to do it if I could easily run tests in big endian.