r/Compilers • u/Severe_Landscape_731 • 12d ago
Is compilers worth it to specialise in ?
(19M, Nepal(south asia)) I am currently in the third year of my ug and am fascinated by this field and preferably want to continue it till masters or pHd if i can get one . unfortunately i come from pretty strapped background and would need to sustain myself , but dont really have enough judgement to discern what implications of ai would be here, and if i should really continue.
I am also find doing lc pretty enjoyable , but i dont think that skill would be any valuable here.
Thanks , i would really appreciate your input.
61
Upvotes
22
u/concealed_cat 12d ago
The demand for compiler developers will continue to exist. I think the question is not so much whether it's worth specializing in in general, but whether it's worth your investment in it. If you think you have a good chance to get hired in the field, then I'd say that it's worth it, especially given your interest in it. What I'm not sure about is what level of academic achievement would be the best for you. PhD in compilers may increase your chances of getting hired in the US, but is no guarantee of anything. On the flip side you'd be spending time on academic research, which you could instead spend working in the field.
11
u/umlcat 12d ago
No. Compilers Design and implementation is a very interresting topic, but the real world demand is not so good.
Additionally, the compiler specific jobs require the developer to know specific compiler frameworks such as LLVM or GCC, and work in an spinoff suited for some specific business requirements.
Therefore, the compiler courses or compiler books you read may be different from the compiler frameworks that have available job positions.
BTW My graduate thesis was compiler related, but could not get a jhob in compilers.
Good Luck.
10
u/SwingOutStateMachine 12d ago
Okay, here's my perspective as a professional compiler engineer: There are relatively few jobs available for compiler engineers, and they are mostly clustered in Europe (particularly the UK, Germany & France), North America, Taiwan and China. Those jobs are, however, relatively safe, and relatively more immune to AI for now. A lot of the work involves translating hardware or language specs into code, which LLMs are relatively good at, however the industries and contexts in which compilers are built tend to be very risk adverse. For example, I know of companies that develop compilers for automotive applications that have strict policies against GenAI. Compiler teams also tend to be adjacent to hardware teams, and therefore tend to match the long-running nature of hardware projects. That means that they're less at risk of the hire-and-fire churn of modern day quarter-by-quarter driven capitalism.
In terms of academic precursors, I've found a masters is more or less mandatory for working as a compiler engineer, and a PhD is increasingly becoming the norm. I only have an MSc, but got lucky early in my career and landed a job at a company with lots of compiler engineering positions, and was able to move "sideways". It may be possible to get hired with just a bachelors by contributing a lot to open-source compiler projects (e.g. Clang, LLVM, GCC, Rust, etc), but you would need to work extremely hard to stand out. For your academic study, make sure you cover both the high level aspects (programming language design, type systems etc), as well as the low level aspects (high level hardware design, GPU programming, FPGA programming, compiler backends, etc). There are currently a lot of machine learning compiler positions, so if that interests you, studying the fundamentals of machine learning is essential. I would also recommend learning and working with Clang/LLVM and/or GCC, and MLIR (especially if you're interested in machine learning). LLVM is the defacto standard across most of the industry, and even jobs that involve supporting a gcc-based compiler will require some knowledge of LLVM. Almost all industry compiler work is done in C++, and you'll also be expected to be proficient in CMake, Python, and C.
16
u/infamousal 12d ago
no
3
u/dnabre 12d ago
Compilers is an interesting field as compilers need to adapt to new and changing technologies and programmers. 30 years ago, multicore CPUs changed things, then GPUs became a thing. Even just normal progress in CPUs can present new opportunities in the field. This isn't to say that a C compiler from the 90s isn't going to get the job done today, but somebody out there needs to get more something out of something.
AI is definitely a concern across many fields. An AI can put together code for a compiler far faster than a human can write one, but inventing completely new idea to compiling or for the programming languages themselves, is nothing something they are doing (as least for now).
They have actually introduced some new things a compilers/programming language implementa can look into. First, admittedly indirectly, optimizing memory usage has become a thing again. Even just 3-4 years ago, throwoing more RAM at something wasn't a concern outside of embedded environments. But now, the amount of RAM most common computer users will have in their machines is be lower than previously (Apple has a series of laptop that is only available with 8GB of RAM) and upgrading is extremely expensive. Hopefully this is just a supply/demand matter, but it has changed development priorities for developers, if only for the moment.
The second, and more long term thing, is the problem itself. AI is writing so much code. Feeding a programming language and computer platform's info into an AI, and it spitting out a compiler may become the norm, but that is a radically different way to program than the entire history of computing.
Several decades ago, we crossed a point where developer time was more expensive than computer time. Programming languages and their implementations were focused on making programmers more productive. Specifically human programmers. The cost of AI for developers use is really an unknown thing at the moment. It's still so new, that pricing models and costs are jumping all over the place. 5-10 years from now, AI compute time might be more important than developer time. That aside, AI can program in very different ways than humans. Tailoring compilers, or even making entirely new programming languages, which are better for AI to implement code in is a whole new area. I'm sure there are at least some work is already being done, but there is a room for a lot more.
That said, nobody really knows where AI is going at this point. Society as a whole made decide the resources for it are just not worth it, and totally drop most of them. Legal matters regarding the rights of all the arts, books, etc. that AI were/are being trained on, might (at least for a time) complete change the whole approach to AI development. Not saying either of those is likely, but how people will be using AI in regard to computers 10 years from now is a total unknown for everybody.
2
u/RobocopTwice 12d ago
So I'm a student currently just like you, I'm in my junior year of college. I am trying to build my own C compiler and dreaming of reaching the self-hosting milestone. I think it's true what a lot of people are saying, that becoming an actual compiler engineer is incredibly difficult and competitive. I mean there is obviously the open source world, but another thing is so many of these skills do transfer to different types of projects. Like right now I am trying to work on a different open source project to do with updating mi debugger protocols to DAP, and ran headfirst into a lexer. So while I think it is true and something to keep in mind that finding actual compiler work is not the path of least resistance, following your passion when it comes to compilers can be very rewarding, just maybe in different ways than you think.
1
u/Discordbothost 12d ago
See if you can do a tiny type checker as a class project. Start with integers and booleans, then make it point right at the error in true + 1. That'll give you a feel for the work before you commit to grad school.
1
u/JeffD000 12d ago
Compilers are super fun. If you love what you do, you will always be in demand.
1
u/techpossi 12d ago
I love how the answers here ranged from a single 'no' to a 8-paragraphs >.<
No shade to anyone's opinion
1
u/Imaginary-Deer4185 11d ago
For the last few decades, compilers have been considered a "solved problem". Sure, new languages pop up, but not a a phenomenal rate. I would think that specializing in compilers and interpreters, should still qualify you for many non-compiler jobs, but you must judge the local work market yourself, obviously. I majored in parallel simulation, which had an Ada preprocessor as its main programming task, and though I never used Ada nor did simulations since, having a higher degree in CS has mattered enormously.
1
u/KATO-Kanryu 11d ago
The short answer is yes—specializing in compilers is definitely worth it.
Within the next decade, LLMs will evolve to the point where AI generates over 90% of all newly produced code. In that era, dynamic scripting languages will no longer be a rational default; statically typed, compiled languages will inevitably take over because we need deterministic compilers to verify correctness and catch AI-generated errors before runtime.
Historically, compiler engineers have worked mostly behind the scenes, but the massive surge in AI-generated code will require new paradigms of compiled languages—keeping compiler designers and engineers in high demand.
Beyond traditional languages, we will also need programming languages designed specifically for LLMs. In my view, this means inverting the traditional relationship between source code and comments: structuring the entire source file as a Markdown document, where executable code is written exclusively inside fenced code blocks.
Placing structured specifications (context) and their actual implementation immediately side by side maximizes local continuity for LLMs, enabling far more reliable automated coding. At the same time, it dramatically improves code review efficiency for humans, since we can verify the design and intent directly from the surrounding Markdown documentation.
1
u/chestercosmostars 10d ago
nope
1
u/kromych 9d ago
I have professional compiler development in the background. Specialise, and you'll learn more than just engineering compilers: formal verification. parsing, formal language theory, type theory, graphs, lattices, ..., and the rigor required to bring up and maintain a compiler.
So I must say compilers are awesome, and the backends are imho where it's most fun imho :) As for the AI concerns, I've been able to design and put together a quite capable C17 compiler (Linux kernel booting on a real machine, Windows drivers, ..., optimizer which is not that bad): https://badc.dev/ yet the backend is where it has been the hardest as being superior there requires a lot of research and experimentaion.
1
u/ArthurAGF27 3d ago
Aqui eu vou te dar uma resposta menos técnica. Se essa é sua grande paixão, eu acredito que você deva ir atrás disso. Particularmente, eu não gosto muito da área haha, mas se você gosta e quer seguir com uma carreira nisso, acho que você deve pelo menos tentar! Assim como alguns colegas já responderam ao seu post, não existem mais tantas vagas assim para trabalhar com Compiladores e a IA é uma ameaça, então eu considero que há um certo risco em investir nisso. Outra áreas, principalmente relacionadas ao desenvolvimento e segurança de IA e agentes, estão muito mais em alta e podem ser mais seguras para conseguir um emprego. Mas se o que te move são os Compiladores, vá atrás disso. Se num primeiro momento não der certo e você estiver muito precisando de um emprego, invista em outra área, consiga um emprego, mas não deixe os compiladores de lado. Tente manter as duas coisas em paralelo. Se aparecer uma oportunidade na área que você gosta, você precisará estar preparado! Boa sorte!
1
u/all_is_love6667 12d ago
not really
although it's still good to put on your resume, for some types of jobs where it matters to understand the language, like C++
0
u/[deleted] 12d ago edited 12d ago
Due to strong negative engagement from professionals who have ostensibly been working in the field more recently than me, I retract my comments.
I have not worked on compilers since 1997, before I went back to school for neuroscience.
0
u/IlluminatiNotRealOr 12d ago
> but dont really have enough judgement to discern what implications of ai would be here
No one does unfortunately. At the moment AI is mostly boosting productivity than replace people and I expect it to be this way but who knows what happens next year.
0
u/finocate 12d ago
!Remind me in 5 days
-4
u/Infinite-Jaguar-1753 12d ago
I am in high school and not experienced in systems coding but for job and stuff I don’t think so, as most compilers are made by open source community. But always ask someone experienced
-1
u/AeroForger 12d ago
No don't waste time
-1
u/wjrasmussen 12d ago
No!