Live data from Hacker News

Show HN: Crafting Interpreters – A handbook for making programming languages

craftinginterpreters.com

1–10 of 77 posts

Re: Show HN: Crafting Interpreters – A handbook for making programming languages

#2
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.

Re: Show HN: Crafting Interpreters – A handbook for making programming languages

#5
Thank you so much for the book, please, continue!

I am currently working on Scheme R5RS implementation in Java. It is a hobby project, but I'm really enjoying it. It is somewhat enlightening.

Look forward to reading the Optimization chapter: I couldn't find much useful and practical info on that. I think it is quite easy to implement your interpreter, but it is really difficult (at least for me) to make it fast.

Can anyone recommend any articles or books with common optimization tricks and techniques?

Re: Show HN: Crafting Interpreters – A handbook for making programming languages

#6
Another great-looking book on making dynamic languages. There's been some good ones recently, and this one looks like another good one covering how to make a basic, interpreted language.

Some of us have written 1 or 2 dynamic, interpreted languages, feel pretty comfortable with those concepts, and are interested in transiting to more advanced, static type systems and writing a good type checker.

Anyone up for writing such a high-quality book as this one on statically-typed languages, ideally functional languages? The only decent books I've found on the subject are 20-30 year-old textbooks. I'm watching "Write You a Haskell" with interest (and have partially read it), even though I'm more into ML and Scala than Haskell, but it's still pretty unfinished.

There's also the plzoo, which is a great resource but not a book.

Oh, and I definitely need to read Pierce's Types and Programming Languages textbook, I've ordered it and need to sit down with it. I suspect it will be very enlightening.

But a more approachable book on statically-typed languages in the same genre as this one is (popular, less academic) would also be welcome.

Re: Show HN: Crafting Interpreters – A handbook for making programming languages

#7
post #2

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.

Ha yeah, Terence parr is a référence.

Re: Show HN: Crafting Interpreters – A handbook for making programming languages

#8
post #6

Another great-looking book on making dynamic languages. There's been some good ones recently, and this one looks like another good one covering how to make a basic, interpreted language. Some of us have written 1 or 2 dynamic, interpreted languages, feel pretty comfortable with those concepts, and are interested in transiting to more advanced, static type systems and writing a good type checker. Anyone up for writing…

> Pierce's Types and Programming Languages

Pierce's book is as approachable as you're likely to see with respect to type systems. You mostly just have to dig in.

Re: Show HN: Crafting Interpreters – A handbook for making programming languages

#9
post #5

Thank you so much for the book, please, continue! I am currently working on Scheme R5RS implementation in Java. It is a hobby project, but I'm really enjoying it. It is somewhat enlightening. Look forward to reading the Optimization chapter: I couldn't find much useful and practical info on that. I think it is quite easy to implement your interpreter, but it is really difficult (at least for me) to make it fast. Can…

I'm trying to bootstrap a forth and a scheme but i'm still at the thinking phase right now.

Re: Show HN: Crafting Interpreters – A handbook for making programming languages

#10
post #6

Another great-looking book on making dynamic languages. There's been some good ones recently, and this one looks like another good one covering how to make a basic, interpreted language. Some of us have written 1 or 2 dynamic, interpreted languages, feel pretty comfortable with those concepts, and are interested in transiting to more advanced, static type systems and writing a good type checker. Anyone up for writing…

> Pierce's Types and Programming Languages Pierce's book is as approachable as you're likely to see with respect to type systems. You mostly just have to dig in.

Yeah, I suspect you're correct at the moment. In fact, TaPL looks pretty approachable for an academic book.

But it seems to be there's a place for a more popular book on type systems and making a statically-typed language, in the vein of this Crafting Interpreters book (and others like it).

Perhaps I'll read TaPL, write a nice statically-typed language, and then write the book I'm looking for.

Post reply on HN