r/Compilers • u/gloogie • 21d ago
Transitioning from backend SWE to compiler engineering. Any advice on projects and hiring?
Hey everyone,
I know this sub gets questions like this quite often, but there are a few specific things I've been struggling to find answers to.
I've been working towards a career in compiler engineering for the past few months through personal projects and self-study. For context, my background is 3 years of backend engineering at Dell (mostly ETL and internal tooling in C#/.NET), and I recently completed a master's focused on applied AI.
My main project is building an end-to-end x86-64 compiler from scratch in C++20. I've deliberately kept the source language simple (i64/bool types, functions, conditionals, loops, and recursion, but no pointers, structs, or complex types) so I can focus on the engineering and fundamentals of compiler construction rather than language features. I've finished the frontend (lexer, AST, recursive-descent parser, and semantic analysis, with unit tests for each component) and am currently working on IR. The plan is to eventually go through CFGs, dataflow analysis, optimizations, SSA, instruction selection, register allocation, and native x86-64 codegen.
GitHub: https://github.com/gloogie1/x86-64-native-compiler
While I've seen plenty of employers state that personal projects count as relevant experience, I've also come across compiler engineers saying that toy compilers generally aren't that impressive when evaluating candidates. So my first question is, what exactly separates a worthwhile compiler project from just another toy compiler in the eyes of employers? Is it primarily the complexity of the implementation, the engineering quality, or something else?
My second concern is that most compiler job postings I've come across mention LLVM and/or MLIR. I'm wondering how employers would view a compiler built entirely from scratch compared to projects built using those frameworks. When I started, I figured implementing everything myself would be a good way to understand how the different parts of a compiler actually work. Would it be better to see this project all the way through, or start getting experience with production compiler frameworks and open-source contributions sooner?
Finally, I'm also trying to understand some of the hiring barriers beyond just technical skills. A lot of compiler roles ask for relevant industry experience. Would my 3 years of general SWE experience help offset the lack of direct compiler experience, or would I effectively be considered an entry-level candidate?
I'm also applying internationally rather than limiting myself to one country, which means visa sponsorship would be a factor for many positions. I'm curious whether that makes breaking into an already specialized field significantly more difficult, particularly without previous work experience in compilers.
I'd really appreciate any insights from people working in the field, especially those who've been involved in hiring or have made a similar transition.
TL;DR — My main questions:
- What makes a personal compiler project stand out to employers beyond being another toy compiler?
- How do employers value a compiler built from scratch compared to LLVM/MLIR-based projects or OSS contributions? Should I finish mine first or shift towards those frameworks sooner?
- How much does 3 YOE in general backend SWE count when applying for compiler roles without direct industry experience?
- How much of an additional barrier is applying internationally and needing visa sponsorship when trying to enter the field?
Thanks!
12
u/Clevermonkey16 19d ago
Hey there! I usually never comment on Reddit, but I’ll give it a crack since this has no comments. For context, I’m a new masters grad who recently accepted a ML compilers role. My profile is a masters project in the compilers lab at my university (not a target school btw), undergrad research in computer architecture, 1 internship in security, and 2 smaller compilers-adjacent projects (so 0 YOE total). Sent out 30 applications, got 4 interviews, 1 offer. Still pretty new to all this so please don’t rip into me too hard if any industry veterans are reading this 🙏
On your first question, I think the issue with toy compilers is that many schools have this as a project in some compilers course, which means lots of students put it on their resume, especially if they’re tailoring it. However, it doesn’t say much about actual compiler development knowledge since most of the time, the students are just following a set of instructions given by their professor. If someone gets asked, “how did you ensure the compiler is correct”, the answer is usually “we had an auto grader”. And I think that many interviewers have had this happen enough to kind of see through it. I’ve seen many peers throw their toy compiler onto their resume just because why not, despite our course’s compiler being quite basic with no mention of testing/benchmarking. It’s still a good project to include, and you should still finish it for learning purposes, but it shouldn’t be the only evidence on your resume that you know compilers. There’s plenty of other project ideas that target smaller, but real problems (ASan clone, obfuscator, a more uncommon optimization, etc) that are good ways to show more depth. It’s just the unfortunate reality that the value of toy compilers as a hiring signal has been diluted.
On your second question, I can say that interviewers asked me point blank if I’ve work with LLVM IR. I didn’t have a specific LLVM project, but I did have Rustc experience, which they counted. I think companies are looking for production grade compiler experience because the IR will be a step up in complexity from most toy compiler IRs and they want people that can deal with that. The caveat is that it’s hard to jump straight there if you’ve never implemented a simpler version of common transformations before, so I wouldn’t necessarily abandon your toy compiler. But you’ll probably eventually want a project that deals with LLVM in some form.
On question 3 and 4, I don’t actually know, sorry.
Hope this is helpful! I know from personally experience how much work it takes, so props to you for trying.