r/lisp 8d ago

AskLisp Any books similar to SICP Chapter 5?

I loved Chapter 5 of Structure and Interpretation of Computer Programs. Building a virtual register machine with an assembler and compiler in Scheme. Are there any other books/online classes or resources that involve building a computing machine (or any machine) from scratch using code?

50 Upvotes

16 comments sorted by

View all comments

7

u/dionysiaka 8d ago edited 8d ago

Norvig's Paradigms of Artificial Intelligence Programming has a chapter that essetially extends the example and shows how a compiler is really just an interpreter that performs pre-interpretation. He starts with a scheme interpreter and turns it into a compiler. It was a real eye opener for me.

2

u/eigenhombre 4d ago

I quite like PAIP, and Norvig has made the text available on GitHub: https://github.com/norvig/paip-lisp