XS

Programming language with its whole toolchain in one static binary

Image 1 of 1: XS site with a code sample and install commands

One statically-linked binary holds the compiler, language server, debugger, formatter, linter, test runner, profiler and package manager. A bytecode VM is the default, with a tree-walk interpreter, a register-allocating JIT, and C, JavaScript and WebAssembly output.

  • 31 msfib(30), JIT
  • 180 msfib(30), VM
  • 3 msStartup

Trade-offs

  • The VM holds a global lock during dispatch, as CPython does. Blocking work still runs in parallel, and two pure-compute threads take turns.
  • The interpreter and the VM run one test suite on every commit, with outputs diffed. A divergence fails even when each backend passes alone, at the cost of keeping both.
  • The JIT compiles the opcodes it supports and falls back to the VM for the rest. Hot paths get faster, and only for hotspots that have been profiled.

Q&A2

gcc or clang and GNU make, with no other build or runtime dependencies. HTTPS uses a bundled BearSSL tree.

Reviews

Loading reviews

    More in C

    See all 15 →
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • LordOSDebian-based Linux distribution with its own desktop stack
    • haxMinimalist terminal coding agent written in C
    • pg-statusSidecar that reports PostgreSQL master, replicas and replication lag
    • qwen3-ttsPure C inference engine for Qwen3-TTS text-to-speech
    • pktstat-bpfPer-flow traffic monitor for Linux with four eBPF capture modes

    More in Compilers

    See all 13 →
    • ddcAndroid DEX to Java decompiler with a javac parse gate
    • TheseusA compiler that turns DOS and Win32 executables into Rust source
    • ArityLanguage server, formatter and linter for R
    • gabagoolWebAssembly interpreter whose execution state can be snapshotted and resumed
    • SharpTSTypeScript interpreter and ahead-of-time compiler to .NET IL, written in C#
    • KillSwitchEsoteric language built to be impossible for LLMs