Xu 0.15.0 Released: Legacy or Removal, Optimizer Batches A–P, Arena XUN, and Bare-Metal OS Primitives
Xu 0.15.0 is officially released! Building on the runtime and UI milestones of 0.14.4, this release completes the transition to unified error handling by removing the legacy or error keyword, delivers MIR, codegen, and runtime optimization Batches A–P alongside default Linux/macOS M:N multi-core coroutine scheduling, rebuilds #encoding/xun around a zero-slice span arena parser with XUN v0.2.0-dev parity, lands v1.0 readiness tooling (symbolized panic backtraces, DWARF compound types, enhanced xu-lsp, differential fuzzing, and conformance gates), and substantially expands #core bare-metal OS primitives. All six native platforms passed self-hosted fixed-point builds and the 121-workload cross-language benchmark matrix with 0 failures across 726 runs.
See the Xu 0.14.3 release notes for the preceding binary hardening and SLP vectorization release. The OS development guide, concurrency guide, and #encoding/xun reference cover the updated APIs.
1. Breaking Change: Legacy or Error Syntax Removed
orFreed as an Identifier: Removedorfrom compiler and LSP keyword tables; legacyor (err) { ... }andor >>constructs now emit explicit parser diagnostics guiding code to>>> (err) { ... }and postfix>>>(with>> exprto throw errors).- Ecosystem & Tooling Migration: Migrated the self-hosted compiler, standard library, CLI tools, formatter, localized READMEs, and companion repositories (
examples,packages,vscode-xu), and added quick-fix code actions inxu-lspfor migrating deprecatedorhandlers.
2. Compiler, MIR, Codegen & Runtime Optimizations (Batches A–P + 0.14.4)
- MIR & Interprocedural Passes: Added IPA ModRef refinement, cold-call and
.okpinlining, multi-push reserve, full loop unrolling, correlated / positive-division / heap bounds-check elimination, and a strict MIR verifier (XU_VERIFY_MIR=1). - ARM64 & x86-64 Codegen Parity: Landed ARM64 LFTR, post-index addressing, and NZCV flag reuse alongside x86-64 SSE2
mem_copy/mem_zero/hex decode, SHA-NI acceleration, FP memops,MULH, two-address register allocation,cmov,fcmp-jcc, and inline atomics/TLS. - M:N Multi-Core Runtime Hardening: Enabled M:N coroutine scheduling by default on Linux and macOS (
#sync/pool), fixed M:NEventSetdrain livelocks andtask_yield()/task_drain()accounting, added M cache-line isolation and buffered channel fast paths, fixed macOSSYS_SYSCALL_R1dual-return register clearing, and committed WindowsG0_STACK(64 KiB) per worker thread.
3. v1.0 Readiness, Arena #encoding/xun & UI Polish
- Zero-Slice Span Arena
#encoding/xun: Rebuilt#encoding/xunwith a zero-slice span arena parser, fast encoder, and XUN v0.2.0-dev specification parity. - Debugging, LSP & Conformance Gates: Added symbolized panic backtraces, DWARF compound type emission,
xu-lspworkspace symbols and code actions, differential compiler fuzzing (scripts/test_compiler_diff_fuzz.py), and the v1.0 language conformance gate (scripts/test_conformance_v1.py). - Widget Focus-Visible Semantics: Added
:focus-visible(is_focus_visible()) semantics across#ui/widgetscontrols to distinguish keyboard vs. pointer focus, and fixed segmentedTabsdouble focus rings.
4. Expanded Freestanding & Bare-Metal OS Primitives (#core)
- New Kernel & Driver Packages: Added
#core/mmu,#core/backtrace,#core/net(VirtIO PCI-Net, DHCP/TCP),#core/disk,#core/crc,#core/uart, andSemaphorein#core/sync. - Architecture & Binary Controls: Added GICv3, PSCI/SBI, PIE/RELRO helpers in
#core/elf, BAR size / MSI-X decoding in#core/pci, CPU-feature gating for x86-64/ARM64popcntand crypto instructions, ARM64stifixes, and ARM64/RV64 MMU+IRQ bare-metal demos.
5. Verified Six-Platform Cross-Language Benchmarks (121 Workloads)
Measured across all 121 canonical workloads on six platforms in xulang-org/bench Actions Run #46167554358 (Xu commit c07b4688, 2026-11-28), with 0 failures across 121 × 6 = 726 runs (xu_failed_cases = 0). Ratios represent Xu / best peer median (minimum across O1/O2/O3 for Clang and rustc); lower is faster:
| Platform | Coverage | vs Clang Geomean / Median (Wins) | vs rustc Geomean / Median (Wins) | vs Go Geomean / Median (Wins) | vs Swift Geomean / Median (Wins) |
|---|---|---|---|---|---|
| macOS ARM64 | 121 / 121 | 1.018× / 1.114× (37/116) | 0.919× / 1.058× (52/120) | 0.621× / 0.767× (96/121) | 0.450× / 0.610× (102/116) |
| Linux ARM64 | 121 / 121 | 0.836× / 0.996× (59/116) | 0.768× / 0.978× (70/120) | 0.538× / 0.710× (102/121) | 0.357× / 0.547× (107/114) |
| Windows ARM64 | 121 / 121 | 0.936× / 0.986× (63/116) | 0.881× / 0.954× (83/120) | 0.715× / 0.789× (111/121) | — |
| macOS x86_64 | 121 / 121 | 1.008× / 1.052× (46/116) | 0.902× / 1.039× (54/120) | 0.715× / 0.806× (84/121) | 0.407× / 0.617× (95/116) |
| Linux x86_64 | 121 / 121 | 0.848× / 1.044× (53/116) | 0.820× / 1.016× (56/120) | 0.557× / 0.730× (94/121) | 0.348× / 0.560× (97/114) |
| Windows x86_64 | 121 / 121 | 0.940× / 1.016× (57/116) | 0.898× / 0.980× (67/120) | 0.668× / 0.763× (101/121) | — |
Representative workload medians across domains (ratios vs. same-platform best Clang O1–O3 in parentheses; explore all 121 workloads on the Benchmarks dashboard):
| Workload | macOS ARM64 | Linux ARM64 | Windows ARM64 | macOS x86_64 | Linux x86_64 | Windows x86_64 |
|---|---|---|---|---|---|---|
startup | 7.86 ms (2.44×) | 0.41 ms (0.57×) | 17.48 ms (1.18×) | 4.01 ms (0.93×) | 0.27 ms (0.44×) | 5.34 ms (0.92×) |
loop_sum | 4.63 ms (0.45×) | 0.40 ms (0.03×) | 13.84 ms (0.51×) | 4.80 ms (0.35×) | 0.22 ms (0.03×) | 8.29 ms (0.47×) |
fib | 24.29 ms (1.05×) | 10.86 ms (0.87×) | 25.76 ms (0.94×) | 35.55 ms (1.16×) | 20.59 ms (1.12×) | 33.33 ms (1.35×) |
matmul | 10.99 ms (1.12×) | 6.13 ms (0.70×) | 20.71 ms (1.00×) | 18.20 ms (0.94×) | 7.48 ms (1.20×) | 12.52 ms (1.08×) |
sieve_primes | 14.32 ms (1.56×) | 13.71 ms (1.00×) | 24.55 ms (0.95×) | 43.13 ms (0.98×) | 10.81 ms (1.00×) | 12.61 ms (0.99×) |
sha256_chain | 2.40 ms (0.68×) | 0.63 ms (0.37×) | 22.72 ms (1.23×) | 14.16 ms (1.16×) | 0.69 ms (0.33×) | 7.42 ms (0.81×) |
aes128_encrypt | 5.34 ms (0.24×) | 1.85 ms (0.07×) | 15.72 ms (0.34×) | 9.94 ms (0.18×) | 1.86 ms (0.10×) | 9.84 ms (0.22×) |
scimark_fft | 8.41 ms (1.31×) | 6.14 ms (1.23×) | 20.51 ms (1.03×) | 15.02 ms (1.31×) | 6.49 ms (1.42×) | 13.36 ms (1.16×) |
btree_index | 26.39 ms (1.23×) | 22.36 ms (1.13×) | 35.01 ms (1.02×) | 33.35 ms (0.99×) | 26.74 ms (0.93×) | 32.02 ms (0.91×) |
sql_query_exec | 43.07 ms (1.12×) | 38.37 ms (1.40×) | 52.44 ms (1.29×) | 76.09 ms (1.46×) | 44.95 ms (1.35×) | 39.36 ms (1.26×) |
expr_bytecode_vm | 17.47 ms (1.33×) | 11.17 ms (1.13×) | 25.66 ms (1.05×) | 29.46 ms (0.59×) | 12.73 ms (1.40×) | 24.24 ms (1.29×) |
chan_ping | 45.94 ms | 41.12 ms | 57.46 ms | 101.38 ms | 162.97 ms | 104.95 ms |
6. Upgrade & Downloads
Upgrade compiler, standard library, and SDK tools together from the Download center or GitHub Releases v0.15.0, and verify SHA256SUMS. Migrate any remaining or (err) { } / or >> code to >>> (err) { } / >>>.