in switzerland you aren't allowed to have a train with exactly 256 axles because of an integer overflow in the axle counting machine
i wish i could fix my software bugs by making it illegal to cause them
the source everyone reports for this PDF is gone, and it's not exactly easy to find swiss train law documentation when you don't even speak german
but here's a current link: https://www.hech.ch/wp-content/uploads/2018/07/I-30111_09122018_Anhoerung.pdf
page 123, section 4.8.4 "Zugbildung"
die züge können keine 256 achsen haben! wie lächerlich!
"gnädige frau, das ist ein mcdonalds."
@lynnesbian i mean, pretty much any security bug you might have is covered by law already
@lynnesbian does it also outlaw trains with 512 axles tho
@kity i assume nobody's made a train with that many axles yet
@Nikolai_Kingsley is is entirely possible that my two months of duolingo courses i did two years ago, combined with google translate, is not enough to produce a german sentence that doesn't sound weird
German is a good language. any language that has a single word that means "a face in search of a backhand" is a good language.
@lynnesbian 256 Achsen wären dann 64 4achsige Wagen - solche Züge gibt es nicht,
@lynnesbian But then a) You'd let everyone know how to break your software, and b) Unruly teens would constantly break your software, because of Crimes
@RedFuture ah but, it's illegal to break the law, so they simply would not do it
There should be the same integer overflow at every multiple of 256 axles. There is a bug in the law.
@hambach18 i imagine that as soon as someone builds a train with that many axles they'll update the law
@lynnesbian proposed fix: mandate the ETD (https://en.m.wikipedia.org/wiki/End-of-train_device) must be mounted on a little cart with 3 axles. Every train will need exactly one
@lynnesbian can't happen to us in Germany. We still have things like manual or mechanical operation of these things ;)
Only a fraction is electric ;)
@Drezil @lynnesbian you can still have an integer overflow in a mechanical counter. it's just more likely to be a decimal limit at rollover, not a binary one. automotive mechanical odometers were susceptible to this, as a 5+1 decimal digit mechanical counter. so you'd hit rollover at 100,000 DISTUNIT. my family has a car that's done it. our newer car has a digital Trip-O + Odometer with 6 digits, no tenths for the Odometer, just the Trip-O, so it'll hit rollover at 1,000,000 DISTUNIT
@Drezil @lynnesbian There's still a limit of 250 axles (with possible exceptions of up to 252 axles) for similar reasons defined at Ril 408.2711: https://fahrweg.dbnetze.com/resource/blob/1355870/d9d741385d4312e1ef4bb183858e4c0a/rw_408-21-27_Aktualisierung-02-data.pdf#page=247
isn't varchar a canton of switzerland?!
@lynnesbian this is like if BeamNG.Drive somehow overflowed into real life...
become a government. they're allowed to do whatever they want, like Googzilla or Microsofthra can
It's not a feature.
*IT'S THE LAW.*
@lynnesbian so they could have 512 axles
@a_breakin_glass i assume nobody's tried
@lynnesbian It's not valid since december 2019
@chfo so they've either
a) fixed the issue
b) accidentally left the clause out
c) hoped everyone would stick to the rule anyway
d) haven't yet published the new law document that includes this clause
More about this one and a number other maths and computer sciece mistakes were also covered by a Matt Parker talk. (link is time-coded)
@lynnesbian it's like that xkcd comic where the guy named his kid DropTable.Student except better because it's real and involves trains
@lynnesbian Somewhere in Switzerland, there must be a 'ghost train' -- It has exactly 256 axles, so you never know it's coming, and you never know it's passed. Because there is only one, so long as it's extremely careful, it can avoid all collisions. Rarely seen, never recorded, and noone knows what it carries.
@lynnesbian Fixing problems by making them illegal does have an especially Swiss ring to it...
@lynnesbian Oh hey! I'm the person who originally submitted this to reddit.
As far as I know, this rule is no longer in place. It still shows up in some recent-ish documents (like ), but a train driver I know showed me a screenshot of a document explicitly stating that this paragraph was made obsolete.
It also doesn't show up in the current R 300.5 anymore. 
@lynnesbian I think the original limitation was caused by mechanical counters with eight physical bits (so, not actually software), which have now been phased out.
@lynnesbian Whoops, link  was supposed to be this: http://eisenbahnberatung.ch/Dokumente_Web/R%20I-30111.pdf
@draemmli thanks for clearing this up! i managed to find a slightly more recent document mentioning it, but you're right, it seems to have disappeared now
@lynnesbian In Switzerland you will never have a trains with 64 railway cars with 4 axles.
trans hate, state abuse
This makes me think of the swedish law that forced transgendered people to be sterilized, and their semen/eggs to be destroyed.
The law was only removed in 2016 or so, long after the old "sterilize anyone that the nazis wouldn't want to breed" mentality went out of style.
No-one talked much about why they were still doing this, since the reasons were rather obvious. But I did find one person blaming paperwork.
"See, on this parenthood form, we have a mother square and a father square, and if you trans lot went and muddled it all up, the system would just break".
@email@example.com's anti-chud pro-skub instance for funtimes