Nox
Download
Nox — native without the ownership noise

Nox — native without the ownership noise

A statically typed language with Python’s syntax, compiled ahead of time to native code.

Memory is managed for you — there is no borrow checker, no lifetime syntax and no free. Write what you mean; the compiler works out the rest.

$curl -fsSL https://noxlang.com/install.sh | sh

macOS (Apple silicon) and Linux. With Homebrew: brew install mburakmmm/nox/noxc. On Windows: the installer or irm https://noxlang.com/install.ps1 | iex. Also AppImage, Snap and AUR — all downloads.

Nox
class Counter:
    n: int

    def __init__(self, start: int) -> None:
        self.n = start

    def bump(self) -> int:
        self.n += 1
        return self.n

async def square(x: int) -> int:
    return x * x

c: Counter = Counter(40)
c.bump()
a: Task[int] = spawn square(6)
print(c.bump(), await a)
Output
42 36

Why Nox

Familiar to write. Honest about the machine.

Python’s syntax, checked at compile time

Every parameter, variable and return value has a type the compiler verifies — no Any, no surprises at run time. If you can read Python, you can read Nox.

Memory without the vocabulary

Values are freed at their last use when the compiler can prove it is safe, and reference-counted when it cannot — silently, never as an error you have to fix.

Native, and parallel by default

Compiled through LLVM (or the small QBE back end) into a single executable. Tasks and channels run on a work-stealing scheduler across every core.

In practice

A small language that writes real programs.

Every example here is compiled and run when this site is built.

Nox
class Account:
    balance: int

    def __init__(self, balance: int) -> None:
        self.balance = balance

    def withdraw(self, amount: int) -> None:
        if amount > self.balance:
            raise ValueError("insufficient funds")
        self.balance -= amount

acct: Account = Account(100)
try:
    acct.withdraw(30)
    acct.withdraw(100)
except ValueError as e:
    print("refused:", e.message)
print(acct.balance)
Output
refused: insufficient funds
70

Standard library

83 modules, ready on day one.

Servers, databases, formats and cryptography ship with the compiler — each documented with examples that run.

Web

HTTP client and server, router, WebSockets, TLS and templates.

Data

SQLite, PostgreSQL and MySQL drivers, an ORM layer, JSON, TOML, YAML and CSV.

Security

Hashing, HMAC, secure randomness, Argon2id password hashing and JWT.

Systems

Files, processes, threads, atomics, shared memory and raw memory access.

Toolchain

One command for everything.

Build, run, test, format and explain code; manage packages; upgrade the compiler itself. A language server and editor support come in the box.

Explore noxc
$ noxc init hello && cd hello
$ noxc run main.nox
$ noxc build -o hello main.nox
$ noxc test
$ noxc explain main.nox   # where each value lives, and why
$ noxc search http         # query the noxpkg registry
$ noxc upgrade              # update the compiler

Playground Beta

Run the real compiler in a browser tab.

The Playground is not a mock-up: the Nox front end and an LLVM toolchain run as WebAssembly in your page, compile your program to a .wasm module and run it in a worker. Nothing you type is sent to a server.

# main.nox
def greet(name: str) -> str:
    return f"Hello, {name}!"

print(greet("browser"))

# compiled in ~200 ms, then run:
> Hello, browser!

Built with Nox

This site runs on Nyx.

noxlang.com is a Nyx application written in Nox and compiled to a single native binary: the router, security headers, rate limiting, the live release lookup behind the download page and the per-route policy for the Playground. The framework sites (Nyx, Aether, Aura) and the noxpkg registry — accounts, GitHub sign-in and package review — are Nox services too.

We use it for what it is: a young framework running real traffic, which is how we find the gaps. The source is in the repository.

services/noxlang-site
  • 1native binary serves the site
  • 0Python, Node or PHP at run time
  • 3production services in Nox: this site, the framework sites and noxpkg

Platforms

Runs where you build.

PlatformStatus
macOS · Apple siliconFully tested · prebuilt, Homebrew
Linux · x86-64 and aarch64Fully tested · tarball, AppImage, Snap, AUR
Windows · x86-64Fully tested · installer and zip, the whole test suite runs in CI
WebAssembly · WASI and browserCompile to .wasm, or run the compiler itself in a browser tab — see the Playground
Linux · riscv64Cross-compiled static binaries · QEMU user-mode smoke tests in CI
Bare metal · freestanding x86-64, aarch64, riscv64All three boot under QEMU in the test suite
iOS · AndroidExperimental · library output, not yet a supported tier

Intel Macs build from source. Details and known gaps are in the platform notes.

Write your first Nox program.

Install in a minute, then follow the tutorial from “hello” to a small web service.