About

Friendly to machines, beautiful for people.

Luma is a small programming language with a big idea: code should be a pleasure to read and to write, and it should be able to do real work.

Luma keeps its syntax simple, clear and consistent, so the whole language fits in your head. At the same time, it builds fast standalone programs, talks to the web, reads and writes databases, and works with AI models. It’s made for learning, for teaching, and for building tools and services you actually use.

Our slogan

Friendly to machines. Today, a language must work well with AI. Luma programs can ask AI models questions, get structured data back, give models tools to call, serve tools to AI assistants over MCP, search documents by meaning, and even run a model themselves, with nothing else installed. And because Luma is small and explicit, AI assistants write it well, and its error messages help them fix their own mistakes.

Beautiful for people. While AI writes more and more code, Luma wants to bring back the joy of writing code yourself: code that reads like a sentence, one rule used everywhere, no ceremony, and nothing hidden. Every new feature has to pass one test: is it still beautiful to write by hand?

What makes Luma different

Its own compiler, from scratch

Luma doesn’t depend on another language or toolchain to make your programs. There’s no Go, no C compiler, no LLVM, no external assembler or linker. Luma reads your code, works out the machine instructions, and writes the executable file itself, byte by byte. A “Hello World” is about 10 KB, starts instantly, and runs on another computer without Luma installed.

Interpreted and compiled, with the same results

Every Luma program can run in two ways:

luma run app.luma      # run it now, like Python or PHP
luma build app.luma    # make a standalone program, like Go or Rust

Both modes run the same instructions from the same compiler and give identical results, down to how numbers are printed and how errors are worded. Our tests check this for every feature.

The manual is inside the compiler

luma doc shows the whole manual in your terminal, always for the exact version you have. Ask about any keyword, function or method, search every page, or read just one section. Every example in the manual is tested in both modes, so the manual can’t fall behind the language.

Testing is built in

Write assert in a test_ function, run luma test, and see what you got next to what you wanted. Nothing to install and nothing to configure.

A lean core, with mods for the rest

The language itself stays small. Only what needs to be fast or needs to know about types is built in. Everything else, such as database drivers, AI clients, MCP and data tables, comes as mods: ordinary Luma files you get with luma get and can read, learn from and change.

What you can build with Luma

  • Command-line tools with flags, input, files and folders
  • Web servers with routes, middleware, cookies, sessions, WebSockets, server-sent events, HTTPS and HTTP/2
  • Network programs: TCP clients and servers, TLS, HTTP clients, gRPC
  • Data work: JSON, CSV, tables, HTML parsing, compression, dates and times
  • Databases: SQLite (written entirely in Luma, reading and writing real SQLite files), PostgreSQL and MySQL
  • AI applications: Claude, OpenAI and compatible models, local models with Ollama or llama.cpp, models run by Luma itself, tools, MCP servers and search by meaning

Who Luma is for

  • Learners, who want a language they can understand completely, with clear errors and a manual one command away.
  • Teachers, who want examples short enough for a slide and a setup that takes no lesson time.
  • Tool builders, who want to go from a quick script to a finished program without changing language.
  • AI developers, who want to call models, give them tools and run them locally with very little code.
  • Language enthusiasts, who want to look inside a compiler: luma tokens, luma ast, luma ir and luma asm show every step from text to machine code.

Where Luma is today

Luma is at version 0.2.0, a complete rebuild with its own compiler.

  • luma build makes programs for Linux and Windows on 64-bit Intel and AMD (x86-64) processors. Windows support is still experimental: Windows programs are built and checked, but not yet fully tested on real Windows systems.
  • luma run works wherever the luma command itself runs.
  • The language is young and still growing. What isn’t available yet is listed openly in the manual (luma doc limitations), with a workaround where there is one.

Credits

Luma is created by Guido Gröön.

Luma stands on the shoulders of many tools and ideas:

  • Go, the language the Luma compiler itself is written in, valued for its simplicity, speed and strong standard library.
  • The projects whose work we test against: the SQLite command-line tool, llama.cpp, the html5lib tests, the GNU assembler and others. They keep Luma honest.

And, of course, the wider open-source community, whose tools, discussions and experiments continue to shape how Luma evolves.