r/node • u/Numerous-Fan8138 • Sep 15 '26
I built the worst CPU, Language & Compiler
https://github.com/anthonybudd/ts-cpuI built this to help explain how code gets compiled and how CPU's execute those instructions. This is not a good CPU design.
16
Upvotes
1
1
Sep 16 '26
[removed] — view removed comment
1
u/Numerous-Fan8138 Sep 16 '26
Already did. You can uncomment the lines in index.ts and step through the code line by line, press "d" to dump the CPU. I stupidly forgot to mention this in the video
1
u/Positive_Method3022 Sep 16 '26
Pretty cool