Re:Show HN: Build a CPU from gates, in TypeScript, in the br...
by veexx103 on Thursday September 24, 2026 @05:34AM
(#49828289)
I once thought about generating visual representations of circuits created from code.
For instance, if you clicked on an n-bit adder,
you could see how it was recursively generated,
showing that it consists of a 1-bit adder combined with an (n-1)-bit adder.
I think that would be really interesting, but I just haven't had the time to actually do it.
I agree code as source of truth is a must and GUI is not necessary for authoring, everything I built (Snake, Pong, the RISCV CPU) was done headlessly in node with the help of Claude working to a spec just using the @simten/core lib on npm.
I just built a readonly ui-layer on top with the hope of making it more accessible to students/learners starting out in the space, the main features being able to visually scrub between cycles and drill down into the internals of an abstracted component. I also have a Verilog import thing I've been working on to allow learners to visualise and poke around in the browser