Kria · krx

Kria Programming Language

A dynamically typed language implemented in Rust, with an LLVM-based JIT runtime and a RegisterVM-powered interactive REPL. It supports 64-bit integers and double-precision floats, functions, and closures. Write .krx files or explore the language.

Features

Dynamic Numeric Types

Use 64-bit integers and double-precision floats, including decimal and scientific-notation literals.

Interactive REPL

Run kria with no arguments. The RegisterVM REPL keeps state between inputs and supports multi-line blocks.

Functions & Closures

Named functions, lambdas, and nested closures that can retain and update captured values.

Arrays & Objects

Mutable and immutable arrays, object literals, deep equality, and for-in iteration.

Modules

Multi-file projects with export fn and import alias from "./file.krx".

Quick example

fn greet(name) {
    return "Hello, " + name
}

set message = greet("Kria")
print(message)
Explore documentation

Kria 2.0.0

The latest release, published on November 15, 2026, fixes lexer and VM bugs, introduces the LLVM-based JIT compiler and RegisterVM, and improves backend performance. The release includes a Windows x86_64 installer; no prebuilt Linux/macOS binaries are listed. Read the 2.0.0 release notes or check GitHub Releases for the latest assets.

Download Kria 2.0.0

Build from source (optional)

Choose this route only if you want to build Kria yourself. You will need the Rust toolchain (Rust 2021 edition). The default JIT backend for running .krx files also requires Clang from LLVM on your PATH; alternatively, select the RegisterVM backend as described below.

1. Development build

cargo build

This creates a debug build. Useful for development and testing.

2. Release build (recommended)

cargo build --release

This creates an optimized release binary. The binary is located at target/release/kria.

3. Install to your system

For Linux / macOS:

./release/build.sh install

This builds Kria and installs it to ~/.kria/bin. Make sure this directory is in your PATH.

Run Kria

Interactive REPL

kria

Starts the persistent interactive REPL. It always uses the RegisterVM, regardless of the backend setting used for source files.

REPL commands:

Check version

kria -v

Run a source file

kria test.krx

Execute a Kria program from a .krx file.

Source files use the LLVM JIT by default. It requires Clang from LLVM on PATH. To use RegisterVM instead, set KRIA_BACKEND=register:

# Linux / macOS
KRIA_BACKEND=register kria test.krx

# Windows PowerShell
$env:KRIA_BACKEND="register"
.\kria.exe test.krx

The setting affects source-file execution only; the REPL continues to use RegisterVM. Remove the variable (unset KRIA_BACKEND on Linux/macOS or Remove-Item Env:KRIA_BACKEND in PowerShell) to return to the default JIT backend.

Platform-specific build and packaging

Windows

The 2.0.0 release includes a Windows x86_64 installer. To build from source, install Rust and NSIS.

cargo build --release
cd release
makensis kria-setup.nsi
# Run the generated installer from release/

Linux / macOS

No prebuilt Linux/macOS binary is listed for 2.0.0. Build from source with Rust; the install script copies Kria to ~/.kria/bin:

./release/build.sh install

Create a distributable archive:

./release/build.sh package

Creates a tarball in the release/ directory.

VS Code extension

For an IDE experience, use the official Kria Programming Language VS Code extension.

Install the Kria VS Code extension

What's next?

Once you have downloaded or built Kria, try running a simple script:

kria test.krx

Check out the full source code and releases on GitHub, or dive into the documentation to learn the language.