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

This is going to eat my weekend! Sheesh those time issues are tight. I'm about 90% certain that the only way I've made this stuff function is via carefully crafted race conditions ...


Race conditions actually seem pretty rare in this game, because the CPUs run infinitely fast, relative to the SLP clock.

If two CPUs get out of sync with each other and try to communicate via XBus, the simulation just halts.


I've got a proper race condition in my current solution to the kill-switch puzzle. The output from my timeout circuit that turns off the power if no commands arrive in time is getting mixed in to the command stream in the wrong order, causing it to shut off power unnecessarily. It's a wonderful puzzle.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: