11
top 3 comments
sorted by: hot top controversial new old
[-] joyjoy@lemmy.world 1 points 1 year ago

When you write a compiler, you eventually have to write it twice. Once in a pre-existing language, then again in the language it compiles.

Just say no to bootstrapping.

[-] jeena@jemmy.jeena.net 1 points 1 year ago

At university the by far coolest and most fun course was compiler construction. We had to write something which would compile a small subset of Java (Javalette) into the Java Virtual Machine instruction set.

I wrote my compiler in Haskell because it seemed that it'd be much less hassle compared to do it in a object oriented or procedual language.

It ain't pretty but it's honest work: https://github.com/jeena/CC/blob/master/Compiler.hs

[-] pewpew@feddit.it 0 points 1 year ago

The programmer who made the OS

this post was submitted on 26 Jun 2023
11 points (100.0% liked)

Programmer Humor

32070 readers
1177 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS