Documentation Browse docs
On this page 3 sections
Language tour
Seven stops, thirty minutes. At each stop you run a short snippet and compare your output with the verified one on the page.
The path
- Stop 1 · 5 min First program You build and run fn main, then read the exit code, which is the answer.
- Stop 2 · 5 min Values and types You declare bindings, scalars and strings, and see why you annotate types.
- Stop 3 · 5 min Control flow You use if as a value, write loops and match on unions.
- Stop 4 · 5 min Results and errors You return ok and err, handle them with try and catch, and learn the bind-first rule.
- Stop 5 · 5 min HTTP routes You write routes with patterns, read requests, split ok from err and set rate budgets.
- Stop 6 · 3 min SQLite storage You define models, run parameterized queries and write rows to SQLite.
- Stop 7 · 2 min Observability You read counters, bucket percentiles and the ledger from a service you instrumented with no code.
How to run it
Build the compiler once per the installation page,
then repeat one loop per stop. You save the snippet to a file, type
orbit build on it, run the binary it produces, and read the
exit code. On Windows you type .\orbit.exe and read
$LASTEXITCODE; on Linux and macOS you type
./orbit and read $?. Compare what
you read with the output printed on the page.