Luma 0.2.0 Is Here: Our First Public Release
Today is a day we’ve been working toward for a long time: Luma 0.2.0 is our first public release. You can download it, install it, and write real programs with it, on Linux, Windows and macOS.
It’s a small language with big ambitions. One program, luma, runs your code right away with luma run, and builds it into a native program with luma build: a single file for Linux or Windows that needs nothing else installed. No runtime, no package manager, no dependencies to chase.
Get it
Everything is on the Downloads page.
Windows: download the installer, run it, and leave Add Luma to PATH ticked. No terminal needed for the install. A .zip is there too, if you’d rather unpack it yourself.
Linux and macOS: one command downloads Luma, checks its SHA-256 and installs it:
curl -fsSL https://luma-lang.com/install.sh | shThen:
luma helpThe macOS version is a preview: one program for both Apple Silicon and Intel Macs. luma run works on the Mac itself, and luma build makes programs for Linux and Windows.
What’s inside
Luma 0.2.0 isn’t a toy. Here’s some of what comes with that one program:
- The language: types that are checked before the program runs, objects and traits, pattern matching, optional values, errors your program can catch with
try, functions as values, and built-in testing. - Files, folders and the system: reading and writing, locks, environment variables, command lines and other programs, with the same code on Linux and Windows.
- The network: HTTP and HTTPS clients and servers, WebSockets, gRPC, TCP and UDP, with TLS built in.
- Data: JSON, CSV, HTML parsed as browsers parse it, binary buffers, dates and times, cryptography, compression.
- Doing many things at once:
wait(list, f)runs calls at the same time, and servers serve many connections at once. - AI: mods for Claude, OpenAI-compatible APIs and Ollama, and a mod that runs GGUF models itself, written in Luma. See Luma and AI.
- The manual inside the compiler:
luma docshows the documentation of the version you have installed, offline.
If you know Luma from 0.1.0, this post tells what changed.
The last days: Windows, for real
A release is the moment the promises have to hold. So in the last days before 0.2.0, we did something we had put off for too long: we tested Luma’s Windows programs on a real Windows computer, not just built them on Linux and hoped.
We wrote 26 small test programs, each covering one part of Luma: files and folders, the console, typing input, command lines, the network, HTTPS, servers, SQLite, zip archives, programs running at the same time. Each one runs twice: with luma run, and as a .exe built by luma build. Then we ran them on Windows, read every line of output, fixed what was wrong, and ran them again.
They found real problems, and that was the point:
- Letters like õ and ä came out garbled in the Windows console. Built programs now talk to the console the way Windows expects, in UTF-16, both ways.
- Some HTTPS sites failed because Windows keeps only part of its trusted certificates on disk and fetches the rest when needed. Luma now asks Windows to do exactly that.
- Error messages now say what happened in words people understand: “it is a folder”, “a program has it open”, “a program has locked part of it”.
- Starting another program (
shell.start) didn’t work in built Windows programs. It does now, with pipes, as Windows programs expect. - Doing many things at once didn’t happen on Windows: calls ran one after another, and servers served one connection at a time. Now they run at the same time, as on Linux, with a new test that proves it.
luma runused far too much memory for big lists of bytes: 50 MB of bytes took 4.4 GB. Now it takes about 50 MB, and every value inluma runbecame almost three times smaller.
When all 26 programs passed in both modes, we knew Windows was ready.
Two smaller things came out of these days too. A program can now ask which system it runs on, so it can choose the right commands:
if env.os() == "windows" {
print(shell("dir /b"))
} else {
print(shell("ls"))
}And when ChatGPT wrote Luma programs from our documentation, its only mistake was joining strings with +. Luma doesn’t allow that, so the error message now shows how it’s done, with your own names:
operator + does not work on strings; to join them, put them in one string: "${first} ${last}"Where to find Luma
Luma has a home of its own now: luma-lang.com, with the documentation, the downloads and this blog.
Try it without installing anything in the new playground at play.luma-lang.com. Write a program in your browser and run it, or start from one of the examples.
On GitHub, Luma lives under lumalang:
- lumalang/luma is where to report a bug, suggest a better error message, point out something unclear in the manual, or share an idea. The releases are there too.
- lumalang/awesome-luma collects apps and mods written in Luma: our official mods, like the SQLite, MySQL and PostgreSQL drivers and the AI mods, and the first app, Luma News, a Hacker News reader. Made something with Luma? Tell us, and we’ll add it to the list.
Getting a mod is one command:
luma get https://raw.githubusercontent.com/lumalang/awesome-luma/main/mods/sqlite.lumaLooking ahead
0.2.0 is a beginning, not a finish line. There’s a lot we want to do next: more mods, shorter ways to get them, AI support that goes further, and whatever you tell us is missing. The most valuable thing now is people using Luma for real work and telling us where it falls short.
Luma is already being used for things we didn’t plan: testing APIs under load, and talking to industrial robots over TCP on Windows. We can’t wait to see what you build.
Thank you to everyone who tried early versions, asked questions and sent feedback. This release is yours too.
Luma: Friendly to machines, beautiful for people.