The Koru Book
Learn Koru through working examples. Every lesson is a real test from the compiler's regression suite.
Tests: 2296
✓ 2126 passing
✗ 0 failing
○ 156 planned
Linear documentation and a formal language spec are coming as Koru stabilizes. For now, the
suite is the book — browse by example below.
core language / basic syntax
24/25core language / events flows
39/41core language / literals
7/8core language / type system
3/4core language / control flow
37/38module system / imports
26/32module system / comptime mirror
54/54module system / namespaces
2/2module system / packages
10/11module system / file layout
29/30parser
18/18compiler features / parser
274/283compiler features / compilation
31/35compiler features / flow checker
17/20compiler features / codegen
5/5compiler features / emitter
15/15compiler features / std library
3/3compiler features / template engine
9/9compiler features / subflow
1/1syntax / struct constructors
2/2advanced features / comptime
95/109advanced features / stdlib
71/75advanced features / keyword
5/5advanced features / phantom types
134/142advanced features / obligation stress
23/26advanced features / obligation matrix
13/13The permutation matrix of Koru's phantom-obligation discharge system — the