Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Trains in Switzerland must not have exactly 256 axles

Name: Anonymous 2016-07-11 20:14

Trains in Switzerland must not have exactly 256 axles, or the signalling system gets confused.

http://imgur.com/DrEinPB

Name: Anonymous 2016-07-12 8:17

using 16-bit integers would be bloat

Name: Anonymous 2016-07-12 8:57

It can have more than 256, but not exactly 256?

Name: Anonymous 2016-07-12 9:43

>>3
according to the picture, 256 overflows and resets axle counter to zero and the train disappears from the system. this means that the counter is effectively % 256 so trains with more axles will not have the correct value displayed but only multiples of 256 would disappear

Name: Anonymous 2016-07-12 11:04

0xff used as special init value to show uninitialized?

Name: Anonymous 2016-07-12 11:53

>>5
0xff is 255, not 256.
In their software, 256 axles would wrap from 255 to 0, the same result as if there were no train at all.
Quality software.

Name: Anonymous 2016-07-16 18:34

This wouldn't have happened if they used a strongly-typed language like Haskell.

Name: Anonymous 2016-07-16 19:40

How do you make strongly-typed assembly?

Name: Anonymous 2016-07-16 20:35

Name: Anonymous 2016-07-16 21:31

>>8
Hardware type tags, non-orthogonal register files, etc.

Name: Anonymous 2016-07-17 1:08

(this space left intentionally blank)

Name: Anonymous 2016-07-17 2:31

>>8
Proof carrying code

Don't change these.
Name: Email:
Entire Thread Thread List