Quick Start
Get Rey installed and write your first program in under 5 minutes.
Install Rey
Download the latest release for your platform or install via the install script:
Or download a pre-built binary from the Download page. Verify your installation:
Hello, World!
Create a file called hello.rey:
Compile and run it:
You compiled a Rey program to a native binary. No runtime, no VM — just machine code.
Variables & Type Inference
Declare variables with var. The type is inferred from the value — you don't need to annotate:
Once a variable is declared, its type is fixed. Assigning a value of the wrong type is a compile error.
Functions
Functions are declared with func. Parameters and return types are always annotated:
Structs & Enums
Group data with structs and model variants with enums:
Collections
Rey has built-in Vec and HashMap with functional methods: