News for hackers. Stuff that matters.
Re:Trains in Switzerland are not allowed to have 256 axles by davidkuhta on Saturday October 19, 2019 @10:51AM (#21298783)
TIL: Per the article, this 256 limitation also applies to number of users in WhatsApp conversations and the maximum block height of a Minecraft world.
Re:Trains in Switzerland are not allowed to have 256 axles by soared on Saturday October 19, 2019 @11:33AM (#21299000)
Also reminds me of the maximum amount of coins you can have in runescape: 2.147B. They even created silver coins worth 1000 normal coins as a workaround for people who get to a “max cash stack”.

(Max value in java, even though the game is non longer written in Java)

Re:Trains in Switzerland are not allowed to have 256 axles by stickfigure on Saturday October 19, 2019 @12:56PM (#21299425)
The language is irrelevant; this is the maximum value of a 32-bit signed integer. Specifically, 2,147,483,647.

Java (and other languages) have other ways of representing numbers which allow larger values, but once you've encoded values into wire protocols and persistent data structures, they tend to be hard to change.

Re:Trains in Switzerland are not allowed to have 256 axles by mrspatula on Saturday October 19, 2019 @01:16PM (#21299524)
I think OSRS is still all Java, no?
Re:Trains in Switzerland are not allowed to have 256 axles by anonu on Sunday October 20, 2019 @10:31AM (#21304377)
I understand why an 8 bit number would be used for counting...

But that limitation makes no sense for WhatsApp user limit count. Presumably every user has an id number identifying them (maybe a long integer). You need to maintain a list of these users so your array is already way larger than 8 bits.

Can someone intuit why the 256 limit in WhatsApp?