Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My university had a model train set, hooked up to some ancient 386 machines (and we're talking late 2010s here) and it was used for a real time programming course which was taught in Ada.

Unfortunately the lecturer that ran the unit retired the year I started my degree and by the time I had the prereqs required to do the course the faculty had run the course once without the original lecturer and it was apparently a disaster so they canned the unit until it could be rewritten from scratch, sans train set ... and in Java.

I still think about missing out on programming a train set. Years later



> I still think about missing out on programming a train set. Years later

Sounds like a nice hobby project to indulge in during your free time! It's easier than it has ever been, and it's a nice rabbit hole do dive into.

They even have open-source DCC decoders nowadays!

https://www.opendcc.de/elektronik/opendecoder/opendecoder_e....

https://ilabs.se/news/introducing-our-new-open-source-dcc-de...


The University of Waterloo has a similar course, CS452: Real-time Programming.

It’s not quite the same as having physical access to the train set, but a student eventually wrote a simulator for the Märklin train set [0]. Another student wrote an emulator for the TS-7200 used for the class [1] if you don’t want to test your kernel in QEMU.

[0] https://github.com/Martin1994/MarklinSim

[1] https://github.com/daniel5151/ts7200


The university where I work used to teach Hard Real Time to electronics students with toy elevators. When (not if) you screw up your elevator smashes into the roof of the elevator tower and self-destructs the toy, reminding you that this is serious business and if you fuck up that badly in real life you'll be lucky if the victims live to sue you...


Sounds like finally satisfying that desire could be a fun Christmas project.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: