Hacker News new | ask | show | jobs
by e67f70028a46fba 1591 days ago
This is a book that, if you can afford it, should be bought on general principle. There are very few books that show how recursive descent works and this one is incredibly well done.

The fact he gives it away for free is amazing.

3 comments

I feel compelled to point that while I do give the book away for free which benefits lots of people, it also apparently benefits me too. Sales of the book (and my first book, Game Programming Patterns which is also online for free) have been way better than I ever expected. I think a large part of that comes from the web edition making the book better known that it would be otherwise.

So this seems to be a strategy where everyone wins. People who can't afford it get to read it. People who can but want to see if they like it first can do that. Others who can afford it support my writing. I get a lot of readers and sales.

I stumbled onto this model completely randomly, but it seems to have worked out really well for me.

Wow thanks so much for writing both of these! Game Programming Patterns helped me so much when I wrote a game engine my senior year. I read the book online and bought the physical book when I saw how useful it was. I immediately bought Crafting Interpreters when it first came out and I hope to give it a proper read through when I have some time.
Unrelated, but I did want to thank you for Game Programming Patterns; it's made game development much much less stressful for me.
That's great to hear!
Thanks. This book helped me a lot in my projects.

I'd like to see more books in the future about crafting relational databases (server or not). I know it's a huge endeavor, but I find techniques related to efficient file writing, data persistence, partitioning, indexing and effective datafile querying fascinating. After all, databases are also "mini" file systems.

It turns out the type in the print edition is small enough to trouble my ageing eyes, but I'm more than happy to have bought a copy to support such a labor of love!
Aw, darn. I'm sorry to hear that. My eyes definitely aren't what they used to be either, and I tried to typeset the book as readably as possible (which is a big part of why the page size is larger than most other technical books).
Crafting Interpreters was an amazing experience and the printed version is just beautiful. Thank you! :)
Which way of buying the print books is best for you? I've been meaning to pick both these up!
Thank you for asking. :)

I think I technically make the most of you buy it from Amazon, but I'm not picky. You can also call your local bookstore and ask them to order a copy. I won't make quite as much, but you support a local business, which is always good.

No problem, I used to work in the book biz! As I don't think we have a store on my tiny island that is hooked up to regular new book distributors, I'll go with Amazon. Thanks for making these.
ordered and looking forward to them! :-)
I totally agree. If you're into computers and computer-sciency interests and interpreters/compilers, try going through the Dragon book and try going through Bob's book. You'll realize that even though the Dragon book sells for something like $160, the Crafting Interpreters book is worth many times over for its pedagogy. (Of course both books have very different aims so it's not an apples-to-apples comparison, one is a good book for an overall Compilers course and the other gets you right in to writing your own interpreter with just enough theory to see how things fit together).
Just ordered it. I've read a parts of it when it was still being worked on and it was a delight. Can't wait to read it all.