Skip to content

Kāra

A compiled, auto-parallelizing programming language.

Try it in your browser

Two demo apps compiled from Kāra to WebAssembly, running entirely client-side — nothing is ever uploaded: Prism, a multicore image workbench (Lanczos resize, crop, rotate, adjust), and Veil, a local image redactor (pixelate, blur, bar). Both were built with the pre-0.8 compiler; the browser target is not in 0.8 yet.

Automatic parallelization

Functions declare the effects they touch; the compiler proves independent work safe and runs it concurrently — no async/await, no colored functions, no threads, pools, or locks to manage by hand.

Ownership without lifetimes

Memory safety with no 'a annotations. Parameters borrow by default, own T takes ownership and mut ref T writes; a returned reference’s source is inferred from the signature. Shared ownership is opt-in and visible: shared struct and shared enum are reference-counted.

Every decision as JSON

Effects, ownership, concurrency, and costs are all queryable — karac query answers what the compiler inferred, and diagnostics ship machine-applicable fixes that karac fix applies. Built for agents and humans alike.

Effects, not async

Seven built-in effect verbs describe what each function does to the world. The compiler reads them to schedule blocking I/O off the runtime threads and to keep output deterministic by contract.

Standard library at v1

In-tree HTTP/1.1, TLS, and WebSocket with blocking-style I/O and no function coloring — no third-party runtime, the effect scheduler moves blocking work off the par-runtime threads.

Native via LLVM

Ahead-of-time compilation to native code through LLVM 22, overflow-checked by default. Across 444 single-file algorithm programs the median run time is 1.00× overflow-checked Rust and 1.15× C, with binaries of ~67–296 KiB. The benchmarks and their caveats →

Additive interop (FFI)

Adopt without rewriting: call C directly with unsafe extern blocks, or export a Kāra kernel as a .a/.so with a generated C header — the runtime rides along, so C and Rust hosts link it with no Kāra toolchain installed. The FFI guide →

WebAssembly

Compile to wasm32-wasip1 from the same source — arithmetic, collections, JSON, pattern matching, and file I/O run byte-identical to native under any WASI host.

One toolchain

karac builds, runs, tests, formats, queries, and targets native or wasm — one binary, no separate tools to assemble.