Yesterday I spoke at about writing a codegerator targeting . My slides, links and code are now online:
Conversation
Thing that mainly stuck with me was seeing how compiling an AST to a stack-based IR was just about flattening a tree in a depth-first way. Loved the diagrams in the talk, they were super helpful!
Also loved the encouragement to learners about how even though this stuff can sometimes be hard, and goes pretty deep, getting a basic understanding achievable and very rewarding. Kind of how I've felt learning the type theory stuff!
3
Thanks. I wish I had the time to extend it further into register and SSA machines. Just could have shown it get a little deeper...
1
1
1
1
Show replies


