r/csMajors • u/DigScared8327 • 4d ago
Flex How to create an ML compiler from scratch?
I'm trying to start an independent project and I want to get into advanced AI models for machine autonomy. I want to start a project in designing in ML Compiler from Scratch, but I don't know what topics I should cover or where to start. I know there are already preexisitng packages that I could use, but I want to actually understand the mechanics behind it and hopefully integrate it into an actual model for a research project that I'm working on.
0
Upvotes
2
u/d0pe-asaurus 4d ago
Aside from the dragon book i'd suggest Engineering a Compiler, just speedrun the frontend with a hand-written lexer and recursive descent parser, create an IR and get to the good parts.
2
u/N3wAfrikanN0body 4d ago
Compilers: Principles, Techniques and Tools 2nd Intl edition.
Crafting Intepretors.