Frequently asked questions
What is Luma?
A small programming language with its own compiler. It’s designed to be easy to read and easy to understand completely, while still building real programs: command-line tools, web servers, database apps and AI applications. Its slogan says it best: friendly to machines, beautiful for people.
Is Luma interpreted or compiled?
Both. luma run app.luma runs a program straight away, like Python. luma build app.luma makes a standalone executable, like Go or Rust. The two give identical results; see The luma command.
Does Luma need Go, a C compiler or anything else?
No. Luma writes the machine code and the executable file itself, with no Go, C compiler, LLVM, assembler or linker. The programs it builds need nothing either: copy one to another computer with the same system and it runs.
Which systems does Luma support?
luma build makes programs for Linux and Windows on 64-bit Intel and AMD (x86-64) processors, from either system. Windows programs are still experimental. The luma command itself also runs on macOS, where luma run, luma test and luma doc work. See Limitations.
Where is the documentation when I’m offline?
Inside luma. Run luma doc for the contents, luma doc lists for a page, or luma doc -s word to search. It’s the same manual as this website, always for the version you have.
How do I add a library?
Luma calls them mods: ordinary Luma files. luma get <url> downloads a mod and every file it imports into your project’s folder, then you import it. The official mods are listed on the Downloads page. See Imports and mods.
Is Luma fast?
Compiled programs keep values in processor registers, free memory as soon as it’s no longer used (there are no garbage collector pauses), and use hand-written assembly for heavy work such as cryptography. luma run is slower than a built program, but starts at once, so it’s ideal while you write.
Does Luma have generics, classes or exceptions?
Not in the way other languages do. Luma has obj for your own types (fields and methods together) and traits for what several types share. Errors are values you catch with try. Luma keeps the language small on purpose; see Philosophy.
Is Luma open source?
Not at the moment. Luma is free to download and use, and the programs you build with it are yours. Whether the source will be published, and under which license, hasn’t been decided yet; see License.
How do I report a bug or suggest something?
See Reporting problems.