Documentation
Build the compiler, run a live service in five minutes, then learn the language in a thirty-minute tour. The reference pages list every command, library function and known limit.
Choose your path
- 5 min · Setup Get started You install the prerequisites, build the compiler from its C source, verify the fixed point, then compile a first program and a first live service. Common problems come with their fixes.
- 30 min · 7 stops Language tour You write and run small programs on values, control flow, results, routes, SQLite and telemetry. Every snippet compiles and runs, and each page shows its verified output.
- Consult anytime Reference You look things up: every CLI command and flag, the standard library catalog, the error format, what each exit code means, and the known limits.
Quickstart: five minutes
You need three things: a C compiler, Python 3.10+, and git. Nothing else. Clone the
repository, build the compiler from its canonical C source, compile the health service
example and ask it if it is alive. The health service declares routes, and the native
R6 backend refuses every routed program. Its build therefore passes
--backend=c:
git clone --branch feature/0.1.0-stability https://github.com/joacokhzyx/orbit-lang.git
cd orbit-lang
python scripts/trust.py build --out orbit.exe
.\orbit.exe build examples/health_service.orb --backend=c -o health_service.exe
.\health_service.exe 8080
git clone --branch feature/0.1.0-stability https://github.com/joacokhzyx/orbit-lang.git
cd orbit-lang
python3 scripts/trust.py build --out orbit
./orbit build examples/health_service.orb --backend=c -o health_service
./health_service 8080
curl http://127.0.0.1:8080/health
{"status":"UP","version":"0.1.0","uptime_seconds":0}
That is a real Orbit service: one binary, live telemetry at
/metrics and per-route costs at
/_ledger. The Get started page
walks the same path slowly, explaining each step.
The idea behind Orbit
Orbit is a statically typed language for APIs and microservices. Its compiler turns your
.orb source into C, and a C compiler builds the binary. The
compiler is written in Orbit and compiles itself: the quickstart above builds it from its
canonical C source with scripts/trust.py build.
What you get from one compiled service binary, with no extra code:
- Live telemetry at
/metrics. - Per-route costs at
/_ledger(the ledger). - A health route like the
/healthresponse shown above.
The docs also mark what is not proven: every tour snippet prints a verified output, and anything untested is labelled UNTESTED.
What 0.1.0 cannot do
Next step: install the compiler, or jump straight into the language tour. Sources live on GitHub.