This page is not yet translated into your selected language. You have been returned to that language’s home page.

0.0.20/Release

THE KU PROGRAMMING LANGUAGE

An idea.
Written in Ku.

Ku is a programming language with explicit ownership for resource management. Write programs with concise syntax and clear error handling, starting with the interpreter or choosing native C compilation.

+Ku is an experimental language. See supported execution paths and known issues.

LESS CEREMONY.MORE EXPRESSION.
hello.ku
fn main() {
    println("Hello Ku")
}
TERMINAL●

❯ ku run hello.ku

Hello Ku

InterpreterView source ↗
CLEAR OWNERSHIP. CLEAR INTENT.Clear ownership. Explicit errors. Choose how to run.

01 — THE APPROACH

A smaller surface.
A clearer picture.

Learn the language through its ownership rules, Result errors and three execution paths.

01

Compile native programs.

Use the Ku CLI to build a native executable. Check the supported language subset and dependencies for your target.

Installation & downloads
02

Write with async/await.

Express asynchronous tasks with async/await while the runtime handles execution and scheduling within the supported backend scope.

Language guide
03

Set resource limits as needed.

Bound service connections, active requests, waiting queues and buffers. OS limits depend on the platform and deployment.

Support matrix

02 — PERFORMANCE

Fixed-load observations

0.0.19: one sequential round across seven languages in a Linux ARM64 VM, with four CPU cores per service and 30 seconds per workload. Values compare service CPU time per correct request (Ku/Rust), not request latency.

01

CPU workload — CPU cost

About 32% lower

Ku/Rust ≈ 0.678

02

JSON workload — CPU cost

About 26% higher

Ku/Rust ≈ 1.260

03

PG workload — CPU cost

About 35% higher

Ku/Rust ≈ 1.350

A single round is not capacity or long-term acceptance. Host paging and long-tail latency remain. PG pool-reset semantics differ. This round measured cgroup memory, not RSS; no RSS comparison is made.

Fixed-load observations

03 — IN PRACTICE

Familiar data.
Explicit errors.

Import a module, create data and encode it as JSON. Here, ? passes an encoding error to the caller of main.

Read the JSON reference
Encoding returns Result; ? propagates errors. Input is borrowed read-only. See the JSON reference for backend support.
json.ku
import json from "std.json"

fn main(): null! {
    message = { language: "Ku", hello: "world" }
    text = json.encode(message)?
    println(text)
    return ok(null)
}
OUTPUT{"hello":"world","language":"Ku"}

04 — FIND YOUR WAY

Start with your first program.

Installation & downloads

BUILDING WITH CARE, STILL IN PROGRESS

A programming language and toolchain.

Ku v0.0.20 is available with a CLI, VS Code extension and standard library. Try it, report issues or contribute to its development.

Licensed under Apache-2.0. See LICENSE and NOTICE.
Type to search.