Philosophy
Friendly to machines, beautiful for people.
Every decision in Luma comes back to these six words.
Friendly to machines
Today, a language must work well with AI, in both directions.
Programs that use AI. Asking a model, getting typed data back, giving it tools, serving tools over MCP, searching by meaning, running a model on your own computer: in Luma these take a few lines, not a framework.
Code that AI writes. More and more code is written together with an AI assistant. A small, explicit language is easier to get right: there are fewer ways to say the same thing, nothing happens out of sight, and error messages say how to fix the mistake. The manual inside luma gives an assistant the exact documentation for the version it’s using.
Beautiful for people
While AI writes more code, Luma wants to keep the joy of writing it yourself.
Clarity over cleverness
Code is read far more often than it’s written. Luma prefers the plain way: nums.walk(n) { ... } instead of a cryptic loop, convert(x) instead of a dozen conversion functions, words like skip and stop instead of symbols.
One rule, used everywhere
A variable is name: type. So is a field, and a parameter, and a function’s result: name(...): type. Learn a rule once, and it works everywhere.
Nothing hidden
Luma never converts a value on its own, never lets a missing value slip through, and never hides an error. Types are written out, optional values are checked, and errors are caught where you can see them.
Small enough to know completely
Twelve keywords. One way to loop, one way to convert, one way to handle errors. The whole language fits in your head, so you write with confidence instead of searching.
Errors that teach
An error message is part of the language. Every one names the file, line and column, says what’s wrong in everyday words and, where it can, what to write instead.
A lean core
The language itself stays small. Something goes into the core only when it needs to be fast or needs to know about types: parsing CSV, vector math, the HTTP server. Everything else is a mod, written in Luma, that you can read, learn from and change: database drivers, AI clients, MCP, tables.
Proven, not promised
luma runandluma buildgive identical results, and the tests check it for every feature.- Every example in the manual is run by the tests, in both modes, so the documentation can’t drift from the language.
- Luma is checked against the tools it must agree with: SQLite files against
sqlite3, models against llama.cpp, HTML against the html5lib tests, machine code against the GNU assembler.
Every feature passes one test
Before anything is added, we ask: is it still beautiful to write by hand?
If the answer is no, it isn’t Luma yet.