XS: A programming language. Anywhere, anytime, by anyone

· devtools systems coding · Source ↗

TLDR

  • XS is a self-contained language toolchain in a 2.9MB binary covering compiler, LSP, debugger, formatter, linter, test runner, profiler, and package manager.

Key Takeaways

  • Single statically-linked binary runs unchanged on Linux, macOS, Windows, WASI, iOS, Android, ESP32, and Raspberry Pi with zero runtime deps.
  • Four execution backends: tree-walk interpreter, bytecode VM (default), register-allocating JIT (x86-64/aarch64), and C or JS transpilation.
  • JIT hits 31ms on fib(30) vs Node 20 at 62ms and CPython at 71ms; cold-start hello world is 3ms.
  • xs.wasm ships the full compiler to the browser with a virtual filesystem, enabling runtime evaluation of any XS program.
  • C source excluding BearSSL is 132 KLOC; install scripts verify SHA-256 against GitHub releases before execution.

Hacker News Comment Review

  • Commenters note the language documentation lacks a table of contents, making it hard to assess what the standard library actually covers.
  • A GIL in 2026 is flagged as a significant weakness despite otherwise well-regarded actor and nursery concurrency designs.
  • Trust concerns surfaced immediately: one commenter found all copy AI-generated with no identifiable human author, calling that a dealbreaker regardless of technical merit.

Notable Comments

  • @mpalmer: “All the copy is entirely generated. I can’t find any actual human associated with this thing.”
  • @__erik: Praised actor/nursery design but called a GIL “a massive weakness” for a language launching in 2026.

Original | Discuss on HN