Earlier quoted context omitted.
I would wager that they might be as meticulous in Japan too.
I’m glad I read an article on HN about pointing and calling[0] in the Japanese rail system as a way of preventing accidents. I take a blood pressure medication and had once or twice taken it a second time in the day, which wiped me out and made it VERY difficult to work (for the record, I don’t take it for blood pressure and it’s a very low dose, so I wasn’t at risk of my heart stopping, just very sleepy). Now I do a…
Trains in Switzerland are not allowed to have 256 axles
61–70 of 92 posts
Re: Trains in Switzerland are not allowed to have 256 axles
#62You can carry a maximum of 255 rupees in the original Legend of Zelda, and back in the day magazines commented on the "oddly specific" number.
That reminds me back when WoW was still 32 bits and people discovered the gold cap was 2 147 483 647 copper coins.
There was one player who managed to kill so many new players that his 32bit karma turned negative via integer overflow and he was free from all the filthy red status.
Re: Trains in Switzerland are not allowed to have 256 axles
#63Earlier quoted context omitted.
That reminds me back when WoW was still 32 bits and people discovered the gold cap was 2 147 483 647 copper coins.
So your gold value was signed? Does WoW allow for debt by tracking negative values, or was it just an oversight?
Signed number (just 64bit) is the correct number type for such operations.
Re: Trains in Switzerland are not allowed to have 256 axles
#64Earlier quoted context omitted.
Actually, the longest regular Swiss trains seem to top out at 44 cars. This is because of passing siding lengths being much smaller than other countries such as the US. There are longer trains that are scheduled on routes with longer sidings however such as a the main north/south routes. Most European trains rarely exceed 22 cars for the same reasons as they have to be able to be passed by express trains in stations.
Yeah, a bit of light browsing yields a 25 to 30 unit average for European freight trains¹. https://www.allianz-pro-schiene.de/themen/aktuell/740-meter-...
Re: Trains in Switzerland are not allowed to have 256 axles
#65Re: Trains in Switzerland are not allowed to have 256 axles
#66Earlier quoted context omitted.
So your gold value was signed? Does WoW allow for debt by tracking negative values, or was it just an oversight?
Signed numbers are preferred. Imaging you try to buy something checking if the remaining balance would be greater than zero is pretty much guaranteed, resulting in 4+ billion instead. Signed number (just 64bit) is the correct number type for such operations.
Re: Trains in Switzerland are not allowed to have 256 axles
#67That's nothing. Signed overflow in C/C++ is _undefined behavior_. Which means there's no guarantee that you'll get anything recognizable out of it. :-)
Re: Trains in Switzerland are not allowed to have 256 axles
#68I'm waiting for the freak accident when a 200-axle train enters a given segment, and then later a 56-axle train accidentally ignores a red light, and plop the segment is now marked as all-clear again.
Re: Trains in Switzerland are not allowed to have 256 axles
#69Earlier quoted context omitted.
So your gold value was signed? Does WoW allow for debt by tracking negative values, or was it just an oversight?
Some people just really, really dislike unsigned ints.
Re: Trains in Switzerland are not allowed to have 256 axles
#70I'm surprised they didn't also ban 255 and 257!