logoalt Hacker News

bArrayyesterday at 12:17 PM2 repliesview on HN

Interesting project. I'm quite interested in developing a small programming language myself, but am not sure where to start. What resources do you recommend?


Replies

scapbiyesterday at 12:39 PM

Crafting Interpreters https://craftinginterpreters.com is a super friendly, step-by-step guide to building your own language and VM, looking forward to seeing what kind of language you come up with too!

show 1 reply
xqb64today at 1:48 AM

The concepts that the OP talks about (liveness analysis, constant folding, dead code elimination), and similar stuff revolving around IR optimization, can be found explained in great detail in Nora Sandler's "Writing a C compiler".