Live data from Hacker News

Crafting Interpreters is available in print

craftinginterpreters.com

91–100 of 120 posts

Re: Crafting Interpreters is available in print

#91

I used the website for my compilers class this last semester and it was great. Recursive descent parsing and a hand-rolled lexer teaches grammars and general language design way better than other alternatives.

Sometimes I with that intro to compilers books placed a bigger emphasis on recursive descent. Recursive descent works anywhere, without dependencies to external tools such as Bison or ANTLR. I hope that this book marks the start of a trend.

Sure, everyone should learn about LR parsers at some point. But I'd argue that outside a compiler class, knowing recursive descent is likely to be useful more often than knowing LR parsing.

Re: Crafting Interpreters is available in print

#92
post #63

Somewhat related, I recently read about the undocumented tokenizer that comes with the python re module. https://www.reddit.com/r/ProgrammerTIL/comments/4tpt03/pytho...

Word of warning: The Scanner class does not adhere to the maximal munch rule, so you shouldn't use it to match keywords the way that it's done in the code in the linked reddit thread. If you replace the word "foobar" in the input with "truebar", it will then be tokenized as the keyword true followed by the identifier "bar", which is obviously not what you want.

Re: Crafting Interpreters is available in print

#93

Author here! It feels amazing to have this done and live. I'm happy to talk about whatever you might want to know about it. If you're curious how the sausage was made, I wrote a blog post about taking the web book and bringing it to print and ebook here: http://journal.stuffwithstuff.com/2021/07/29/640-pages-in-15...

Congratulations on releasing the book! Grateful for your work both as a student of computer science and as a Flutter/Dart developer. I’m planning on buying a copy after work. Are there any resources you recommend as a follow up to this book, and do you have any new content planned?

Re: Crafting Interpreters is available in print

#94
post #90

Earlier quoted context omitted.

Literally hand drawn with my hands. Here's a video of me making one: https://www.youtube.com/watch?v=iN1MsCXkPSA It's, like, comically time consuming. But also pretty satisfying.

Have you ever tried engineering paper? :) Might save you the step of taping grid paper! The grid only exists on one side, but essentially disappears when scanned. https://www.staples.com/TOPS-Engineering-Computation-Pad-Gum...

Ah, that's a good idea! I haven't seen that stuff in ages.

Re: Crafting Interpreters is available in print

#95
post #44

Between A) Being implemented in Java and B) Not having anything satisfying on types I can't get excited about it. I know it's an uncommon opinion but there's so much missing it can't be a monograph/treatise.

What’s wrong with Java for a compiler implementation language? One of the most powerful dynamic compilers in the world is in Java. And its object orientated design works well for compilers.

Re: Crafting Interpreters is available in print

#96

Author here! It feels amazing to have this done and live. I'm happy to talk about whatever you might want to know about it. If you're curious how the sausage was made, I wrote a blog post about taking the web book and bringing it to print and ebook here: http://journal.stuffwithstuff.com/2021/07/29/640-pages-in-15...

Can you please point out the differences compared to other books for the same topic? Thanks!

Re: Crafting Interpreters is available in print

#97

Author here! It feels amazing to have this done and live. I'm happy to talk about whatever you might want to know about it. If you're curious how the sausage was made, I wrote a blog post about taking the web book and bringing it to print and ebook here: http://journal.stuffwithstuff.com/2021/07/29/640-pages-in-15...

Congratulations, this is such a tremendous achievement. Well done. And thank you for everything that you've done to make language hacking accessible (and Wren is superb, by the way).

Re: Crafting Interpreters is available in print

#98

Author here! It feels amazing to have this done and live. I'm happy to talk about whatever you might want to know about it. If you're curious how the sausage was made, I wrote a blog post about taking the web book and bringing it to print and ebook here: http://journal.stuffwithstuff.com/2021/07/29/640-pages-in-15...

This was such an amazing read. Getting nervous about not being able to diff things is so relatable!

Re: Crafting Interpreters is available in print

#99
post #96

Author here! It feels amazing to have this done and live. I'm happy to talk about whatever you might want to know about it. If you're curious how the sausage was made, I wrote a blog post about taking the web book and bringing it to print and ebook here: http://journal.stuffwithstuff.com/2021/07/29/640-pages-in-15...

Can you please point out the differences compared to other books for the same topic? Thanks!

Not the author, but working through it and having read compiler books in the past... I is very practical vs theoretical, very hands on, and willing to engage with sticky problems rather than glossing over them. The language it implements feels modern (vs the Pascal you do in Let's Write a Compiler.) The writing is fun but not over the top. You hand write the parser instead of using a parser generator.

Re: Crafting Interpreters is available in print

#100
post #90

Earlier quoted context omitted.

Have you ever tried engineering paper? :) Might save you the step of taping grid paper! The grid only exists on one side, but essentially disappears when scanned. https://www.staples.com/TOPS-Engineering-Computation-Pad-Gum...

Ah, that's a good idea! I haven't seen that stuff in ages.

It tends to be hard to find outside of college towns....
Post reply on HN