Makori is a compiled language for backend and systems work. You write .mko
files; Makori turns them into standalone native binaries — no garbage collector,
no VM, nothing extra to install next to them at runtime.
Renamed from Mako. The original name conflicted with Python's Mako templating engine, which has been around since 2006. To avoid confusion between the two projects, the language is now called Makori. The
makocommand still works as a backward-compatible alias, and the.mkofile extension is unchanged — existing code requires zero modifications.
Status: alpha (v0.6.8). It works, it compiles real programs, people have built things with it. It is not stable. APIs will change, features are missing, and there are bugs. If that's fine with you, read on.
mako-lang.com · Changelog · Roadmap · Status
Linux
curl -fsSL https://github.com/loreste/mako/releases/latest/download/install-linux.sh | bash
source "$HOME/.local/share/mako/env.sh"
makori version
macOS
curl -fsSL https://github.com/loreste/mako/releases/latest/download/install-release.sh | bash
source "$HOME/.local/share/mako/env.sh"
Windows — grab the .zip from Releases,
or build from source with LLVM clang on PATH.
From source (needs Rust):
make install
makori version
You do not need Rust on the machine that runs Makori. The installer downloads a prebuilt binary bundle.
macOS release binaries ship with a bundled linker (LLD) — no Xcode, clang,
or any external C toolchain is required. Install and build native binaries
out of the box. Linux currently requires gcc or clang for linking.
fn main() {
let ch = make(chan[string], 4)
crew t {
let p = t.kick(produce(ch))
for msg in range ch {
print(msg)
}
let _ = p.join()
}
}
fn produce(ch: chan[string]) -> int {
let _ = ch.send("hello")
let _ = ch.send("world")
ch.close()
return 0
}
makori init hello && cd hello
makori run main.mko
makori build --release main.mko -o hello
Language. Static types with local inference. Result[T, E] and Option[T]
with ? propagation. Pattern matching. Enums with payloads. Generics
(monomorphized). Interfaces (structural, like Go). Closures. Tuples and
multi-return. Integer literals in decimal, hex (0xFF), binary (0b1010),
and octal (0o77) with _ separators. defer. Labeled loops. F-strings.
Struct update syntax. Pipe operator (|>). prove contracts. live fn
hot-reload foundation.
Memory. Ownership tracking with compile-time move checks. Arenas for
bulk allocation. Bounds checks in debug and release. Escape analysis.
Deterministic cleanup with copy-on-write slices — no GC. The C backend shares
owned heap backing through atomic reference counts and detaches before
mutation; borrowed views and pool-backed buffers never enter that release
path. The native backend tracks owned and borrowed values explicitly across
calls and returns. The ownership and runtime safety model was introduced in
0.2.4 and continues to be hardened through adversarial tests, sanitizers, leak
checks, and regression gates. It is not formally proven complete. unsafe and
FFI are outside the model.
Concurrency. crew / kick / join — structured concurrency where
ordinary crew jobs cannot outlive their scope. Explicit detach tasks are
process-scoped and require separate lifecycle management. Typed channels
(chan[int], chan[string], chan[T]), select, fan for parallel map.
Actors with mailboxes. No free go keyword — every spawned task has an owner.
Stdlib. HTTP server and client. TLS (OpenSSL). WebSocket. JSON. SQLite and
Postgres. SIP parsing and building. HEP (Homer) ingest. UDP/TCP/Unix sockets.
File I/O. Regex. UUID. Base64. Binary buffers. Prometheus metrics. Crypto
(SHA-256, HMAC, PBKDF2, AEAD). Protobuf wire codec. gRPC unary frames and
service registry. Application packs have Go-equivalent surfaces
(strings, bytes, io, os/env, net/netip, math/bits, hash/crc32,
crypto/rand, image, … — Makori names, not a syntax clone). Coverage is
still uneven — STDLIB.md records what has real tests,
what is a capability equivalent, and what is intentionally out (unsafe,
go/*, debug/*, weak).
Backends. Native object code default (Cranelift). C backend
remains available via explicit --backend c as the oracle for sanitizers,
cross-compilation, and emit-c; unsupported native/LLVM modes hard-error instead
of silently falling back. Both backends produce standalone binaries. LLVM
release builds available with --backend llvm --release.
On macOS, the native backend ships with a bundled linker (LLD) — no clang or
Xcode required. On Linux, gcc or clang is needed for linking.
Packages. makori pkg manages dependencies with a lockfile, SHA-256 content
hashes, and SemVer resolution. Supports path deps, git deps, local registry,
and remote HTTPS registry. The default public registry is
https://loreste.github.io/mako-packages — makori pkg get <name> fetches
from it automatically. Packages can be signed with ed25519 and verified
on fetch.
Tooling. makori fmt, makori lint, makori test (with JSON reports), makori check.
LSP server with completions, go-to-def, references, rename, diagnostics,
and inlay hints. VS Code extension.
Zaman — live SIP/HEP operations with capture health, active-call state, message inspection, site history, reports, alerts, and traffic metrics.


gcc or clang for linking (installer handles this)--backend c#line source mapping, but no IDE integration beyond seeds)STATUS.md has the full honest list.
Interface type hardening — interface satisfaction now verifies parameter and return types instead of accepting a same-named method with a different signature.
Consuming View detach — v = append(v, x) safely converts a borrowed View
to owned backing and ends the base borrow, with portable refcount CI probes.
Normative slice safety — zero-copy Views now participate in NLL, mutable Views are exclusive, slice data remains non-Send, and invalid refcount transitions abort without wrapping. See MEMORY_MODEL.md.
Unicode 17, ML-DSA, traced errors, UUIDs, and JSON parity — Unicode XID identifiers and normalization, OpenSSL 3.5+ ML-DSA signatures, error-chain metadata, UUID v1/v6/v8, and float/bool JSON derivation now run through both the C and native backends.
Typed channel methods on the C backend — string and aggregate channels now
lower try_send and send_timeout through their typed runtime helpers. This
keeps generated argument types correct and preserves caller ownership when a
string send succeeds, times out, or observes a closed channel.
Durable C-backend loops — string, channel, map, and iterator range loops
now release owned body temporaries after every iteration. Long-running
workloads no longer accumulate one allocation per iteration until
rc_alloc aborts with an out-of-memory error.
Copy-on-write slices — on the C backend, heap-backed slice clones are O(1) atomic retains. Append and other mutations preserve value semantics by detaching shared backing storage before writing. Borrowed views remain non-owning, and the native backend keeps call, return, and nested temporary ownership explicit. This removes repeated deep copies from database and collection-heavy loops without introducing a garbage collector.
Ownership hardening — C and native lowering now retain, clone, transfer, and release slice storage consistently across calls, returns, struct fields, discarded values, and generated helpers. Adversarial tests cover aliasing, reassignment, clone storms, allocator pairing, and nested native temporaries. Release CI passed ASan/LSan, TSan, UBSan, native differential tests, the memory-safety gate, and long-running RSS soaks.
Native LLM builtin parity — the native backend now wires the hosted LLM surface through checked bridge shims instead of leaving those calls as C-only coverage. Offline LLM builders, parsers, retry helpers, and embedding helpers run under the native backend test path.
Runtime hardening — LLM bridge string ownership stays explicit at the native/C boundary, and release CI keeps the benchmark, sanitizer, memory-safety, and product-claims gates hard.
Pipe operator — chain function calls top-to-bottom:
let result = data
|> parse
|> validate(schema)
|> transform
// desugars to: transform(validate(parse(data), schema))
// zero-cost — pure syntax sugar, no allocations
Prove contracts — compiler-verified preconditions:
fn transfer(from: int, to: int, amount: int) -> int
prove amount > 0
prove from >= amount
{
return from - amount
}
Live fn — hot-reload foundation:
live fn handle_request(req: string) -> string {
return "ok"
}
// compiles to indirect call through swappable function pointer
// update running servers without dropping connections
Makori has no free go. Every task belongs to a crew:
crew t {
let a = t.kick(work(1))
let b = t.kick(work(2))
print(a.join())
print(b.join())
}
// both tasks joined here, guaranteed
Channels are typed and work across kicked tasks:
let ch = make(chan[string], 8)
// send from one task, range-recv in another
for msg in range ch {
print(msg)
}
Makori compiles to WASM via the C backend and zig (or wasi-sdk):
makori build main.mko --target wasm32-wasip1 -o main.wasm
wasmtime main.wasm
WASI Preview 1 is supported — args, env, filesystem (via preopens), stdout.
Networking, TLS, and stdlib areas that depend on POSIX sockets or OpenSSL are
not available in WASM. The output is a standalone .wasm module runnable by
wasmtime, wasmer, or any WASI-compatible runtime. Concurrency primitives
(crew/kick) run sequentially under WASM — correct behavior, single-threaded.
# With filesystem access
wasmtime --dir=./data::. main.wasm
# With env vars and args
wasmtime --env KEY=value main.wasm arg1 arg2
# Browser/edge scaffold
makori deploy wasm dist --entry main.mko --wasm app.wasm --port 8080
Limitations: WASI Preview 1 only. No Preview 2 component model, no WIT,
no browser DOM bindings, no WASM sockets. Cross-compilation requires zig on
PATH or WASI_SDK_PATH set.
If a function returns Result, you have to handle it:
fn load(path: string) -> Result[string, string] {
let data = read_file(path)?
Ok(data)
}
makori test examples/testing # run all tests
makori test -r TestAdd -v # filter + verbose
makori test --sanitize address examples/testing # under ASan
420 *_test.mko files under examples/testing (inventory 2026-08-23).
That day: default 420 passed / 0 failed; C 420 passed / 0 failed; native 420
passed / 0 failed. The suite is exercised under ASan and UBSan in CI.
A focused concurrency subset is exercised under TSan.
| The Makori Book | Start here |
| Language Guide | Syntax reference |
| Standard Library | What's included |
| CLI Reference | Commands and flags |
| Examples | Runnable programs |
| Performance | Benchmarks (including where Makori is slower) |
| Soundness | Memory safety program |
| Security | Safety model |
| Status | What works, what doesn't |
VS Code extension with syntax highlighting, LSP, format-on-save, and a dark
theme. The language server (makori lsp) speaks stdio JSON-RPC.
See editors/vscode/.
See CONTRIBUTING.md.
MIT