Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: Writing your first compiler resources/guides
2 points by ACow_Adonis on June 13, 2019 | hide | past | favorite | 1 comment
I've reached that stage of life where one sits down and says: "I should invent and implement a compiled computer language".

What are the best practical resources, guides, and exercises available in order to get started on writing a compiler from scratch? (Ideally by partaking in little exercises and projects to actually make 'the things happen' at each stage from very minimal beginnings, and then some insight into some modern tools, philosophies and workflows in practice?)




You should start with a good course on automata, such as "Automata and computability" by Kozen. That will cover parsing and a bit more, but this is all "old stuff", or basics, as you see things. Then you would need a good course on type theory, but unfortunately I have no pointer for this. You may also read that http://lambda-the-ultimate.org/node/5569




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: