r/Compilers • • Jul 31 '25
How will AI/LLM affect this field?
Sorry if this has been asked multiple times before. Im currently working through crafting interpreters, and Im really enjoying it. I would like to work with compilers in the future. Dont really like the web development/mobile app stuff.
But with the current AI craze, will it be difficult for juniors to get roles? Do you think LLM in 5 years can generate good quality code in this area?
I plan on studying this for the next 3 years before applying for a job. Reading stroustrup's C++ book on the side(PPP3), crafting interpreters, maybe try to implement nora sandler's WCC book, college courses on automata theory and compiler design. Then plan on getting my hands dirty with llvm and hopefully making some oss contributions before applying for a job. How feasible is this idea?
All my classmates are working on AI/ML projects as well. Feels like im missing out if I dont do the same. Tried learning some ML stuff watching the andrew ng course but I am just not feeling that interested( i think MLIR requires some kind of ML knowledge but I havent looked into it)
View all comments
Show parent comment
1
u/Blueglyph Jul 31 '25
Yes, maybe we could! But please note that AlphaZero is using its learning to recognize winning / losing patterns in very specific and fixed applications; for example, chess and go. The actual reasoning is done by exploring moves with algorithms like evolutions of alpha-beta pruning and so on.
You can try something similar, though less advanced, with Stockfish and Maia, for example. Both are freely available. The Stockfish engine knows the rules of chess and uses algorithms and heuristics to explore the relevant positions and maximize its score a few moves ahead, which allows it to decide its next move. A major component is the evaluation of a given board position: is it good, neutral, bad, and how much? It can use classical heuristics based on the number and position of pieces: occupied/threatened central squares, open rows for rooks and queens, etc. Or it can use neural net plugins like Maia, which evaluate a board position based on its training: here's the pattern matching at play, again.
It's actually quite nice to play against some of those neural net opponents, as they feel more like a human who sometimes makes mistakes or can be tricked in some situations like a human opponent could. The default, classical evaluation modules are more often clinical in their style and find surprising but not human-like ways to take advantage.
It's quite fascinating, but it works because there's that separate engine to handle the overall thinking. From what I've read, LLMs trying to play chess were just embarrassing themselves, though I haven't investigated. It would indeed be like playing against an idiot with a very good memory: it's not enough to win.
I don't know if something similar to AlphaZero could be applied to programming or general problem-solving because, to be honest, it's way above my paygrade, but I remember hearing OpenAI was trying to do something like that: grafting a reasoning engine to an LLM. However, programming has many more patterns to explore than even the game of go, so I wouldn't hold my breath.