Writing an NES emulator in Haskell
35 points by abhin4v
35 points by abhin4v
Interesting approach. I think I’d reach for mutable memory for this, which (despite what the article says) is possible with Haskell.
yes, IORef or if you expect concurrent mutation TVar would be a perfectly safe fit if you don't want to reinvent the wheel like https://arthi-chaud.github.io/posts/funes/#side-effects does
Slightly off-topic, but in Chrome for Android the demo videos ended up being turned into automatic file downloads of multithread.mov and monothread.mov.
Posted from the future! (December 28, 2025). Haskell really is powerful!
It’s pretty fun to think about the potential of new hardware state per tick in an automated game beater. But, not sure how you’d make a general fitness function.
Webpage produces 8 bit like noise, just FYI