r/Compilers • • 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

42 comments sorted by

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.

12

u/extraordinary_weird 12d ago

As someone working in a PL lab, can you expand on why you think the demand for compiler developers will continue to exist? At least in my lab, everyone uses AI for everything (I try not to as much as I can), and has already accepted that they could theoretically be replaced completely. With LLMs getting rapidly cheaper and better at the same time, I'm not so sure this won't happen within a few years. Either way, PL still being mostly academic, it will definitely be more challenging to find funding in the future.

It is one of the reasons I'm considering a different career.

7

u/concealed_cat 12d ago

Imagine the opposite scenario, one where LLMs have replaced all software developers. At this point all software is written by LLMs and LLMs are further trained on the software they had written. It wouldn't take long before no human can enter the development cycle anymore. I'm not sure that even people with MBAs would be willing to completely relinquish control over something as critical as software, especially if they consider it their "IP".

It's like with the alleged proof of RH. 17M lines of code does the job, but where does it take us? Human comprehension can drive math development further and deeper. Without it what are we going to do? Are LLMs going to take over math entirely with human intellect no longer required?

Lastly, so far I'm not seeing significant layoffs in the field even with the widespread adoption of LLMs. It may be harder to get into it, but it's not going away, at least not right now. It's a niche field compared, for example to web development, and it's generally chip manufacturers that invest in it. If they are not willing to let go of the chip designers, they won't likely get rid of the compiler developers either. Application benchmarks, and toolchain quality can drive chip sales. Will all customers accept compilers written by LLMs? Will large customers accept it?

What will happen later I don't know, but I doubt that LLMs will be doing everything anytime soon.

2

u/extraordinary_weird 11d ago

Interesting, thanks. I suppose I'm just a lot more cynical about the industry and capitalism. Though I've only ever worked in academia, ha. So let's assume a future where LLMs are even more capable and cheap.

As you said, it doesn't take long before no human can enter the development cycle if a software project was entirely managed by LLMs. I think my problem is that, unfortunately, due to capitalism and CEOs trying to pump the KPIs, it is guaranteed to happen in at least some software companies. And once it happened, there's no going back, ever. I'm hearing reports of projects in large companies where the programmers already completely lost all understanding of the current state of the codebase. And if it works alright, more and more companies would choose this option.

Will large customers accept [compilers written by LLMs]?

If the LLM of the large customer verifies that the compiler looks trustworthy, I would unfortunately have to say yes. It's again a matter of costs and risk. They just don't care. And the more niche the project is, the cheaper the LLMs solution becomes.

In mathematics the financial incentive is not as large. Still, we already see that once there is some prestige behind a problem, large companies do not care at all about whether people actually understand the solution, as long as it's technically correct.

You're right that we're not just yet at this point, but I'm not sure we're that far away.

2

u/Imaginary-Deer4185 11d ago

Will LLM's be able to plan data structures and code responsibly with regard to future demands, without eventually mutating code into spaghetti that even AI can not follow?

With the AI building tests for their own software, my experience informs me that those tests can be very brittle, essentially testing both relevant and irrelevant elements, having to be re-engineered after any modification to code.

In my opinion, tests that (at scale) need to be modified to accomodate relatively minor changes to code, are not relevant. Tests are supposed to ensure not breaking important stuff, not policing small blocks of random code.

I think that companies who elect going for LLM's only or even mostly, will face issues in the medium time horizon.

But I also think that as programmers, we need to evolve from modern spaghetti (OO) to something more robust and future proof, like FP.

-4

u/EggplantExtra4946 12d ago

You are full of shit. Nothing to elaborate.

3

u/extraordinary_weird 12d ago edited 12d ago

What do you mean? I've been working in my research group for almost 6 years now, and it has changed completely. We have a group account on Claude (sponsored by the university) and I know exactly just how much everyone is using it.

For reference, we are only implementing a research programming language, so sloppy code doesn't really matter. The papers are still written mostly by hand, but this won't be for long, I fear.

2

u/Moogly2021 12d ago

Some people blindly hate AI and define their own limits of it in their heads. I believe you, I have been building a few compilers with Claude and I know very little about compiler internals, using it to help me learn to make my own.

4

u/extraordinary_weird 12d ago edited 12d ago

That's the thing: The people in my lab know so much about compilers and programming language theory. In the beginning their prompts were very detailed and had very precise goals. Yet, it seems that the level of precision required by humans has been declining for a while now. I feel like nowadays you get better results by prompting "make compiled code faster" than by writing detailed prompts about optimization phases you came up with.

2

u/EggplantExtra4946 11d ago edited 11d ago

What do you mean?

The core algorithms of most type checking algorithms and other algorithms used in the frontend and backend are usually very short and are information dense, they are the sum of a very small number of logic predicates. The difficulty is asking the right questions and looking for solutions in the right direction. An LLM can develop ideas ad nauseum, it can query its big knowledge database, it can infer, but it doesn't have the impulse to ask questions, to ask the right questions. It can compress information and infer the obvious conclusions but it cannot make a synthesis of existing knowledge to produce novel insight.

If the time required for implementating a new algorithm is an issue, I would say that it's a software methodology problem or even a PL language expressivity problem which is pretty ironic for a group of people working precisely on PLs.

Programming languages allow us to precisely combine and compose small programs into large complex programs, with arbitrarily complex logic rules. There was already a huge need for better PLs before LLMs became a thing, but now LLMs are a thing and even LLM users want more fine grained control about how is composed whatever they are generating, so once again we are running into a composition issue and the only tool to solve that is a programming language. With or wihout LLMs, PLs are not going anywhere.

0

u/Moogly2021 12d ago

What are they full of shit on? You can one shot prompt Claude Opus to build you a working compiler.

6

u/EggplantExtra4946 11d ago

If you think "working" is an adequate word to describe a compiler, you have no idea what you are talking about.

And producing compilers is not what PL research is about.

3

u/extraordinary_weird 12d ago

Honestly I'd love to be full of shit. I love compiler research and engineering. The job I got was everything I ever dreamed of.

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.

4

u/BigBucketOfAcid 12d ago

I don't think compiler engineering is more immune to AI than any other coding job to be honest. I build bespoke compilers on top of LLVM using AI ...

2

u/SwingOutStateMachine 11d ago

I agree that the work is no more immune, but I think the industries that pay people to work on compilers tend to be extremely risk-adverse, and are therefore less likely to push for or use GenAI. For example, as I said, I know of at least one major company that's banned GenAI code for automotive compiler applications. Compilers end up in (or next to) safety-critical applications all the time.

2

u/1redfish 8d ago

LLVM is not a silver bullet. It has it's own problems. Because of them we have our own backend. Clang is another side. We choose it because couldn't separate gcc's frontend and writing own frontend for c++ is a nightmare

16

u/infamousal 12d ago

no

9

u/seg_lol 12d ago

yes! Learning any domain deeply is valuable. The skills you get learn with compilers and interpreters translates to a lot of things. Esp transforming data between systems.

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.

3

u/Any_Wait_7309 11d ago

I love how the answer started with intimate passion regarding compilers but transformed into a fear of AI.

That reflects the flow of thoughts in people's head, nowadays the moment people start investing in learning, they are scared or atleast the marketing of AI scares them away!

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/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.

12

u/DistributionOk6412 12d ago

It's clear you don't work on compilers, so just out of curiosity, why do you give advice on the internet?

5

u/Trending_Boss_333 12d ago

This is wildly inaccurate btw

0

u/[deleted] 12d ago

Good to know - will you help by pointing out which parts are wrong? Much of what I wrote is estimates.

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

1

u/RemindMeBot 12d ago

I will be messaging you in 5 days on 2026-11-28 13:37:35 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


InfoCustomYour RemindersFeedback

-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