Skip to content

The XE programming language

A small, indentation-based language that compiles to Rust and builds standalone native executables with rustc. Pre-alpha, built for learning and experimentation.

XE logo

What XE code looks like

fib.xe
fun fib(n):
    if n <= 1:
        return n
    return fib(n - 1) + fib(n - 2)

for n in [5, 10, 20]:
    print("fib", n, "=", fib(n))
Terminal
$ xe run fib.xe
fib 5 = 5
fib 10 = 55
fib 20 = 6765

# or build a standalone binary
$ xe compile fib.xe -o fib
$ ./fib

InstallGet the latest release in one command

curl -fsSL https://xe-lang.vercel.app/install.sh | bash

Works on Linux, macOS, and FreeBSD. On Windows, grab the zip from GitHub Releases or use cargo install.

Why XE

Readable syntax

Indentation-based blocks, no semicolons or braces. Code that reads like pseudocode.

Rust under the hood

XE compiles to Rust and builds with rustc, so programs get its optimizer and safety checks.

One native binary

xe compile produces a standalone executable. No VM or runtime to ship alongside it.