Re:“Code” 2nd Edition
by greymalik on Friday June 10, 2022 @08:13PM
(#31700740)
I was actually asking about The Elements of Computing Systems in my comment, not Code. What language does it use to build a virtual computer?
[ Parent
| on HN ]
The hardware exercises expect you to use a simple HDL, you write an assembler in your language of choice (I used Ruby, but others have used Python or JavaScript), and you write programs for the computer you "built" in earlier chapters using Jack (a language with Java-like syntax).
I wrote mine in awk :)
You program in HDL using the Nand2Tetris software suite [1]. Super fun - I went through the book on my vacation last year. Highly recommended.
Quoted from the 2021 edition:
"Project 4 is written in the computer’s assembly language, and projects 9 and 12 (a simple computer game and a basic operating system) are written in Jack—the Java-like high-level language for which we build a compiler in chapters 10 and 11."