Skip to content

Getting Started

The Kāra compiler, karac, is not published to crates.io yet — build it from source. You’ll need a Rust toolchain and, for native compilation, LLVM 18.

Terminal window
git clone https://github.com/karalang/kara
cd kara
cargo build --release --features llvm
cargo build -p karac-runtime --release # runtime library for native builds

The compiler is at target/release/karac; add it to your PATH.

Create hello.kara:

fn main() {
println("Hello, world!");
}

Build and run it:

Terminal window
karac run hello.kara

Or compile a native binary:

Terminal window
karac build hello.kara
./hello

Full language documentation is in progress. Until then: