Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
// roadmap

The road to 1.0, and past it.

Xo is at v0.55.1 and still experimental. A stage is marked done when the test suite covers it. 1.0 will be a compatibility promise, and the project owner decides when Xo makes it. The order is set; there are no dates.

  1. ✓

    Language design and specification

    Syntax, types, effects, and diagnostics written down as a spec, with every design choice recorded as a numbered decision.

  2. ✓

    A compiler that emits Go

    The type, effect, and concurrency checker, and the Go backend: every program builds into static binaries for Linux, Mac, Windows, and WASI.

  3. ✓

    Tools for agents

    JSON diagnostics with fixes, semantic queries and edits, a language server, concurrency tests that search task interleavings, and record and replay.

  4. ✓

    Modules

    Lock files, module proxies, a checksum log, and per definition hashes that show what a release really changed.

  5. ✓

    Native backends, in preview

    LLVM and a direct arm64 backend build programs to native code with no garbage collector.

  6. ✓

    Real-time functions

    uses realtime: the compiler enforces bounded loops, no recursion, and no allocation.

  7. ✓

    A front end written in Xo

    The lexer, parser, and type checker rewritten in Xo, with output identical to the Go implementation on every program in the repository, on all three backends.

  8. ✓

    A playground in the browser

    Xo's own compiler, built by its own WebAssembly backend, runs in the browser, so the playground needs no server: about 2 MB to download.

  9. ✓

    The rest of the compiler in Xo

    Every part of the Xo compiler exists in Xo: lexer, parser, checker, SSA, and all three code generators, and Xo compiles itself. The self-hosted checker agreed with the Go checker on all 685 repository runs, and since 2026-10-12 xo itself is the compiler written in Xo.

  10. ✓

    A runtime with no C

    Since 0.16.0 the native runtime is written entirely in Xo, and since 0.19.0 Linux programs without use c link no C library: Xo's own assembler and linkers build them as static binaries, from a Mac too. See No C left in the runtime.

  11. ✓

    Profiling and debugging

    A sampling profiler with pprof output (XO_PROF=cpu,heap), an execution trace (xo trace), xo dump of a running program's tasks, and DWARF line tables, variables, and types, so lldb and gdb show strings, lists, maps, and enums on arm64 and LLVM builds.

  12. ✓

    Public source

    Since 2026-10-18 the source is at github.com/xo-lang/xo, with its full history, as a mirror of the development repository: issues welcome, code as proposals.

  13. ●

    Native backends out of preview

    Native is the default backend on arm64 hosts since 0.19.0 (decision 0248) and on x86-64 hosts since 0.23.0 (decision 0270), with LLVM by choice and the Go backend for use go. The runtime has no C since 0.16.0, Linux programs without use c link no C library, debuggers see variables and types, and since 0.21.0 native binaries drop every function nothing calls (a hello world 26.5% smaller). Next: closing the x86-64 backend's remaining gap to LLVM's instructions.

The plan, in order

