News for hackers. Stuff that matters.
Re:So you want to be a compiler wizard (2016) by azhenley on Sunday April 12, 2020 @02:56PM (#22850290)
Exactly. Just start from the beginning and work through each problem as you get to it. Keep the scope small and iterate. You'll probably find yourself wanting to start from scratch a lot once you learn how to do it better, that's ok.

I'm writing up a tutorial for my students right now. It is just a stripped down dialect of BASIC. I think seeing the entire compiler process from start to finish on a tiny language is what helped me the most.

Re:So you want to be a compiler wizard (2016) by WalterBright on Sunday April 12, 2020 @03:33PM (#22850499)
I got my start from the Tiny Pascal compiler listing from BYTE Magazine in the 1970's. It was a complete compiler and interpreter.
Re:So you want to be a compiler wizard (2016) by zoomablemind on Sunday April 12, 2020 @06:51PM (#22851608)
Thanks! First time reading Byte mag. Kinda almost half century late :)

The article is written with amazing (these days) clarity. Kinda coincided with my current interest in LLVM. Nice to see this article also be coming from UofI Urbana-Champaign grads.

Reportedly the article series misses implementation of one component - run-time, which is needed in order to fully replicate it now. Well, anyway, reading on!

Btw: HN thread on Tiny Pascal from 2018 https://news.ycombinator.com/item?id=17220507

Re:So you want to be a compiler wizard (2016) by WalterBright on Sunday April 12, 2020 @04:23PM (#22850781)
Thank you. I was too lazy to look it up.
Re:So you want to be a compiler wizard (2016) by kick on Sunday April 12, 2020 @06:19PM (#22851425)
Always happy to lend context to these things; BYTE was so fantastic.