1. Hello, writeonce

A writeonce program is one directory of .wo files and one entry: a free function named main. It returns the process exit code. There is no runtime to install separately and no build pipeline — woc build produces ONE self-contained binary with the VM and your bytecode inside.

fn main() -> Int {
  print("hello, writeonce");
  return 0;
}

Run it: woc build . -o hello && ./hello. Statements end with ;, blocks use braces, comments start with --.

Chapters