Skip to content
Borz compiler

One source file. One supported target. More in progress.

Write actors and message handlers in Borz. The compiler produces a native binary (supported). Experimental targets: OS-less nanoservices running directly on the hypervisor (DENSE) and a WASM module; a supervised microservice cluster (DEMIX) is not available yet. The compiler has seven targets in all: one supported, four experimental, one not available yet, one planned (actors on Epher).

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

# DENSE is experimental. The hosted compile API is temporarily
# unavailable; the /language/playground/ page compiles the native target only.
1
supported target (native)
5
experimental targets
1
planned target (Epher contract)
Compile targets

Pick the runtime. Keep the program.

The same actor source compiles for several execution environments: one is supported (native), the others are experimental. 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.

Supported
--target demix-static

DEMIX microservice

Full Linux micro-VM · supervised lifecycle

Targets DEMIX, the DELIGHT microservice lane: one Linux micro-VM per actor. Not available yet: the emitted sources do not build as a standalone service.

Not available yet
--target dense

DENSE nanoservice

No OS · bare KVM

Flat binary running directly on the hypervisor — no OS, no runtime. 2 MiB memory cap enforced at compile time. Experimental: the compiler runs, but nothing yet checks that the emitted artifact builds.

Experimental
--target wasm

WASM module

WebAssembly/WASI · browser or server-side sandbox

Compiles to a WebAssembly module for a sandboxed host. A separate --target browser-wasm drives the DOM. Ephernity contracts are @deterministic actors; a dedicated contract target is on the roadmap.

Experimental
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 artifacts 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 or a DENSE nanoservice archive (DEMIX is not available yet).

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 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.

One actor language, many targets

One language. Choose the target when you deploy.

The same actor source compiles to several backends. Where it runs is a deployment choice, made without changing the source. Each target shows its real status below.

The runtime underneath
DELIGHT — Decent Edge Lightweight Application Server

The platform behind the DENSE and DEMIX targets: DEMIX for micro-VMs and DENSE for nanoservices. DENSE runs Borz actors without Epher.

--target native
Supported

Native binary

Tools and services on a normal host

  • Compiles to one self-contained Go binary
  • Gated: every example program is compiled and checked for a binary
--target dense
Experimental

Nanoservice on DENSE

Sandboxed, OS-less, fast-starting actors

  • Each handler becomes a small flat binary run by DENSE, Decent Edge's nanoservice layer
  • Intended for untrusted or agent-written code and the edge
  • The compiler runs; the emitted artifact is not yet checked by a gate
deploy: Epher
Planned

Actors on Epher

State that must be agreed and provable

  • Any Borz actor can be deployed on Epher: one operator executes, replicas store the signed outputs
  • An optional @deterministic marker makes the compiler check determinism; it is never required
  • Not available yet
--target demix-static
Not available yet

Microservice on DEMIX

Each actor in its own Linux micro-VM

  • For actors that need a Linux userland or native libraries
  • The compiler emits sources, but they do not build as a standalone service yet
--target wasm
Experimental

WebAssembly

Portability, browser, the WASM ecosystem

  • Compiles an actor to a WebAssembly module; --target browser-wasm drives the DOM
  • The compiler runs; the emitted artifact is not yet checked by a gate
--target mlir · llvm
Experimental

Compiler IR backends

Optimization research

  • Lowering to MLIR and LLVM for optimization work
  • Not intended for deployment