Lurker News
I am proud to present my solo hobby project NAND. This year-long undertaking follows the completed Nand to Tetris course, but ported to the web with its own runtime, user interface, and IDE. Using the "Load example program" selector, you can try out some programs I wrote on NAND's emulated hardware such as 2048, a genetic algorithm, and a manual stack overflow to corrupt the screen.

Check out NAND at https://nand.arhan.sh
Additionally, I've authored an extensive writeup about the project. Read about it on the GitHub repository's readme.

Comments (73) 26 threads

Earlier comments
not2b#
Doing a design for this (specifically, design a microcoded, pipelined RISC processor, from the bottom up, with nothing but NAND gates) was the main problem on the Computer Hardware quals exam at UC Berkeley in the early 1990s. We didn't have to physically build it, though, just produce the detailed design on paper.
ryeguy_241 reply#
This is amazing work. I wanted to build something similar (virtual) while I was taking the Nand2Tetris course. I'm so impressed that you actually did it. You must have a really good understanding of how computers work now.
marai21 reply#
And I was just thinking about the same thing this morning, using SVG to model the basic components. And lo and behold somebody has done a magnitude more amazing job then what I was imagining!
c0wb0yc0d3r#
You still can! :)

I have just embarked on this journey myself, recently. It is motivating to see others' work. Especially when they're not quite the same as what I'm doing.

IncreasePosts1 reply#
Liar. You used NAND gates and a clock.
userbinator2 replies#
...a clock which can be made from a ring oscillator, consisting of an odd number of NAND gates wired as NOT gates.
ArchAndStarch#
Oh wow, I didn't actually know that. Thanks for the interesting trivia
schoen1 reply#
How do we know that that will converge to a single constant period of oscillation? Could you have a few different-sized square waves continue to cycle through the circuit?

(I've never built or simulated that, I'm just trying to imagine what could happen!)

rational_indian6 replies#
>Could you have a few different-sized square waves continue to cycle through the circuit?

No.

Continue this thread — 6 replies

Load more comments