XCX 2.2 introduces Cranelift-based JIT compilation, NaN-boxed values, and SSRF protection — delivering up to 293x speedup on hot code paths while maintaining a tiny memory footprint.
XCX implements high-level abstractions for common backend tasks. The language provides native syntax for HTTP responses, fiber-based state suspension, and relational data processing.
fiber handle_login(json: req -> json) {
json: body;
req.bind("body", body);
s: username;
body.bind("username", username);
s: pass_hash = crypto.hash(body.get("pass"), "argon2");
--- Yield a 200 response
yield net.respond(200, <<< {"ok": true} >>>);
};
Standard type system including Integers, Floats, Strings, and Booleans to assist with basic error checking.
Implementation of lightweight coroutines that yield control explicitly for specific concurrency patterns.
Support for native table and row types with basic relational operations like where and join.
Dedicated block literals and methods for parsing and manipulating JSON data structures.
Executes on a stack-based virtual machine written in Rust, following a multi-stage compilation pipeline.
PAX provides basic dependency management and project scaffolding.