Learn Koru
Learn Koru through working examples. Every lesson is a real test from the compiler's regression suite.
Tests: 2614
✓ 2443 passing
✗ 3 failing
○ 154 planned
A hand-written book and a formal spec are in progress as Koru stabilizes. Until they land,
this suite — real compiler regression tests — is the reference. Browse by example below.
core language / basic syntax
24/25core language / events flows
41/44core language / literals
7/9core language / type system
3/4core language / control flow
38/39module system / imports
28/34module system / comptime mirror
61/61module system / namespaces
2/2module system / packages
10/11module system / file layout
33/34parser
18/18compiler features / parser
290/299compiler features / compilation
41/45compiler features / flow checker
22/25compiler features / codegen
9/9compiler features / emitter
23/23compiler features / std library
5/5compiler features / template engine
9/9compiler features / subflow
1/1syntax / struct constructors
2/2advanced features / comptime
105/119advanced features / stdlib
71/75advanced features / keyword
5/5advanced features / phantom types
145/151advanced features / obligation stress
23/26advanced features / obligation matrix
13/13The permutation matrix of Koru's phantom-obligation discharge system — the