HeadlinesBriefing favicon HeadlinesBriefing.com

XS Language Unifies Compiler, Toolchain, and Runtime in a 2.9 MB Binary

Hacker News •
×

XS, a compact statically‑linked binary, bundles a compiler, language server, debugger, formatter, linter, test runner, profiler, and package manager into a single 2.9 MB download. The tool runs unchanged on Linux, macOS, Windows, WASI, iOS, Android, ESP32, and Raspberry Pi, eliminating platform‑specific builds, ensuring developers can ship a single artifact across the entire platform‑specific patches across entire.

Startup benchmarks show a cold‑start hello‑world completes in just 3 ms, while a 132 KLOC Fibonacci demo runs 62 ms on the JIT‑enabled VM and 71 ms on the bytecode interpreter. The interpreter powers the REPL and AST‑level debugging, whereas the JIT targets x86‑64 and aarch64, falling back to the VM for unsupported opcodes in dynamic execution scenarios today.

XS provides three transpilers: C, JavaScript, and WASM. The C emitter outputs self‑contained source that any compiler can build, while the JavaScript target ships under 700 kB for browsers or Node.js. The WASM runtime mirrors the native binary, offering a virtual file system and allowing programs to execute inside the browser without native binaries for developers.

Installation is streamlined: a single shell script or PowerShell command pulls the latest release, verifies SHA‑256 checksums, and installs the binary. Developers can clone the source, build with GNU Make, and run extensive tests or benchmarks. XS’s unified toolchain and cross‑platform reach position it as a lightweight alternative for projects demanding rapid, portable deployment today.