r/Compilers • u/Due-Push6432 • Aug 13 '26
AI COMPILER ENGINEER
Hi
If I would like to become an AI/ml compiler engineer, would the dragon book be the apt starting point and should I learn about parsing and all that stuff? Or can I directly jump to llvm and start with projects?
0
Upvotes
4
u/SEgopher Aug 13 '26
I'm not saying it's not possible, but you would need a Masters or PhD level understanding of the mathematics behind AI, already be proficient with compilation backends, and just generally be to the point where a basic question like this would answer itself. The fact that you can't use AI tools to figure out what to do next is honestly a huge red flag inof itself.
Maybe start with a much smaller scope. Do you want to go learn about AI or compilers first. If it's compilers, sure, you could read the dragon book and work out a toy compiler as a first project.
2
u/adityazero Aug 13 '26
(may not be a popular take but) parsing and finite automata are the topics that kills interest of many prospective compiler engineers. I found optimizations, codegen to be more interesting. So the second half of dragon book might keep you on track to be a compiler engineer.
If you only want to focus on becoming ML compiler engineer, it is better to start with tutorials on MLIR. Most (all?) compiler books were written keeping the traditional compiler in mind.
3
u/GeneDefiant6537 Aug 13 '26
Do you already know how to write regular compilers? If not, probably better to start from there.
AI/ML/Tensor compiler is just a compiler that operates on Tensors( a generalization of matrices, vectors, scalars, 4+ dimensional arrays). And the operations are matrix multiplication, ReLU, etc.
See: https://book.mlc.ai/index.html
2
u/Prestigious-Bet-6534 Aug 13 '26
This is very good and free: https://craftinginterpreters.com/
3
u/[deleted] Aug 13 '26
[removed] — view removed comment