Supersonic Native AOT & WASM
Zero VM, zero runtime bloat. Directly compiles to native machine binaries and standard WebAssembly (WASM). First-class cross-compilation (macOS, Linux, Windows, WASM) and sub-millisecond cold start.
Rock-solid memory safety with zero runtime overhead, lightning-fast compilation, and crystal-clear mental model.
curl -fsSL https://xulang.org/install.sh | bash -s -- --online --version 0.13.1 --yes
& ([scriptblock]::Create((irm https://xulang.org/install.ps1))) -Online -Version "0.13.1"
Zero VM, zero runtime bloat. Directly compiles to native machine binaries and standard WebAssembly (WASM). First-class cross-compilation (macOS, Linux, Windows, WASM) and sub-millisecond cold start.
No Stop-The-World GC pauses. Unique ownership with deterministic RAII scoping drop; shared &T and exclusive &mut T borrow semantics statically eliminate data races.
First-class language-level concurrency. Spawn lightweight user-space coroutines via xu f() and coordinate across type-safe chan T pipelines, designed for high-throughput modern servers.
No semicolons, no redundant parens, immutable by default. Intuitive flow symbols: << return, >> throw, or (err) {} catch, <- break, and -> continue for clear readability.
Unified xu CLI for builds, tests, dependency management (get), editor services (lsp), and C modules (native) with native xu.xun manifests. Rich standard library covering async net/HTTP, cryptography & SM cipher suites, SQL, and desktop WebView.
Eradicate C/C++ silent Undefined Behavior (UB). Strict compile-time null safety, memory bounds checking, and explicit error propagation ensure rock-solid, predictable systems software.
Built-in 2D drawing, layouts, native widgets, theming, and IME input, alongside HTML/CSS/JavaScript WebView integration for desktop applications.
A single xu command line tool for build, run, check, format, and docs with built-in test runners and LSP support for modern editors.
Compile and package C modules with xu native, using portable .xulib distribution bundles with multi-target slices.
Compile and execute Xu code instantly in your browser without local installation. The runner is written in Xu and self-compiled to WASM, covering lexical analysis, borrow checking, and runtime execution.
Start with the entry function and standard output, modify text, and run again.
Run a UI example to display its canvas here.
// Standard output and diagnostics will be shown here...
Continue exploring standard library and native execution capabilities with the local compiler.
The compiler generates code for the following targets. For downloadable SDK archives, see the Download page.
Code generation, SDK availability, and tested runtime behavior are separate levels of support. Runtime and GUI paths without target-machine acceptance results remain unverified. See Status & Limitations and per-package notes; native modules and desktop builds may require host libraries and toolchains.
Xu is a statically typed systems language that compiles ahead of time to native code. It combines ownership and borrow checking with lightweight coroutines and typed channels for command-line tools, network services, and desktop applications.
No. Compile-time ownership and borrow checking govern resource lifetimes, with deterministic cleanup at scope exit and no runtime garbage collector. See Ownership & Borrowing and the FAQ on shared-state synchronization and native/FFI safety boundaries.
The benchmark dashboard compares Xu, C, Rust, Go, and Swift across 60 groups with 72 workload variants on six ARM64 / x86-64 platforms, with measured runtime, memory, binary size, and source records.
Xu 0.13.1 completes the standard-library zero-stub audit, re-engineers sync.Cond registered waiter queue signaling, implements cross-platform os/exec streaming pipes, and adds HTTPS connection reuse, Windows WSAPoll batch socket polling, and HTTP/2 Huffman decoding.