Live data from Hacker News

Chess.com stopped working on 32bit iPads because 2^31 games have been played

chess.com

11–20 of 338 posts

Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played

#12
post #2

Real world example of why Apple is killing 32 bit apps on iOS.

This is simply because they're taking an integer from their database as an auto incrementing ID and converting it directly into a native integer on the iOS device thus breaking it. They could work around this any number of ways.

It's a pretty lame bug, to be honest and certainly something easily foreseeable as this wasn't an overnight occurrence.

Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played

#13
post #6

were they ever expecting negative number of games? why signed integer?

Because signed is default for some reason in most languages, and most developers aren't taught to think critically about how decisions like simple datatypes might affect scalability.

Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played

#16
It's fascinating... the Y2K problem never came to fruition because - arguably - of the immense effort put in behind the scenes by people who understood what might have happened if they hadn't. The end result has been that the entire class of problems is overlooked, because people see it as having been a fuss over nothing.

I sometimes think it would've been better if a few things had visibly failed in January 2000.

Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played

#18
post #13
post #6

were they ever expecting negative number of games? why signed integer?

Because signed is default for some reason in most languages, and most developers aren't taught to think critically about how decisions like simple datatypes might affect scalability.

Not just the default, it doesn't even exist in some languages.

Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played

#19
post #7
post #2

Real world example of why Apple is killing 32 bit apps on iOS.

This has nothing to do with CPU architecture.

It's a little related. The languages typically used for iOS programming encourage the use of data types whose size matches the CPU architecture's bitness. Thus, careless programmers will end up using 32-bit integer types on 32-bit devices, and 64-bit types on 64-bit devices.

I really doubt this is in any way linked to Apple's reasons for dropping 32-bit, though.

Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played

#20
Reminds me of the havoc that was caused when Twitter tweet IDs rolled over. Resulting in every third party developer to update their apps (and at the time there were a lot of those).

Twitter saw it coming and forced the issue. By saying that at a certain date and time they would manually jump the ID numbers rather than wait for it to happen at some unpredictable time.

Post reply on HN