WebAssembly
WebAssembly is a portable format for compiled programs that runs in a built-in sandbox, first in web browsers and now also on servers.
WebAssembly, or Wasm, is a compact binary format that programs written in languages such as C, Rust and Go can be compiled to. A WebAssembly runtime runs the same file on any operating system and processor. It was designed for web browsers, where it runs code near native speed. Runtimes such as Wasmtime and Wasmer also run it on servers and devices.
WebAssembly runs every program in a sandbox by design. A module can touch only its own memory and can call only the functions its host gives it. It has no access to files, network or system calls unless the host grants them, often through the WASI interface. Modules start in microseconds and use little memory, so one process can run thousands of them.
WebAssembly is a lighter way to isolate code than containers or virtual machines, but a narrower one. Code must be compiled to it, and many programs, tools and languages do not run on it unchanged. An AI agent usually needs a full operating system with a shell, packages and files, which WebAssembly does not provide. It suits small, short functions, while general sandboxes suit everything else.
Related terms