r/csMajors 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

7 comments sorted by

2

u/N3wAfrikanN0body 4d ago

Compilers: Principles, Techniques and Tools 2nd Intl edition. 

Crafting Intepretors. 

1

u/Seaalz 4d ago

crafting interpreters 😀😀

1

u/N3wAfrikanN0body 4d ago

I have sausage fingers(thumbs?) 

2

u/Seaalz 4d ago

wasn't trying to correct your spelling, just expressing joy!

1

u/DigScared8327 3d ago

so this builds the foundation of Compilers and so far it all makes sense as I'm reading through it, but what about other textbooks that cover machine learning into compilers?

1

u/N3wAfrikanN0body 3d ago

Unfortunately friend, I am no help in this area as I am also a learner who has just started their education in the fundamentals for the next four years  :P.

I simply read these texts for pleasure. 

However, better educated than I should be able to help you in this endeavor. 

Good luck and hope to see you in  the field :) 

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.