I recently experienced a nasty bug with BLOB in MySQL. The software vendor was storing a giant json which contained the entire config in a single cell. It ran fine for months, and then when it was restarted it totally broke. Reason was: the json had been truncated the entire time in the database, so it was gone forever. It was only working because it used the config stored in memory on the local system. Nasty!
For those, like my, that didn't recall off the top of their heads: BLOB in MySQL can usually only hold ~64KB. EDIT: Though I am curious why MySQL doesn't throw an error when you try to store more than 64KB in BLOB?
Chess.com stopped working on 32bit iPads because 2^31 games have been played
171–180 of 338 posts
Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#172Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#173Earlier quoted context omitted.
This is a whole class of problem - I wonder if there's a name for it. More examples include: talking about welfare being unnecessary because no one is starving. Or people on medications stopping because they feel better (while still on them).
This makes me think of a hypothetical scenario proposed in one of Nassim Nicolas Taleb's books where-in some senator gets a bill passed in the weeks before 9/11 requiring reinforced doors on all commercial airplane cockpits. No parade would be thrown for this senator for having prevented 9/11 and likely he'd be castigated for having given airlines an excuse to raise prices due to restrictive government regulations.
Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#174Self-confidence as a programmer is when starting a new project, storing the transaction ID as a long rather than an int...
Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#175Earlier quoted context omitted.
Also see: IPv4 vs IPv6. Remember, these fancy computing devices were built for the rich and the government, not for the average joe, noone thought computing would be this easily accessible.
Except that isn't a great example because with Nat, ip4 can get us oodles of devices still. Can't really use NAT on a primary key...
IPv6 isn't perfect, but we could have avoided a lot of hassle if we'd started off with it.
Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#176Earlier quoted context omitted.
Even then, mix in people switching jobs, losing the knowledge of where or what all these landmines are, and add similar but unrelated issues across your entire codebase. This stuff adds up. I like to at least add stern log messages when we are at 10%-50% of the limitation. It's saved my ass before, especially when your base assumption can be faulty. In one of those scenarios, where we expected the growth of an intege…
I'm assuming this is C/C++ so I'm wondering if there isn't some compiler pragma to have it warn people still building the code in 2025 or so?
Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#177Earlier quoted context omitted.
This makes me think of a hypothetical scenario proposed in one of Nassim Nicolas Taleb's books where-in some senator gets a bill passed in the weeks before 9/11 requiring reinforced doors on all commercial airplane cockpits. No parade would be thrown for this senator for having prevented 9/11 and likely he'd be castigated for having given airlines an excuse to raise prices due to restrictive government regulations.
The silent wheel gets rode?
Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#178Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#179Earlier quoted context omitted.
In my experience the chat on chess.com harbors a similar demographic to that of most video games. You'd think that chess would attract a more mature player base, but nope.
The only time I've observed people in real life acting like people in video games is at a chess tournament. Constantly trash-talking until they lose, then accusations of cheating. You certainly don't see this type at all (or most) chess events; I think the lack of entry free drew them out into the open.
Re: Chess.com stopped working on 32bit iPads because 2^31 games have been played
#180Self-confidence as a programmer is when starting a new project, storing the transaction ID as a long rather than an int...
> Self-confidence as a programmer is when starting a new project, storing the transaction ID as a long rather than an int... uint64_t even Or a UUID as others have suggested. Technically C spec doesn't really say exactly how many bits int, long and long long should be. If you want specific sizes and your code to be somewhat portable use the specific bit sizes to make that clear. There are also types for size-like thi…