News for hackers. Stuff that matters.
Re:Let’s Build a Compiler (1995) by snoonan on Wednesday October 30, 2013 @01:13PM (#6641642)
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) by simcop2387 on Wednesday October 30, 2013 @03:20PM (#6642600)
You're lucky, I was doing the same things in middle school. Took me until college for that last part... :)

That same game project I started then still has been going on since then, multiple compilers and VMs written to do parts of the game. It's ended up an incredibly complex monstrosity with procedurally generated worlds and randomly altered scripts (some actions just won't be available on some play-throughs).

Re:Let’s Build a Compiler (1995) by xerophtye on Thursday October 31, 2013 @06:08AM (#6645980)
Is the game (or its code) online somewhere? :P
Re:Let’s Build a Compiler (1995) by simcop2387 on Thursday October 31, 2013 @06:43PM (#6650548)
Not yet, there's been many incarnation, but none of them ever reached a playable state. I've been on a kick to restart it lately after starting to learn prolog. I've been playing with some pre-made engines to find out if any of them can accelerate the whole thing a bit. Checking out Unity right now.
Re:Let’s Build a Compiler (1995) by angersock on Wednesday October 30, 2013 @01:21PM (#6641715)
Hah, well done on both counts!
Re:Let’s Build a Compiler (1995) by Bradenski on Wednesday October 30, 2013 @02:04PM (#6641997)
How long did it take you to get through it?
Re:Let’s Build a Compiler (1995) by snoonan on Wednesday October 30, 2013 @02:50PM (#6642373)
Well, it was about 20 years ago and I was a self taught programmer pre-Internet days. I actually downloaded it from a BBS and had no outside references to work with.

I spent probably 30 minutes 2 or 3 times a week for a couple of months. Most of that was probably adding features to my interpreter and coding the game itself. I recall it being extremely clear to me, even without any sort of formal CS. Even things like working with the stack and recursion were clear to me at the time.

Re:Let’s Build a Compiler (1995) by jason_slack on Wednesday October 30, 2013 @03:41PM (#6642786)
congrats. This has been on my list to read and experiment with. I was hoping my 15-year old could get into this as well.
Re:Let’s Build a Compiler (1995) by pekk on Wednesday October 30, 2013 @10:28PM (#6644868)
No pressure though ;)