Welcome to Kairo

Welcome to Kairo

Kairo is a statically typed, compiled systems language. C++ builds can #include .kro files directly. Kairo code calls C++ libraries without a binding layer. The compiler is written in C++; the goal is self-hosting.

Built by the Kairo Software Foundation.

Key Features

  • No GC, no hidden allocations - Allocation and deallocation are explicit. The compiler places destructors at scope exit.
  • Memory control - Manual or assisted, you choose
  • C/C++ interop - #include in both directions, no binding step
  • Pattern matching, generics, interfaces, lambdas - Available without a runtime cost
  • Built-in tooling - Formatter, linter, package manager, LSP in one binary

Quick Example

fn main() {
    let name = "Kairo";
    print(f"Hello from {name}!");
}

Status

The Kairo compiler is currently in stage 0, which is written in C++ and is being rewritten in Kairo itself (self-hosting). APIs and syntax may change before the 1.0 release.

Next Steps