The Koru Book
Learn Koru through working examples. Every lesson is a real test from the compiler's regression suite.
Tests: 1895
✓ 1725 passing
✗ 3 failing
○ 153 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
23/25core language / events flows
38/40core language / literals
7/8core language / type system
3/4core language / control flow
31/32module system / imports
26/32module system / comptime mirror
48/48module system / namespaces
2/2module system / packages
10/11module system / file layout
27/28parser
12/12compiler features / parser
195/204compiler features / compilation
23/27compiler features / flow checker
14/17compiler features / codegen
3/3compiler features / emitter
9/9compiler features / std library
3/3compiler features / template engine
9/9compiler features / subflow
1/1syntax / struct constructors
2/2advanced features / comptime
85/99advanced features / stdlib
50/52advanced features / keyword
5/5advanced features / phantom types
129/137advanced features / obligation stress
22/25advanced features / obligation matrix
13/13The permutation matrix of Koru's phantom-obligation discharge system — the