The Koru Book
Learn Koru through working examples. Every lesson is a real test from the compiler's regression suite.
Tests: 1718
✓ 1531 passing
✗ 119 failing
○ 65 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
38/40core language / literals
7/8core language / type system
10/16core language / control flow
31/32module system / imports
21/27module system / comptime mirror
47/47module system / namespaces
2/2module system / packages
10/10module system / file layout
18/19parser
11/11compiler features / parser
166/177compiler features / compilation
15/19compiler features / flow checker
9/12compiler features / codegen
1/1compiler features / emitter
9/9compiler features / std library
3/3compiler features / template engine
9/9compiler features / subflow
1/1syntax / struct constructors
2/2advanced features / comptime
77/93advanced features / stdlib
50/52advanced features / keyword
5/5advanced features / phantom types
109/130advanced features / obligation stress
22/25advanced features / obligation matrix
6/6The permutation matrix of Koru's phantom-obligation discharge system — the