Your issue sounds more like a capitalism issue. FANG companies lay off thousands of employees to cut costs and prepare for changes in the economy. AI didn't make them lay off all those employees, just corporate greed. Until AI can gather requirements, accurately produce code with at least 80%, can compile the software itself, it isn't a threat.
I ended up buying in bulk 6 gallons of wiper fluid. My solution is to always have extra now lol. My last car I'd run on low for a year, this one I filled it twice just this summer!
Windshield wiper fluid low is so obtrusive. It warms you next to the odometer as a message pop-up instead of a light, other things have lights, why doesn't it? Know what's worse? It also pops up multiple times on the dashboard touch screen blocking you from seeing your navigation while driving. At least I know I'm low on wiper fluid!
The library used to read the line does the string length check, so my guess, whoever wrote it initially didn't know about it and tested with a small sunset of items without issue; I assume the games items grew in size over the years too. They also released an official patch with it and paid the modder $10k
Found an article that details it again since it was a fun read at the time. Looks like it was 10MB json file and the method to read the lines used the expensive length function you mentioned. It also had other simple optimizations too.
Yeah json actually sounds better. Unfortunately it's still a text file that they were importing the entire thing into memory. Probably worse than CSV since they were probably serializing each item from string into objects. They definitely did it in one of the most laziest ways possible though I bet it worked at the time of development and the vendors probably had very few items.
I believe it was a CSV file of every item in all of the shops (comma separated values) and it was being read and stored into memory single threaded so it was maxing out a single core on the CPU.
Looking it up again I couldn't find a self host website for it but here is a good writeup on it. Firmware is archived elsewhere and people have looked into the JavaScript that does the flashing process, so I imagine it wouldn't be too hard to make a permanent tool, but also it isn't needed until end of the year.
Pretty sure someone pulled the code, it's all JavaScript in the browser and archived the firmware so it is possible to do it without relying on that page when they shut it down.
I mean depends on if they want to do permanent or not, but the comment I replied to said at least until the issue / PR and I assume that change will be prioritized by the community and out before we know it.
Your issue sounds more like a capitalism issue. FANG companies lay off thousands of employees to cut costs and prepare for changes in the economy. AI didn't make them lay off all those employees, just corporate greed. Until AI can gather requirements, accurately produce code with at least 80%, can compile the software itself, it isn't a threat.
Edit fix autocorrect