Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr4296 :: Crafting Interpreters

Talk about the book Crafting Interpreters by Robert Nystrom

<< First, < Previous, , Latest >>

Hosted by iota on Monday, 2025-01-20 is flagged as Clean and is released under a CC-BY-SA license.
Interpreter, Compiler. 1.
The show is available on the Internet Archive at: https://archive.org/details/hpr4296

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:02:08

general.

Crafting Interpreter


Hello, this is iota speaking.


Today I would like to talk about the book "Crafting Interpreters" by Robert Nystrom.  I have a passion for interpreters and compilers for a long time, and always like to write one.  But I never succeed.  I read a lot of books about interpreters and compilers but never able to finish it.


Crafting Interpreters is the first book I read cover to cover, and understand it, and I am able to follow through all the coding and build an interpreter as well as a compiler.  It is amazing!


The first half of the book is to build a tree-walking interpreter in Java.  The 2nd half of the book is to build a bytecode compiler in C.  Both of them are for a programming language the author called lox. L-O-X.


The book is smart because it is based on generic Java and C code, and does not specify any IDE or make file to use.  You will have to figure out that yourself.  That may sound like a hurdle but in fact it is a blessing.  That makes the code in the book very portable.


The author has a way to explain compiler concepts in an interesting way.  The bytecode compiler in the 2nd half of the book implements the following features: virtual machine, closure, class and methods, garbage collector, etc.


The book cover is already very revealing.  It is basically a high-level view of the different passes and types of code generation.


You can buy the book in different places, both physical copy or ebook.  However, the book is also available for free at craftinginterpreters.com.


I would say this book is a labour of love by the author.  Highly recommended. 


iota signing off





Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2025-01-19 13:33:56 by archer72

First show

iota,

Thanks for you first show submission.

It is an interesting subject, especially considering the code is meant to be portable.

I am lacking in this field, but it is a good subject/book to put on my reading list.

archer72

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?