Found in 10 comments on Hacker News
Rochus · 2021-04-24 · Original thread
There is a more recent edition of "Compilers: Principles, Techniques, and Tools" worth considering:
dvt · 2017-09-04 · Original thread
I strongly suggest you build something esoteric and fun first. This should be a "bare minimum" VM or interpreter. Here's one of mine that I wrote like a 8 years ago[1]:

Don't start off with YACC/Bison as they hide a lot of stuff under the hood. It's cool learning things from scratch. The most commonly-suggested book on compilers is known as the Dragon Book[2] and if you want to take this endeavour seriously, you should really get a copy.



thaumasiotes · 2017-03-10 · Original thread
I used the dragon book (2nd edition) -

That proof isn't a problem in the book; it's mentioned, with a hint for those inclined to derive it themselves, in the running text.

metaobject · 2016-07-25 · Original thread
In 2006 a second edition of the dragon book was released:
theWold · 2016-01-07 · Original thread
There are many different styles and paths to learning 'Computer Science'.

But if what you are after is insight into how a computer works I found that I had my 'ah-ha' moment while learning C, Assembly (intel), and writing a compiler. I did have to have a slight basis in computer architecture, but that compiler project I worked on made everything click.

(side note on writing a compiler. Read, Decode, Execute. There are no short cuts around those series of steps).

If you are looking for a book I would recommend the 'Dragon Book'

I found a paper copy of the international version for cheap (like $10 US if I remember) that was amazing.

peterkelly · 2015-12-14 · Original thread
For anyone interested in compiler writing and looking for a good resource to start, probably one of the best is the "Dragon Book":

I highly recommend it, but it's heavy stuff. There are probably simpler guides out there that just cover the basics.

rjbwork · 2015-12-05 · Original thread
This will get you started on the compilers side of things.

You can also use for a deeper understanding of interpreted languages and language structure.

gte910h · 2014-06-24 · Original thread
1> Do you have a "Real" CS degree?

If not, doing a good portion of the exercises in some books on [compilers](, [DFAs/State Machines](, Algorithms ( and theoretical programming ( can give you some common foundational lenses with which to see these articles

2> Learning the history of your field

Nothing informs the current state of the field more than how we got here! Learn the foundation of your field from people who lived it. The podcast [Debug]( is Guy English (Creator of Napkin and other apps) along with Rene Ritchie interviewing people about the history of Cocoa and CocoaTouch

I found [this episode about AutoLayout and Key Ferry illuminating](

3> Go through early versions. Few systems START complex. Look at OLD books for EARLY versions of systems, and why old php made such silly choices is obvious (hint, they weren't that silly for what it was doing). Read books and commentary through the timeline. Understand the history of what's happening to the language, then you'll understand why you are where you are.

4> Go DOWN the stack. Understand the bottom of Objective C by reading [the open source implementation of Core Foundation and more]( Also available elsewhere (and I think somewhere on Apple's Site still).

5> Do what you shouldn't! Don't ship it, but really use those implementation details to do something awesome and amazing. You'll learn tons about what's happening.

PS: To the mods, those aren't affiliate links

betterunix · 2013-11-26 · Original thread
There is not much point in writing a parser without using a parser generator. Now, if you want to know how to make a parser generator, I recommend starting here:

If you want lots of detail, there is always this:

Fresh book recommendations delivered straight to your inbox every Thursday.