Leaving Go Behind: Luma Is Getting Its Own Compiler

Leaving Go Behind: Luma Is Getting Its Own Compiler

November 23, 2026·
Luma Core Team

Since the very first line of Luma, every program you wrote went through Go. Luma read your code, checked it, turned it into Go source, and then handed it to the Go compiler to make the final program. That design carried us a long way: functions, structs, traits, modules, a web server, databases, TCP, JSON and much more.

Today we’re announcing a big decision. We are leaving the Go code generator behind. Luma will get a compiler of its own, one that turns Luma code straight into a running program, with nothing in between. This work is what Luma 0.2.0 will be about.

Nothing has been built yet. This post explains why we’re doing it, what it will mean for you, and how we plan to get there.

Why change something that works?

Compiling to Go was a good way to start. It let us focus on the language while Go took care of the hard parts. But the longer we worked this way, the more the same problems kept coming back.

You had to install Go to use Luma

To build a Luma program, you needed the whole Go toolchain on your computer. For a language that wants to be small and friendly, that’s a lot to ask. A student trying Luma for the first time shouldn’t have to install, configure and update another language before they can see Hello World.

Two languages in one program

Every Luma feature had to be expressed as Go code. Some features fit naturally. Others didn’t, and we spent a lot of time working around Go instead of working on Luma. Several of our blog posts tell that story: lambdas that didn’t map cleanly, module values typed as any, names colliding between modules. Each time, the fix was really about making the generated Go happy.

Errors from the wrong language

When something went wrong deep inside, the message could come from the Go compiler rather than from Luma. That’s confusing at best: you wrote Luma, so you should only ever see errors about Luma.

Slow builds and less control

Each build was two compilations: Luma to Go, then Go to a program. We also had little say over what the final program looked like, how large it was, or how it ran, because those choices belonged to Go.

What we’re building instead

The new Luma will have its own compiler, written from scratch. The plan is ambitious but simple to describe:

  • No Go needed to run your programs. Luma itself will produce the finished program. The compiler is still written in Go, but your programs won’t pass through Go anymore.
  • No middlemen at all. No C compiler, no LLVM, no external assembler or linker. Luma will write the machine code and the executable file itself.
  • Two ways to run the same code. luma run will run a program right away, which is great for learning and trying ideas. luma build will make a fast, standalone program that you can copy to another computer and run.
  • Linux and Windows first. These two come first because they’re where Luma is used today.
  • Errors in Luma’s words. Every message will come from Luma and point to your code.

What it means for Luma

The language stays Luma. The ideas you know remain: readable syntax, optional types, lists, maps and sets, walk loops, try for errors, structs and traits, modules. We’ll take this chance to smooth out the corners we learned about the hard way, but the goal is the same friendly language, not a different one.

What changes is everything underneath. We’ll have full control over how each feature works, so we can design features for Luma rather than around another language’s limits. Things like coroutines for servers, fast number handling, and a small standard library that runs everywhere become our own choices.

Starting over also gives us a chance to rethink the standard library itself. We want a lean core: built into the language only what truly needs to be fast or needs to know about types, and everything else in Luma modules that you can read, learn from and change.

How we plan to get there

We’re starting from an empty folder and building up in small, tested steps:

  1. The foundations. Numbers, strings, variables, if/else, lists, maps, sets, errors and walk loops, working in both luma run and luma build from day one.
  2. The language. Functions, closures, structs, traits, pattern matching and modules.
  3. Working with the world. Files, JSON, dates and times, the command line, crypto, TCP and HTTP.
  4. Real applications. Web servers, database drivers written in pure Luma, and the tools around them.

Each step comes with tests and documentation before we move on to the next. When the new compiler can do everything Luma 0.1.0 does, and more, it becomes Luma 0.2.0.

Looking ahead

This is the biggest change in Luma’s short life, and we’re excited about it. A language that can make its own programs, without asking you to install anything else, is much closer to what we want Luma to be: small, friendly and truly yours from the first line to the finished program.

We’ll keep writing here as the work moves forward. The next posts will be about the first programs the new compiler makes.

Last updated on