Simple. Fast. Efficient.

A self-hosting compiled language that produces native binaries under 200KB. The compiler, this website, and everything serving it — all written in Nyx.

Get Started GitHub

Simple

Clean syntax. No hidden complexity. A language you can learn in a weekend.

Fast

Compiles to native code via LLVM. Fibonacci runs in 0.87x of C.

Efficient

Production binaries under 200KB. Zero external dependencies.

What Nyx looks like

// hello.nx
fn main() {
    print("Hello, World!")
}
// server.nx — HTTP server in 8 lines
import "std/http"

fn my_handler(request: Array) -> String {
    return http_response(200, "Hello from Nyx!")
}

fn main() {
    http_serve_mt(8080, 16, my_handler)
}

Numbers

0.87x
Fibonacci
vs C -O2
200
tests
passing
<200KB
binaries
native
Self
hosting
fixed point

Built with Nyx

Real software running in production right now.

NyxKV
Redis-compatible key-value store. 44 commands, 82K ops/s, 132KB binary.
nyx-serve
HTTP web framework. Multi-threaded, keep-alive, static files. 9,971 req/s.
nyx-proxy
HTTPS reverse proxy. TLS 1.3, SNI multi-domain, connection pooling. 4,282 req/s.

This website runs on 7 Nyx processes using 47MB of RAM total.

Get started

Install
$ curl -sSf https://nyxlang.com/install.sh | sh

GNU/Linux only (x86_64 and ARM64). macOS and Windows coming soon.

Read the Book Playground