Episode 1: A basic expression evaluator

Channel:Immo Landwerth (terrajobst) · Length:1:38:35 · Published:2018-10-03 · Views:284419

Watch on YouTube

Summary

The first episode of a long live-coding series in which Immo Landwerth builds the Minsk compiler for a small language in C#. It starts with a basic expression evaluator and builds toward a full language.

Why HN recommends it

Recommended as a practical, approachable build-it-step-by-step introduction to writing compilers, light on theory.

Not too much theory but from a nuts and bolts perspective I found it extremely approachable. — HN, 2020

Python, Ruby & scripting languages · Compilers, interpreters & program analysis · Software practice, open source & careers

Subtitles (excerpt)

[Music] Hello friends of net. I'm Lenworth and you can find me on Twitter at terror jobs. I'm super excited about this event. Um I've rambled about this uh on Twitter. I think almost a year ago when I said how about I do a video series on how to build a compiler from scratch and then I never did anything with that because as it turns out I was super busy doing other stuff. But thankfully you guys have all pinged me on regular basis on Twitter and asked what's going on there. I want to see this uh amazing talk of yours. So I finally had the time to put something together and today is the first episode where we will start writing the compiler. Um, some of you have asked how long will it take to write the compiler. That's a good question. I don't quite know because my goal is to write this live, right? So, the today's episode will be 60 to 90 minutes. Um, I would do a demo. So, I should say I already have written the compiler. So, one of the things I would do today is demo what the end result would look like. So, you get an idea whether it's worth, you know, keeping keeping up with it or whether you want to do something else with your time. Um yeah, before we go into the details, I have a few notes I want to go through to

On Hacker News

I don't have something that could be of Crafting Interpreters level on hand, but the general suggestion given to this question on DotNetEvolution discord by Roslyn team members was to start with the spec itself: [LINK] This might be a bit of a learning curve if you don't have experience with writing compilers like that though. There are other materials that might prove useful should you go down t… — neonsunset, 2024-05
Here's a great YouTube series where a developer codes, step-by-step, a pretty fully-fledged programming language: [VIDEO] Not too much theory but from a nuts and bolts perspective I found it extremely approachable. — Nelkins, 2020-05
I've been working full time for like 3 yrs as C# dev + doing higher edu at weekends at the same time and I was about to decide thesis topic. I've been searching for something challenging and found some very random post on programming forums about how compilers are hard etc and decided to give it a try. I had kind of advantage that I accidentally had some significant amount of experience with hand… — tester756, 2026-07

Related videos