utu is a programming language that compiles to WasmGC. The compiler is self-hosted and ships with the standard library, parser, and analyzer in one Wasm bundle that runs in Node, Bun, browsers, and editors.
using Browser from std:Browser
using Nano from "npm:nanoid"
main {
let item = Browser.document.createElement("li")
item.textContent = Nano.nanoid(8)
Browser.document.body.append(item)
}
bun install
bun run buildThen run, check, format, or build a program with the CLI:
./cli/utu.mjs examples/hello.utu
./cli/utu.mjs check examples/hello.utu
./cli/utu.mjs format examples/hello.utu
./cli/utu.mjs build examples/wutu-five/folio/main.utu --out dist/folioRun the test suite:
bun run testbun run package:vscode
code --install-extension dist/utu-vscode.vsixselfhost/: the self-hosted compiler, written in utustd/: standard library sources embedded into the compilersrc/: WasmGC runtime, selfhost loader, TypeScript ABI bindings, and VS Code extensioncli/:utuandwutuCLI entry pointseditors/: VS Code, Helix, Neovim, and Tree-sitter supportexamples/: language, stdlib, and Wutu web examplesdocs/: language spec, guides, and the docs site
Full index in docs/README.md. Main references: