Skip to main content
add :: (a: s32, b: s32) => s32 { a + b };

main :: () => {
    const sum: s32 = add(10, 2);
    const _ = sum;
};
Example Phoenix source code demonstrating a typed add function and main entry point, followed by a successful phx check result.

Example check result: phx check main.phx — ok (0 errors)

Phoenix

Systems programming without a garbage collector

Experimental alpha — compile to portable PHX0 bytecode, run on a verified stack VM. Errors are values, not exceptions.

Features

Get started

cargo build -p phx && cargo run -p phx -- run examples/hello/src/main.phx
Read the docs →