Live data from Hacker News

Let’s Build a Compiler (1995)

compilers.iecc.com

1–10 of 58 posts

Re: Let’s Build a Compiler (1995)

#2
I followed this in the early 90s and had a lovely time. It helped that Turbo Pascal was my language of choice though and might not be quite so helpful now although Pascal is a pretty good pseudocode..

It's not the same but Vidar Hokstad has been writing a series for several years now in Ruby: http://www.hokstad.com/compiler/ .. and other resources aplenty: http://stackoverflow.com/a/1672/3951

Re: Let’s Build a Compiler (1995)

#3
This series is one of the best introductions to compiler construction. It doesn't cover everything and it's 25 years old now, but it is the only guide I know of that will hold your hand as you build a working compiler from scratch.

If you have never built a compiler before, I cannot think of a better place to start.

Afterward, if you're curious about theory and advanced topics, I recommend heading to Compilers: Principles, Techniques, and Tools by Aho, Sethi, and Ullman (which covers a lot of theory associated with front-ends) then proceeding to Modern Compiler Construction in ML by Appel (which covers some more advanced topics and back-end stuff). Then you can continue reading about more specific/advanced topics if you like.

Re: Let’s Build a Compiler (1995)

#4
I went through this on my own back in a HS programming class! Glad to see it here.

While the teacher was walking students through how to do loops, I got permission to hack away in the back of the room on this. I ended up building a BASIC-like interpreter with a decent graphics API. By the end of the class, my project was a multi-level breakout game I'd written in the interpreter I'd written. TLDR; two years later, I talked to a girl.

Re: Let’s Build a Compiler (1995)

#6
Prove God and the rest will follow.

God says... computers don't_even_think_about_it frown humongous That's_my_favorite phasors_on_stun quit I_pitty_the_fool do_you_know_what_time_it_is a_screw_loose absolutely endure happy_happy_joy_joy

Re: Let’s Build a Compiler (1995)

#7
post #4

I went through this on my own back in a HS programming class! Glad to see it here. While the teacher was walking students through how to do loops, I got permission to hack away in the back of the room on this. I ended up building a BASIC-like interpreter with a decent graphics API. By the end of the class, my project was a multi-level breakout game I'd written in the interpreter I'd written. TLDR; two years later, I…

Hah, well done on both counts!

Re: Let’s Build a Compiler (1995)

#8

This series is one of the best introductions to compiler construction. It doesn't cover everything and it's 25 years old now, but it is the only guide I know of that will hold your hand as you build a working compiler from scratch. If you have never built a compiler before, I cannot think of a better place to start. Afterward, if you're curious about theory and advanced topics, I recommend heading to Compilers: Princ…

A port of it to Python would probably be a better place to start. Not many people are conversant in Pascal these days.

Re: Let’s Build a Compiler (1995)

#10

I followed this in the early 90s and had a lovely time. It helped that Turbo Pascal was my language of choice though and might not be quite so helpful now although Pascal is a pretty good pseudocode.. It's not the same but Vidar Hokstad has been writing a series for several years now in Ruby: http://www.hokstad.com/compiler/ .. and other resources aplenty: http://stackoverflow.com/a/1672/3951

Me to! What a blast to the past. I might look through it again.
Post reply on HN