Xu 0.14.3 Released: Full Binary Hardening, 128-bit SLP Vectorization, and 121-Workload Benchmarks
Xu 0.14.3 is officially released! Combining the engineering milestones of 0.14.2 and 0.14.3, this release finalizes >> throws with >>> / >>> (err) {} error handling and multi-error checker recovery, standardizes hardened Windows PE32+, Linux ELF, macOS Mach-O (including built-in ad-hoc signing), and WASM binary emission, lands 128-bit SLP auto-vectorization, Ext-TSP layout, SwissTable SWAR core/map, Phase 5–7 general optimizer passes, and M:N multi-core coroutine scheduling, and expands #core OS/UEFI primitives, #tensor/llm_engine, #ui/widgets, and xu doctor/#ui/phone. All six native platforms passed self-hosted fixed-point builds and the expanded 121-workload cross-language benchmark matrix (11 engineering domains).
See the Xu 0.14.2 release notes for the compiler and runtime changes that preceded 0.14.3. The AI guide, OS development guide, and #sync/pool reference cover the new APIs in more detail.
1. Finalized Error-Handling Syntax & Multi-Error Checker Recovery
- Clean Separation of Throw vs. Handle: Across the compiler, CLI tools, standard library, documentation, and examples,
>> exprexplicitly throws errors whileexpr >>>andexpr >>> (err) { ... }propagate and handle errors cleanly alongside disambiguated nested>>>generic closing. - Cross-Function Multi-Error Recovery: The checker continues across declarations and functions (up to
MAX_DIAG_ERRORS = 25) usingERROR_TYandfn_failed()cascade suppression, guarded byscripts/test_checker_multi_error.py.
2. Standardized Binary Formats & Modern Platform Hardening
- Windows PE32+ (
windows-arm64/windows-x64): Strict W^X sections (.textRX,.rdataR,.dataRW),.relocbase relocations, PE Load Config / Security Cookie (IMAGE_GUARD_CF_INSTRUMENTED/_load_config_used), and OS.pdata/.xdataunwind tables. - Linux ELF32/ELF64 (
linux-x64/linux-arm64/linux-riscv64/linux-loongarch64/linux-riscv32): Strict W^X,ET_DYNPIE, Full RELRO (DF_BIND_NOW),.note.gnu.build-id, Intel CET IBT (endbr64), CFI unwind frames, and full section headers. - macOS Mach-O (
macos-arm64/macos-x64): Adds__DATA_CONST,LC_UUID,LC_BUILD_VERSION, and built-in ad-hocLC_CODE_SIGNATUREacross both release and debug builds; hardened COFF/ELF/Mach-O.xuobjemitters and WASM output ship alongside.
3. Compiler Optimizer, SwissTable Runtime & M:N Multi-Core Scheduling
- 128-bit SLP Auto-Vectorization & Ext-TSP Layout (0.14.2):
opt_slp(opt-outXU_NO_SLP=1) packs unrolled isomorphic array ops and 4-way integer reductions into ARM64 NEON and baseline x86-64 SSE2 lanes; paired with Wu–Larus + Ext-TSP basic-block layout, correlated jump threading, lifetime-hole register allocation, and zero-spill constant rematerialization. - Phase 5–7 General Passes & Codegen Parity (0.14.3): Adds single-caller inlining, 1-block and countdown-loop unrolling, non-negative GVN value-range propagation across
div/mod/guarded subtraction, canonical-offset state promotion, cold-call constant hoisting, ARM64CCMP/CCMNfusion and shift-add constant multiplication, and x86-64mul_const/imul/maddparity. - SwissTable
core/map& M:N Coroutines: Upgradescore/mapto 8-slot SWARCTRL_LANE_MULprobing (7/8 load factor); adds thread-safe heap/FFI locking, the M:N multi-core coroutine scheduler (#sync/pool) on Linux and macOS, hardwareu8/u16/u32/u64atomic intrinsics, and fixes forresize_zeroheap zeroing andnet/pollerwakeups.
4. OS Substrate, AI/Tensor, UI & Release Tooling
- Bare-Metal & UEFI Substrate: Adds
@interrupt,@weak,@naked,@section/@align/@export,extern static,usize/isize, packed/union/bitfield C structs,sizeof/alignof/offsetof, strict--no-sse,--stack-size, relocatable DWARF,x64-uefiandarm64-uefitargets, parameterized inline asm across x64/ARM64/RV64,#core/{acpi,addr,ds,elf,fdt,fmt,mmio,pci,uefi}, VirtIO 1.0 Modern MMIO, HPET, and UEFI MemMap. - AI / Tensor & Companion Ecosystem: Expands
#tensorandexamples/llm_enginewithQ4_K/Q6_K/Q4_1/Q5_1/Q2_K/Q3_K/Q5_0kernels,M=12GEMM, paged SIMD attention,--threads NCPU parallelism, training backward ops, GBNF Trie/Schema, andmmproj.ggufVLM support; accompanied bygithub.com/xulang-org/packagesv1.17.0(50 packages, addingllm_metal,cuda_native,vulkan_native, unifiedgpufacade, and Redis distributed gateway state). - UI, Diagnostics & Bootstrap Policy: Upgrades
#ui/widgetsthrough Rounds 12–14 (responsive rules, style classes, FLIP transitions, DnD, virtualization, forms, inspector tools), hardensxu doctorand#ui/phoneP0–P3, and enforces seeding every release directly from its immediately preceding published release.
5. Verified Six-Platform Cross-Language Benchmarks (121 Workloads)
Measured across all 121 canonical workloads on six platforms in xulang-org/bench Actions Run #46085158072 (Xu commit 7813e249, 2026-11-27), 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.066× / 1.193× (32/116) | 0.970× / 1.089× (45/120) | 0.646× / 0.780× (93/121) | 0.489× / 0.665× (101/116) |
| Linux ARM64 | 121 / 121 | 0.922× / 1.067× (48/116) | 0.832× / 1.032× (56/120) | 0.581× / 0.713× (93/121) | 0.390× / 0.581× (106/114) |
| Windows ARM64 | 121 / 121 | 0.971× / 1.026× (52/116) | 0.880× / 0.972× (72/120) | 0.715× / 0.797× (107/121) | — |
| macOS x86_64 | 121 / 121 | 1.165× / 1.344× (31/116) | 1.027× / 1.223× (38/120) | 0.818× / 0.958× (66/121) | 0.474× / 0.699× (85/116) |
| Linux x86_64 | 121 / 121 | 1.056× / 1.200× (36/116) | 0.965× / 1.142× (39/120) | 0.690× / 0.879× (76/121) | 0.424× / 0.697× (88/114) |
| Windows x86_64 | 121 / 121 | 1.079× / 1.155× (34/116) | 0.995× / 1.112× (43/120) | 0.743× / 0.875× (88/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 | 3.78 ms (1.08×) | 0.42 ms (0.56×) | 14.74 ms (0.98×) | 4.35 ms (0.67×) | 0.28 ms (0.45×) | 7.49 ms (0.90×) |
loop_sum | 8.64 ms (0.62×) | 0.42 ms (0.03×) | 14.21 ms (0.51×) | 6.67 ms (0.35×) | 0.30 ms (0.05×) | 4.58 ms (0.41×) |
fib | 25.54 ms (1.10×) | 10.85 ms (0.86×) | 25.27 ms (0.95×) | 35.46 ms (1.51×) | 17.99 ms (1.34×) | 31.05 ms (1.26×) |
matmul | 9.81 ms (1.11×) | 7.82 ms (0.88×) | 21.79 ms (1.06×) | 44.72 ms (2.38×) | 13.60 ms (2.18×) | 22.66 ms (1.50×) |
sieve_primes | 11.31 ms (1.32×) | 14.37 ms (0.98×) | 24.65 ms (0.98×) | 38.88 ms (1.17×) | 16.99 ms (1.15×) | 27.44 ms (1.07×) |
sha256_chain | 3.62 ms (0.94×) | 0.68 ms (0.38×) | 15.38 ms (0.93×) | 7.71 ms (1.14×) | 2.62 ms (1.75×) | 9.66 ms (1.05×) |
aes128_encrypt | 4.34 ms (0.14×) | 2.24 ms (0.09×) | 16.07 ms (0.35×) | 18.17 ms (0.20×) | 2.53 ms (0.11×) | 6.15 ms (0.22×) |
scimark_fft | 9.36 ms (1.36×) | 6.25 ms (1.27×) | 20.07 ms (1.05×) | 13.02 ms (1.49×) | 5.37 ms (1.65×) | 20.11 ms (1.63×) |
btree_index | 27.82 ms (1.22×) | 22.69 ms (1.16×) | 34.96 ms (1.04×) | 35.93 ms (1.15×) | 23.63 ms (1.00×) | 36.97 ms (1.03×) |
sql_query_exec | 44.31 ms (1.27×) | 38.98 ms (1.43×) | 51.12 ms (1.27×) | 64.19 ms (1.37×) | 61.22 ms (1.58×) | 62.68 ms (1.27×) |
expr_bytecode_vm | 22.18 ms (1.44×) | 11.65 ms (1.18×) | 26.99 ms (1.14×) | 27.78 ms (0.60×) | 12.79 ms (1.27×) | 12.43 ms (1.19×) |
chan_ping | 20.34 ms | 14.31 ms | 28.39 ms | 74.63 ms | 21.19 ms | 20.01 ms |
6. Upgrade & Downloads
Upgrade compiler, standard library, and SDK tools together from the Download center or GitHub Releases v0.14.3, and verify SHA256SUMS.