Borz compiler

One source file. Four deployment targets.

Write actors and message handlers in Borz. The compiler produces a native binary, a supervised microservice cluster, a fleet of OS-less nanoservices running directly on the hypervisor, or an Ephernity smart contract — from the same source file, with no runtime changes.

terminal
# compile to a DENSE nanoservice
borz build --target dense ./my-actor.borz -o dist/

# or let the API do it remotely
curl -H "Authorization: Bearer $BORZ_API_KEY" \
     -F target=dense -F source=@my-actor.borz \
     -o my-actor.tar.gz \
     https://api.borz.ai/v1/compile
4
compile targets
~50 µs
DENSE p50 · no-op handler
16 KB
DENSE binary size
Compile targets

Pick the runtime. Keep the program.

The same actor source deploys to four different execution environments. The compiler handles the translation; your code stays identical.

--target native

Native binary

Single static binary · no runtime deps

Compiles to one self-contained Go binary with a built-in CLI and HTTP server. State auto-persists as JSON. Ideal for local tools, CI workers, and serverless deployments.

Ships today
--target demix

DEMIX microservice

Full Linux micro-VM · supervised lifecycle

Each actor runs in its own lightweight Linux VM with full network stack and hardware isolation. Millisecond cold starts, supervised restart, rolling hot-reload.

Ships today
--target dense

DENSE nanoservice

No OS · bare KVM · ~50 µs p50 (no-op handler)

Flat binary running directly on the hypervisor — no OS, no runtime. 16 KB binary, 2 MiB memory cap enforced at compile time. Ed25519 receipt per dispatch.

Ships today
--target ephernity

Ephernity smart contract

Epher Compute Chain · on roadmap

Deterministic actors compile to smart contracts — attested, append-only, and auditable. Write the actor once; the chain enforces invariants at execution.

On roadmap
The runtime layer
DELIGHT — Decent Edge Lightweight Application Server

DELIGHT is the production platform that runs DEMIX and DENSE workloads. Two execution lanes: DEMIX for supervised microservice VMs, DENSE for bare-metal nanoservices. The compiler emits artefacts that DELIGHT knows how to schedule, supervise, and hot-reload.

Tooling

Everything in one binary.

The Borz compiler ships as a single binary that includes the formatter, LSP server, test runner, benchmark harness, and deployment client. No separate installs.

borz build

Compile to the specified target. Emits a native binary, a DEMIX package, or a DENSE nanoservice archive.

borz run

Compile and run in one step. Uses the native target by default.

borz fmt

Format a Borz source file or directory according to the canonical style. No configuration options.

borz lsp

Start a full LSP 3.17 server. Integrates with VS Code, Neovim, and any editor that speaks the Language Server Protocol.

borz test

Run all @test and @table_test handlers in the package. Reports pass / fail with actor + handler names.

borz bench

Run @bench handlers and print p50/p99 dispatch latency. Compares native, DEMIX, and DENSE targets side-by-side.

borz deploy

Roll out an updated nanoservice or microservice package to a running DELIGHT host without dropping connections.

borz pkg

Module management: add, remove, and update package dependencies declared in borz.mod.

Distribution

Three ways to get the compiler.

The Online API requires no installation. The Community offline binary runs locally on your machine. The Enterprise tier ships with contractual terms, air-gapped delivery, and telemetry off.