DEV Community

Cover image for Chapter 3 of Crafting Interpreters
Stefan Alfbo
Stefan Alfbo

Posted on • Edited on

Chapter 3 of Crafting Interpreters

Finished chapter 3 today of the Crafting Interpreters book, which is also the last chapter of part one of the book.

This chapter goes through the properties of the language Lox that will be implemented in this book.

It will use dynamic typing to make the book concise since a static type system includes a lot of things to learn. The language has a lot of similarities with JavaScript (at least from a helicopter view), however it will not use prototypes, instead it will use classes. The author has a small section about classes vs prototypes which I found interesting.

The chapter pointed to an interesting paper that will be on my reading list:

Peter J. Landin coined the term “closure”. Yes, he invented damn near half the terms in programming languages. Most of them came out of one incredible paper, “The Next 700 Programming Languages”.

and this post, Waterbed Theory, by Larry Wall.

Next up is part two and chapter 4 about scanners.

My previous post about the book is here.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay