NEXA
CODE BEYOND
A small, fast native language with a declarative UI.
One language, four native targets.
v1.1.0 · MIT licensed
Quick Start
Install the prebuilt binary on Linux x86-64 — or grab the archive for your platform from the releases page.
$ ./install.sh
$ nexa new hello
$ cd hello
$ nexa run
action fib(n) {
if n <= 1 {
return n
}
return fib(n - 1) + fib(n - 2)
}
print(fib(10)) // 55
Features
Simple syntax
Small grammar, no type annotations, no semicolons. If you can read the program, you can predict what it does.
Fast native execution
No interpreter, no bytecode VM — the compiler emits native assembly and links a real binary.
Four targets
x86-64 Linux, ARM Linux, Windows x86-64, and Intel Mac. One language, four binaries.
Declarative UI
NEXA UI 1.0: app("Counter") { ... } compiles to a real native window — or runs headless.
Small and focused
The compiler is about 1.2 MB and builds a hello-world program in about 30 ms.
Safe by default
Checked arithmetic, bounds-checked arrays, and reference-counted strings and structs.
Targets
NEXA compiles to native binaries for four targets. The same program behaves identically on each.
x86-64 Linux
x86_64-unknown-linux-gnu
Complete, including UI
ARM Linux
aarch64-unknown-linux-gnu
Raspberry Pi & ARM servers
Windows x86-64
x86_64-pc-windows-gnu
MinGW CRT runtime
Intel Mac
x86_64-apple-darwin
Mach-O via Zig
Ecosystem
NEXA Studio
The IDE for NEXA — editor, check, run, file tree, Ollama copilot, CLI integration, and an integrated terminal.
Ncode
Translate between NEXA and other languages with a local AI model (Ollama). Your code never leaves your machine.
Documentation
Language specification, the v1.0 to v1.1 story, targets, benchmarks, and the UI guide — in English, Japanese, and Chinese.
Grammar
The full v1.1 grammar, taught step by step, with the design rationale behind every rule.
Docs: Specification · Targets · Benchmarks · NEXA UI
Benchmarks
Measured numbers, not claims. Language battle results after register allocation (2026-11-29), best of 3 runs, outputs verified.
| Benchmark | NEXA | Python | Node | C++ | Rust |
|---|---|---|---|---|---|
| fib(30), recursive | 15.0 ms | 164.8 ms | 97.5 ms | 2.8 ms | 5.1 ms |
| array sum | 14.1 ms | 955.7 ms | 95.7 ms | 6.4 ms | 1.7 ms |
| string build | 1.1 ms | 31.3 ms | 76.2 ms | 1.8 ms | 1.1 ms |
| float loop | 12.0 ms | — | — | 11.7 ms | 11.9 ms |
| build time (fib) | 31.5 ms | — | — | 106.4 ms | 91.0 ms |
Float loop ties C++ and Rust; string build ties Rust and beats C++; build time is the fastest of the three.