Hacker News new | past | comments | ask | show | jobs | submit login
Simulating RAM in Clojure (stopa.io)
136 points by stopachka on Nov 14, 2020 | hide | past | favorite | 12 comments



This is cool! You've got the building blocks for the rest of the machine now :)

I did a similar thing last year after reading this book, it turned out to be a really fun and rewarding exercise!

https://djharper.dev/post/2019/05/21/i-dont-know-how-cpus-wo...


Oh wow amazing work! Will look deeper, thank you :)


It’s fun to follow along, even if like me, you’re not too familiar with Clojure.


Glad you’re enjoying it! :)


You wrote an event driven simulator. We use Verilog simulators in my industry. http://iverilog.icarus.com/


Cool!


Thanks to the OP for the book reference (But How do it Know? by Scott), I hadn't heard of it. I had the same kind of aha moment with Petzold's Code.


There is also Richard Feynman's computer heuristics lecture[0].

[0]:https://www.youtube.com/watch?v=EKWGGDXe5MA


Cheers George! Heard great things about Code — getting it now :)


Thanks for the article,

BTW, why can't we simulate quantum computers with software?


AIUI, you can, it's just that the time it takes the simulation to run isn't proportional to the time it takes the real quantum computer to run.

Unless the software is running on a quantum computer, in which case you just made a quantum VM.





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

Search: