fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Andrew Tropin

A few months ago I was looking for a book about compiler construction, but for languages with thin syntax like lisp (so there a very little emphasis on grammars and parsing).

Where do you think I find today a few such books?
books.scheme.org/

books.scheme.orgScheme Books

@abcdw I'd say if you don't really care about parsing tech, just skip that part of whatever book you choose.

I'm going through craftinginterpreters.com (free, online) and am quite enjoying it. It builds an ad-hoc parser and you could easily swap in an s-expression parser.

It first builds an AST-based interpreter in Java (I used #DylanLang instead) and then builds a byte code interpreter in C for the same language.

This book is really refreshing compared to other compiler books I've used. It's very hands-on; much less theoretical.

craftinginterpreters.comCrafting Interpreters

@abcdw hmm, interesting that Jeremy Siek claims to have invented gradual typing in 2006 given that #DylanLang had it in the 1990s. Maybe he invented the term "gradual typing" though. 🤔

@abcdw Ah, he mentions Dylan and others and says "Gradual typing is meant to provide a foundation for what these languages do with their optional type annotations."

@abcdw Apart from the Siek's books, which are pretty good, I'd also recommend Turbak, Gifford and Sheldon's "Design Concepts in Programming Languages"