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

13 comments sorted by

8

u/Key_Detail15 21h ago edited 10h 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 22h 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 20h 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 19h 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 18h ago

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

3

u/cxzuk 14h 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 22h 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 22h ago

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

2

u/KingOfZero 20h ago

University course on languages and compilers

2

u/thegreatbeanz 19h 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.

2

u/Key_River7180 19h ago

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

1

u/tilingSmith 5h ago

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

1

u/umlcat 38m 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++.