Hacker News new | past | comments | ask | show | jobs | submit login

This is so cool! Just finished my implementation and it runs the fib example flawlessly†!

https://github.com/tkahn6/dcpu16-haskell/

† Because mine is a pure state machine and Haskell is lazy, I had to introduce a HLT instruction instead of using `:crash SET PC, crash`. Nothing ever gets printed using the latter convention.




You can use a monad to thread the computation for strictness while retaining purity.




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

Search: