Skip to content
Tech News
← Back to articles

Making your own programming language is easier than you think (but also harder)

read original get Book: "Crafting Interpreters → more articles
Why This Matters

Creating your own programming language is more accessible than many think, offering enthusiasts a way to explore language design and tailor tools to specific needs, even if not for production use. This DIY approach fosters innovation and deeper understanding of programming concepts, benefiting both developers and consumers interested in customization and new paradigms.

Key Takeaways

Making your own programming language is easier than you think (but also harder)

In mid-December last year I started making my own programming language. It's waaay far from any production quality yet (though I did manage to write a working 1k LOC Monte-Carlo path tracer in it), but the project is on pause right now, so I figured it's a good time to write something about it.

Disclaimer #1: I'm not a professional PL designer or compiler implementor. Even though I do feel like I know what I'm talking about for the most part of this post, I might still end up talking some nonsense.

Disclaimer #2: it's not another C/C++/Rust/etc killer, and I doubt it'll ever be actually used to any noticeable extent. I'm just having fun and talking about me having fun.

Disclaimer #3: if you have some strong opinions about programming languages, please, keep in mind that I'm not forcing you to use this language, and that it's a bit rude to be telling random people on the internet what they should do. If, on the other hand, you have constructive feedback and suggestions, I'm all ears!

Contents

Introduction

Why now?

I mean, most programmers dream of their own perfect programming language. I've been programming for about 17 years, so why did I decide to make a language at this specific point in time?

It just so happens that 3 different things converged in my mind.

... continue reading