Lurker News

Comments (75) 20 threads

trishume1 reply#
A fantastic book covering similar things that you can read right now is https://pragprog.com/book/tpdsl/language-implementation-patt.... It's the book that got me into interpreters and compilers, I highly recommend it.

It's slightly less in depth than the roadmap of "Crafting Interpreters", but again, it exists right now.

agumonkey#
Ha yeah, Terence parr is a référence.
codebeaker3 replies#
Seems to be a hot topic, a friend and colleague published this in December 2016 and I can thoroughly recommend it (Uses Go as an implementation language):

- https://interpreterbook.com

jalfresi#
I bought this when it appeared on HN around xmas, can recommend, its a pretty great introduction to the subject
bruth#
I can recommend this book as well! It is easy to read and understand and the choice of Go as the host language is also great.

I am in the process writing a semi-natural query language (boolean logic) targeted at domain experts (in this case biomedical researchers) that compiles to either database queries (e.g. SQL) or a function call for arbitrary logic. The goal of the compiler bit is to abstract away where the data ultimately lives (similar to GraphQL) or how it is structured.

munificent#
Yeah, I've talked to Thorsten over a email a little. I'm excited about his book too, and I hope it does really well. Go is a cool choice for a language book. It's low-level enough to let you show some of the fundamental algorithms, but not as tedious to work with as C and its manual memory management.
munificent#
Yes! The code for the whole book is done already and sliced into chapters. I had to do that first before I started putting things online. I didn't want to paint myself into a corner by having something in an earlier chapter that ended up not making sense later.

So the code is all done, and now "all" that's left to do is write and edit all of the prose. Which, of course, is really the hardest part by far.

zengid1 reply#
Me too; I'm looking for a way to learn more about building data-structures in C.
zengid#
I added both to my wish-list; Thanks!
throwathrowaway1 reply#
Nice project. What do all the

//> SomeName not-yet
in the code mean? Are they meant for some kind of automatic processing? Its a bit hard to read with all of them there...

munificent#
Sorry, yeah. Those are the markers that the build script uses to insert the code snippets in the right place in each chapter.

I know it makes the code hard to read. I should probably slap together a little script to strip them out.

Load more comments