About Newsroom
Monday, November 23, 2026 Today’s Paper
Primary-Sourced Edition About & sourcing →

Hacker News

Principia updates its level loader for big-endian systems

The sandbox game now converts saved numbers explicitly when reading levels. Its maintainer is seeking tests on big-endian Linux hardware.

Principia maintainer ROllerozxa changed how the open-source physics sandbox reads saved levels on Nov. 22. The game’s level loader now explicitly converts numbers stored in little-endian byte order into the order used by the machine running the game. The change is in the source repository. On Mastodon, the maintainer said they lacked a physical big-endian machine to test it on and asked for help from people with big-endian Linux hardware. [1] [2]

Why the order of the bytes matters

A level file can store a number across several bytes. Little-endian files put the least significant byte first, while big-endian processors use the opposite order for multibyte numbers. Reading those bytes directly as a native value can give the loader the wrong number. Players share levels through Principia’s community site, so the same file needs to keep its meaning across platforms. [1] [3]

What changed in the loader

Fediwire compared the old and new readers. The old 16- and 32-bit paths could read in the machine’s native order if the bytes sat at a suitably aligned address. At other addresses they assembled the value byte by byte in little-endian order. The old 64-bit reader combined two 32-bit reads. The updated readers copy the stored bytes and use SDL to convert them from little-endian, regardless of alignment. The floating-point reader applies that conversion to the stored bits before interpreting them as a number. [1]

Where compatibility still needs checking

The change covers those read routines. The same commit explicitly blocks big-endian builds of the project’s helper utilities. The official download page lists regular releases for Windows, Android and Linux, and the project documents nightly builds separately. The maintainer said other byte-order issues could remain. This comparison is based on the source code, and Fediwire did not run the game on big-endian hardware. [1] [2] [3] [4]

Beyond the headline

The conversation

Mastodon
“I don't have a big endian machine I could test Principia on”

The Principia project’s Mastodon post says the maintainer could not test the patch on actual big-endian hardware and asks Linux users to try it.

Read on Wildroot
Read more on this topicExplore on Wildroot

Sources & documents

Follow the numbered references to the reporting and original records.

  1. Principia source commit for the level-buffer readersgithub.com
  2. Principia maintainer’s announcement on Mastodonhachyderm.io
  3. Principia project siteprincipia-web.se
  4. Principia download listingsprincipia-web.se