Hacker Public Radio

HPR4296: Crafting Interpreters


Listen Later

This show has been flagged as Clean by the host.

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




Provide feedback on this episode.

...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

292 Listeners

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

374 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

266 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

653 Listeners

Curious Cases by BBC Radio 4

Curious Cases

827 Listeners

The Strong Towns Podcast by Strong Towns

The Strong Towns Podcast

426 Listeners

Late Night Linux by The Late Night Linux Family

Late Night Linux

164 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,012 Listeners

Cybersecurity Today by Jim Love

Cybersecurity Today

177 Listeners

CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

CISO Series Podcast

189 Listeners

TechCrunch Daily Crunch by TechCrunch

TechCrunch Daily Crunch

41 Listeners

Strict Scrutiny by Crooked Media

Strict Scrutiny

5,774 Listeners

2.5 Admins by The Late Night Linux Family

2.5 Admins

97 Listeners

Cyber Security Headlines by CISO Series

Cyber Security Headlines

136 Listeners

What the Hack? by DeleteMe

What the Hack?

222 Listeners