XS: A programming language. Anywhere, anytime, by anyone
3 days ago
- #Cross-platform
- #Programming Language
- #Performance
- XS v1.2.26 is a programming language designed for universal accessibility.
- It is delivered as a single, statically-linked binary containing all essential tools (compiler, language server, debugger, etc.).
- The same source code runs across multiple platforms including Linux, macOS, Windows, WASI, iOS, Android, ESP32, and Raspberry Pi.
- It has minimal dependencies: 6 backends, 3 transpile targets, 0 runtime dependencies, and a 2.9 MB binary.
- Installation is straightforward via curl/sh for macOS/Linux, PowerShell for Windows, or cloning and building from source.
- The installation process verifies GitHub release SHA-256 sums before execution.
- Performance benchmarks show competitive results: startup hello world takes 3 ms, fib(30) runs faster with JIT (31 ms) compared to VM (138 ms), Node 20 (62 ms), and CPython 3.13 (71 ms).
- Backend options include a tree-walk interpreter for REPL and debugging, a bytecode VM for normal runs, a register-allocating JIT for x86-64/aarch64, C transpiler for self-contained C source, JavaScript transpiler for Node/browser, and WASM for runtime builds in browsers.