Skip to content

First Program

Examples are being stabilized with the compiler migration. The first public program will be kept small enough to verify the parser, typechecker, entrypoint handling, and executable output.

public procedure main(move ctx: Context) -> i32 {
return 0
}

The Context parameter is the entry capability bundle for an executable.

Terminal window
# Public alpha compile command placeholder.
./build/uv build examples/first.uv
Terminal window
# Public alpha run command placeholder.
./build/first

The canonical first example will be updated when the public compiler and example tree are stabilized.