One stage in flight at a time. Most stages moved the compiler into Xo, each checked against the Go implementation until the output was identical; with every part in Xo, the Go implementation was deleted on 2026-10-13, so each change is made once. The WebAssembly backend comes after, since it is written only in Xo.

  1. ✓

    Front end in Xo

    The lexer, parser, and type checker give output identical to the Go compiler on all three backends: 610 of 626 repository programs (the other 16 call Go or C).

  2. ✓

    SSA builder in Xo

    All 8 stages. 11,543 of 11,569 functions identical to the Go builder's SSA, and 6,282 of 6,376 in test binaries; every function left over is one the Go builder rejects too. The passes give identical output on all 306 programs both build completely, and the verifier's 32,411 mutant verdicts (one per function with a retain or release removed) match. No differences on any backend. Built with LLVM, a full run through every pass and the verifier takes 1.05x the time of the Go-built compiler (1.3x with the Go or arm64 backend); the build step alone, 1.6x to 2.3x.

  3. ✓

    Supply-chain safety by default

    Only your own module vouches for a dependency's C bindings, xo.lock locks each dependency's effects, capabilities can be narrowed at run time, xo audit reports it all, and logging is an effect. Against 15 attack scenarios from the Backstabber's Knife Collection: 10 blocked.

  4. ✓

    Prebuilt runtime

    Release builds ship the arm64 backend's C runtime prebuilt for each target, so arm64 builds no longer compile C: no clang needed. The system C toolchain (cc) still assembles and links the output; the LLVM backend still compiles its IR with clang. A first build on a cold cache went from 1.94 s to 0.13 s for a small program and from 4.27 s to 0.28 s for an HTTPS server (on an Apple silicon Mac). The linux/arm64 runtime is cross compiled on a Mac and reproducible byte for byte.

  5. ✓

    arm64 emitter in Xo, and the fixed point

    Xo compiles itself, on arm64 Macs so far. The compiler written entirely in Xo, built by the Go compiler, compiles itself, and that build compiles it again; the assembly of both builds is byte identical to the Go compiler's (8.9 million lines). The emitter matches the Go emitter on all 10,975 functions of the repository. The self-compiled compiler passed 132 of 138 arm64 tests at first (the other 6 needed TLS) and now passes all of them, and xo itself is now this compiler.

  6. ✓

    Standard library for tools

    Typed command line flags and subcommands with generated help and shell completions (std/cli), running other programs with pipelines, terminals and colors, file handles, globs, and locks, CSV, TOML, regular expressions, and archives, and xo build --stamp for version stamping. All of it now builds on the native backends too, with output identical to the Go backend.

  7. ✓

    LLVM emitter in Xo

    13,683 of 13,683 functions identical to the Go emitter's, and 318 of 318 modules byte identical. End to end, the Xo pipeline lowered the SSA builder to 398 MB of LLVM IR byte identical to the Go emitter's, and the binary clang built from it gives the same output. The Xo emitter takes about half the Go emitter's time.

  8. ✓

    Assembler and linker in Xo

    On arm64 Macs the self-hosted compiler now assembles and links its own executables, with no C toolchain. Its objects for all 158 arm64 test programs and for the compiler itself are byte identical to the system assembler's (the compiler's own in 4.92 s against 35.40 s). With no C compiler, assembler, or linker on the PATH, the compiler links itself to a fixed point and passes 158 of 158 tests. Since then also linux/arm64: objects byte identical to clang's, and all 159 test programs linked by it pass on glibc 2.31 and 2.41 with no C toolchain installed. Opt-in with --ld=macho for now.

  9. ✓

    Go code generator in Xo

    467 of 467 compared runs generate byte identical Go (all 27,864 declarations), and the Xo compiler builds itself with --backend=go to a fixed point. That backend keeps using the Go toolchain for your programs, use go, and Go's targets.

  10. ✓

    Retire the Go implementation

    Done on 2026-10-13: the compiler written in Go is deleted, about 95,000 lines of it, and xo is the only compiler. Before the switch every command group was checked against the Go version, and after the deletion the golden programs pass on arm64 (179 of 179), LLVM (179 of 179), and the Go backend (136 of 136), and the compiler rebuilds itself to identical bytes on macOS and arm64 Linux. Go remains only for what touches Go: the Go backend's runtime and use go bindings. A machine with no xo needs Go once, to build the last Go version (tag go-compiler-final) as a seed. See We deleted the Go compiler.

  11. ●

    WebAssembly backend

    Written only in Xo, over WASI with its own runtime, files and time zones included. 169 test programs pass on it; a program it cannot build yet stops with a clear "the wasm backend does not support ..." error, never with wrong output. It builds Xo's own compiler for the playground, about 2 MB to download (see The playground now runs Xo's own compiler).

  12. ✓

    Runtime pilot, then the runtime port

    Done in 0.16.0: the native runtime has no C left; see No C left in the runtime. The pilot is done: the native runtime's Unicode operations are written in Xo, with output identical on every backend and runtime objects 4.7 percent smaller. The bar for porting more of the runtime is every workload within 5 percent of the C version, in instructions, on both native backends; arm64 and LLVM both meet it on the Unicode workloads, so the port continues, one step at a time, each behind a selectable C version. Steps 1 to 4 are done. Number and time text, Debug quoting, Str.replace and the trims (steps 1 and 2); Int and Float text, Float.parse, hex decoding, and base64 (step 3, see Number text in Xo); and std/json's parser, readers, and text (step 4: every JSON workload within the bar, the closest at 0.956 times the C on arm64, Float encoding about 0.02 times since it now uses Dragonbox). On these workloads the ported code matches or beats the C it replaced. Two pieces missed the bar and stay C: a Duration's text (1.17 times on arm64, 1.09 times on LLVM) and hex encoding (1.09 times on arm64). Bulk byte scans (split, lines, rune counts) stay C by design.

  13. ✓

    Supply-chain follow-ups

    Resource budgets: task.with_budget caps a call's steps, running time, and allocation, so a dependency that loops forever is stopped. Log records from a dependency name the module that wrote them, and xo audit lists log call sites. Against 17 attack scenarios: 12 blocked, up from 10 of 15. Budgets, narrowed capabilities, and log attribution work on all three backends.

  14. ●

    x86-64 backend in Xo

    Xo's own code generator, assembler, and linker for x86-64 (decision 0254), the arm64 backend's front half with x86 instruction templates: xo build --backend=amd64 builds Linux binaries with no C toolchain, with AES-NI, PCLMULQDQ, and SHA-NI, and since 0.21.0 Intel Mac binaries too, with Xo's own Mach-O assembler and linker: all 193 test programs pass on an Intel Mac with no C toolchain, and since 0.22.0 Windows binaries, with its own PE linker and no C runtime. Within about 6 percent of LLVM's instructions on our benchmarks (see Correct first, fast later). The default on x86-64 hosts since 0.23.0 (decision 0270). Next: closing the remaining gap to LLVM.

  15. ●

    A debugger written in Xo

    DWARF variables and types (strings, lists, maps, enums) on arm64 and LLVM, so lldb and gdb show your values today, and a crash report lists each frame's variables. xo debug (decision 0253) is in progress: its reader, unwinder, batch session, and JSON protocol work on recorded threads.