Easy to read
Kira keeps everyday code straightforward: variables, functions, structs, and prints look close to how you would explain the program out loud.
Fast. Expressive. Safe.
Tools for Linux, macOS, and Windows
Install Kira
Pick your platform and follow the command below. The switcher is centered and intentionally minimal so the install flow stays clear.
Use Homebrew for the cleanest setup and keep the compiler on your normal PATH.
brew tap kira-lang-com/kira
brew install kiraRequires Homebrew. Then run `kira --version` to verify the install.
Kira keeps everyday code straightforward: variables, functions, structs, and prints look close to how you would explain the program out loud.
You can start with tiny scripts and simple apps, then keep growing into packages, tooling, and native interop without switching languages.
The same syntax scales from beginner-friendly examples to real projects like the pure-Kira Sokol triangle sample in this repo.
Small Kira programs read the way you expect.
You can start with plain values, clear types, and direct function bodies. The language does not force advanced syntax on simple tasks.
@main
function main() {
let x: Float = 12
let y = 12.0
let z = x + y
print(z)
return
}Mutation and output stay easy to follow.
When you need a mutable value, you declare one with `var` and update it directly. The language keeps the common path uncluttered.
var xy = 12.0
print(xy)
xy = 13.0
print(xy)Your data types look like your data.
Kira structs are direct and readable. You can name fields clearly and keep your types close to the problem you are solving.
@CStruct
type hk_color {
var r: CFloat
var g: CFloat
var b: CFloat
var a: CFloat
}When you are ready, the same language scales up.
The repo also includes a real graphics sample written in Kira. You can stay with friendly syntax and still grow into native app code when the project gets bigger.
@Main
function main() {
print("Launching Sokol triangle (pure Kira)...")
sapp_run(desc: sapp_desc(
init_cb: on_init,
frame_cb: on_frame,
cleanup_cb: on_cleanup,
width: 800,
height: 600,
window_title: "Sokol Triangle (Kira)"))
}Explore the code, try the examples, and help shape where Kira goes next.