r/Compilers • • 1d ago

How did you stumble on compilers ?

as the title suggests , what made you or what situation pushed you to start working on compilers ?

7 Upvotes

17 comments sorted by

8

u/Key_Detail15 1d ago edited 22h ago

I had a homemade machine built around a microprocessor and I wanted to program it in some form of HLL. There was no practical alternative but to write a 'compiler' for it myself, in assembly. But I also had to create the assembler first, all on the same machine.

It grew from there. That was 45 years ago and I've tinkered with them ever since. Until earlier this year.

However, what a 'compiler' means now could be almost anything, and modern ones can be at a vast, industrial scale for much more advanced and complex languages than mine.

What I worked on was always at the opposite end.

6

u/Physical_Square_2239 1d ago • Bravo

Maybe just out of curiosity. We use these languages every day, whether at work or while studying, and at some point an error message probably confused me. Since then, I feel like that's when we really first crossed paths with the compiler.

3

u/blami 1d ago

I was hired to work on OS kernel but compiler had bugs so I had to fix them. I did same with debugger.

3

u/SwedishFindecanor 1d ago

Back in the mid-90s, I downloaded and installed Wouter van Oortmerssen's compiler for his E language. It showed me that it was not an impossible task for a single hobbyist programmer to make their own language and compiler.

3

u/rileyrgham 1d ago

Completely low effort spam. A symptom of the destruction of next to all tech groups.

3

u/cxzuk 1d ago

Im designing a language really - 9 years or so ago, I was running windows and was trying to use a popular compiler framework, there was no binaries, compiling it took many hours, and either through incompliance or bugs (or both) I was getting several segfaults and impossible errors.

And as the quote goes, "We do this not because it is easy, but because we thought it would be easy" ! I thought it couldn't be that hard to make a compiler

I have many more grey hairs now.

M

2

u/zxcv037 1d ago

It is the bridge between software and hardware, and is the ultimate form of deterministic program in my opinion, so I got interested in them.

2

u/Shoddy_Scallion_3695 1d ago

i joined a dl compiler research team. and it got soo interestingg so i decided to stay

2

u/KingOfZero 1d ago

University course on languages and compilers

2

u/thegreatbeanz 1d ago

Got a college degree in computer game development, and worked in games for a few years.

When the second studio I was at in four years looked like it was about to go under I landed a job at Apple in their developer tools department working on internal tools (CI, automation workflows, etc).

About two years into that I was bored and wanted to do something different, so I started looking for a new role inside the company. My boss told me to have lunch with our director to talk about opportunities.

Turns out, if you tell Chris Lattner you’re bored and looking for a new challenge; he’ll tell you to work on a compiler.

Never took a class on compilers in school, but I’ve not gotten bored with my job since.

10/10 would recommend working on compilers.

1

u/EveryLength6550 2h ago

wow, goated

2

u/Key_River7180 1d ago

Curiosity! I use c every day, I wondered how compilation works

1

u/tilingSmith 17h ago

Got a job on ML compiler, and this stuff seems very interesting.

1

u/EveryLength6550 2h ago

ml compiler truly a different beast. can i ask which one you work (xla/pytorch/etc)?

1

u/umlcat 12h ago

I needed to design a concept for my graduation thesius project. Since I worked a lot with Procedural / Obvject Oriented Turbo Pascal and didn't see much compiler related projects done in Pascal, more based in "Plain C" or "C++", I choose Turbo Pascal as a developing tool.

I already had a compiler course in "Plain C", altought I also read Compiler material in C++.

1

u/ice_dagger 49m ago

Compilers stumbled onto me

1

u/Big_Tadpole7174 14m ago

My interest in compilers probably started when I was introduced to SIMON'S BASIC on the Commodore 64. I wanted to understand how it worked, but never really found out. Years later, I built a tool to compile HTML pages from simple scripts. It wasn't great, but it helped me sharpen my skills. During my first real tech job, I built a SQL parser, and from there my skills gradually evolved.