Xu 0.9.3
Xu 0.9.3 is a critical stability and correctness release for the official self-hosted toolchain. Download SDKs, native single-file Setup installers, checksums, and release assets.
Compiler Code Generation & Diagnostic Fixes
In complex numerical computations and deep recursion scenarios, Xu 0.9.3 resolves key compiler backend and type checker defects:
- Callee-Saved Register Allocation Protection: Previously, when a self-recursive call appeared as the right operand of a binary expression (such as
<< n * fact(n - 1)) or in multi-parameter self-recursive functions (such as the Ackermann functionack(m, n)or accumulatorshelper(n, acc)), the backend register allocator did not account for registers assigned to preceding parameters, overwriting earlier parameter values in the same callee-saved register (ARM64x19/x20, x64RBX/R12). With the fix, each scalar parameter receives a distinct register home, guaranteeing correctness in nested binary expressions and deep recursion. - Robust Diagnostics on Undefined Symbols: Fixed a compiler internal out-of-bounds crash (
c.fns[-1]indexing error) triggered when encountering undefined or misspelled function names, providing clean and actionable compile-time diagnostics.
Full Syntax & Concurrency Matrix Validation
This release passes 8 comprehensive regression suites across native macOS and clean Linux containers:
- Memory & Type Safety: Compile-time detection for array/slice index out-of-bounds, division by zero, double mutable borrow (
&mut) conflicts, and use-after-move errors. - Advanced Language Features: Validated curried closures, generic structs (
struct Box#T), deterministic RAII destructors (drop()), multi-parameter generics, and automatic error propagation withorblocks. - High-Throughput Concurrency: Validated unbuffered channel rendezvous (
chan int{cap: 0}), buffered pipelines,close()inspection and iteration, and 100-coroutine concurrent summation with zero deviation.
47-Workload Cross-Language Benchmarks Update
The official benchmarks dashboard is updated with measurements from 2026-10-20 on stable Xu 0.9.3:
- Automated Cloud Pipeline: Executed fully autonomously via GitHub Actions CI (Run #39362068857) in clean VM environments across 6 platforms.
- 6 Native Platforms:
macOS ARM64,macOS x86_64,Linux ARM64,Linux x86_64,Windows ARM64, andWindows x86_64. - 47 Comprehensive Workloads: Compared against C (best Clang O1–O3), Rust (best rustc O1–O3), Swift, and Go under identical algorithms.
Installation & Migration
Native single-file Setup installers are recommended for quick setup with automatic environment configuration:
- macOS / Linux One-Line Online Install:
curl -fsSL https://xulang.org/install.sh | bash - Windows PowerShell One-Line Online Install:
irm https://xulang.org/install.ps1 | iex - Standalone Setup Binary: Run
./xu-setup-<target> -y(or double-clickxu-setup-windows-x64.exefor GUI wizard on Windows).
In your project manifest xu.xun, declare:
module: myapp
version: !ver 0.1.0
xu: !ver 0.9.3
Run xu --version to verify compiler version 0.9.3.