Skip to content
HN On Hacker News ↗

XS

▲ 60 points 42 comments by yacin 7d ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

1 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 217
PEAK AI % 1% · §1
Analyzed
May 17
backend: pangram/v3.3
Segments scanned
1 windows
avg 217 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 217 words · 1 segments analyzed

Human AI-generated
§1 Human · 1%

v1.2.26A 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 binaryhero.xsmacOS, Linux$curl -fsSL xslang.org/install | sh|Windows>irm xslang.org/install.ps1 | iexSource$git clone github.com/xs-lang0/xs && cd xs && makeBoth installers verify the GitHub release against its published SHA-256 sums before running anything. Static binaries with checksums also live at /downloads.Benchmarksstartup, hello world3 msC source (excluding BearSSL)132 KLOCfib(30)xs --jitxs (vm)node 20cpython 3.1331 ms138 ms62 ms71 msMeasured 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.Backendsxs --interptree-walk interpreterfor the REPL and AST-level plugin debuggingxs (default)bytecode VMwhat normal runs go throughxs --jitregister-allocating JITx86-64 + aarch64; opcodes outside its set fall back to the VMxs --emit cC transpilerself-contained C source for any reasonable compilerxs --emit jsJavaScript transpilerNode or the browser; ships less than xs.wasm if you only need one programxs.wasmruntime buildthe 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.