Live data from Hacker News

Trains in Switzerland are not allowed to have 256 axles

twitter.com

11–20 of 92 posts

Re: Trains in Switzerland are not allowed to have 256 axles

#13
post #7

Is 256 the upper limit, or is it just a magic number to be avoided? Is a train with 258 axles OK?

A train with 258 would appear to be a train with 258 mod 256 = 2 axles. The purpose of the counters isn't really to count how big the trains are, just to keep track of them. So it at least knows there is a train on the tracks.

Re: Trains in Switzerland are not allowed to have 256 axles

#16
In similar news, popular athletic app Strava has announced that they will be dropping Bluetooth support because of an issue with their code. https://support.strava.com/hc/en-us/articles/360032979131-Re...

Strava aren't fixing the bugs, just dropping the feature altogether. They even admit that other athletic apps implement Bluetooth without bugs, so it's not a platform limitation.

So sometimes people decide that an easy fix is a better choice than a "correct" fix, which would be either adding bits to the train axle counter, or implementing a way that didn't care how many axles there were- such as having a head and tail indicator for a train, and not counting the axles in between.

Re: Trains in Switzerland are not allowed to have 256 axles

#20

I'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.

Or a 200 axle one breaks somewhere and 56 axles roll back over the sensor.
Post reply on HN