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

Hacker News Top Tools

Summary

XS is a new programming language distributed as a single statically-linked binary containing the compiler, language server, debugger, formatter, linter, test runner, profiler, and package manager. It runs unchanged on multiple platforms including Linux, macOS, Windows, WASI, iOS, Android, ESP32, and Raspberry Pi, and offers multiple backends including a JIT, VM, and transpilers to C and JavaScript.

No content available
Original Article
View Cached Full Text

Cached at: 05/17/26, 06:49 PM

# XS Source: [https://xslang.org/](https://xslang.org/) A programming language\. Anywhere, anytime, by anyone\. One statically\-linked binary contains the compiler, the language server, the debugger, the formatter, the linter, the test runner, the profiler, and the package manager\. The same source runs unchanged on Linux, macOS, Windows, WASI, iOS, Android, ESP32, and Raspberry Pi\. 6backends3transpile targets0runtime deps2\.9MB binarymacOS, Linux$curl \-fsSL xslang\.org/install \| sh\| Windows\>irm xslang\.org/install\.ps1 \| iex Source$git clone github\.com/xs\-lang0/xs && cd xs && make Both installers verify the GitHub release against its published SHA\-256 sums before running anything\. Static binaries with checksums also live at[/downloads](https://xslang.org/downloads)\. ## Benchmarks startup, hello world3 msC source \(excluding BearSSL\)132 KLOCfib\(30\) xs \-\-jitxs \(vm\)node 20cpython 3\.1331 ms138 ms62 ms71 ms Measured on a Linux x86\-64 box, each binary cold from disk, best of three runs\. Reproduce with`bash tests/bench\_backends\.sh`in the source tree\. The JIT and VM numbers come from the same build that ships in releases\. ## Backends xs \-\-interptree\-walk interpreter for the REPL and AST\-level plugin debugging xs \(default\)bytecode VM what normal runs go through xs \-\-jitregister\-allocating JIT x86\-64 \+ aarch64; opcodes outside its set fall back to the VM xs \-\-emit cC transpiler self\-contained C source for any reasonable compiler xs \-\-emit jsJavaScript transpiler Node or the browser; ships less than xs\.wasm if you only need one program xs\.wasmruntime build the same compiler running in a browser; ships a virtual filesystem and behaves like the native binary, so any XS program can be evaluated at runtime\. [how to embed it](https://xslang.org/docs/guide/embedding)\.

Similar Articles

AgentSPEX: An Agent SPecification and EXecution Language

Hugging Face Daily Papers

AgentSPEX introduces a domain-specific language for specifying modular, interpretable LLM-agent workflows with explicit control flow, state management, and a visual editor, outperforming existing Python-coupled frameworks.