XU XUv0.8.8
中文

XU Interactive Playground (WebAssembly)

Write, typecheck, and execute XU code directly in your browser without local installation or cloud execution dependencies.

The execution engine is written entirely in Xu and compiled to native WebAssembly bytecode, running securely within your browser sandbox. It includes lexical parsing, borrow checking, MIR code generation, and VM execution.

playground.xu · Xu Browser Sandbox parse → borrow check → MIR → execute

Start with the entry function and standard output, modify code, and run again.

// Standard output and diagnostics will appear here in real time...

Browser Capabilities & Sandbox Scope

The online sandbox covers fundamental types, string manipulations, flow control, recursion, structs, pattern matching, compile-time borrow diagnostics, and channel communication modeled through cooperative coroutine scheduling. Individual sandbox runs have a 10-second safety budget.

Native System Programming

To experience true multi-threaded runtime, high-throughput network IO, native C FFI, and desktop WebView UI capabilities, install the native Xu toolchain on your host platform: