The Koru Book
Learn Koru through working examples. Every lesson is a real test from the compiler's regression suite.
Tests: 1468
✓ 1154 passing
✗ 195 failing
○ 59 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
22/24core language / events flows
36/38core language / literals
7/8core language / type system
5/16core language / control flow
31/32module system / imports
18/24module system / comptime mirror
20/38module system / namespaces
2/2module system / packages
1/1module system / file layout
13/16parser
8/11compiler features / parser
138/160compiler features / compilation
12/18compiler features / flow checker
8/12compiler features / codegen
1/1compiler features / emitter
5/6compiler features / std library
3/3compiler features / template engine
9/9compiler features / subflow
1/1syntax / struct constructors
1/2advanced features / comptime
68/85advanced features / stdlib
49/51advanced features / keyword
5/5advanced features / phantom types
96/124advanced features / obligation stress
10/22advanced features / obligation matrix
6/6The permutation matrix of Koru's phantom-obligation discharge system — the