Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

kaikai

< >

kaikai is an open source programming language created in 2026 by Eduardo Díaz.

#1403on PLDB 0Years Old
Download source code:
git clone https://github.com/kaikailang-org/kaikai
Homepage · REPL · Source Code · Docs

A statically typed functional language with algebraic effects and handlers, Perceus reference counting and native compilation through LLVM, designed to be written with and by coding agents.


Example from the web:
effect Log { log(msg: String) : Unit } fn greet(name: String) : Unit / Log { Log.log("hello, #{name}") } fn main() { handle { greet("world") } with Log { log(msg, resume) -> { println("[INFO] #{msg}") resume(()) } } }
kaikai Keywords
if else match case when handle with where requires ensures fn type effect protocol impl for axiom const theory unit kind let var import use as pub priv extern test bench check assert and or not

Language features

Feature Supported Example Token
Pipes ✓ [1..100] | classify | label |> list.foreach(println)
Pattern Matching ✓ fn classify(n: Int) : Tag = match n { n if n % 15 == 0 -> Both n if n % 3 == 0 -> Fizz n if n % 5 == 0 -> Buzz n -> Other(n) }
Algebraic Data Type ✓ type Tag = Both | Fizz | Buzz | Other(Int)
Type Inference ✓ let answer = 42
Static Typing ✓ fn add(a: Int, b: Int) : Int = a + b
Functions ✓ fn add(a: Int, b: Int) : Int = a + b
Integers ✓ let answer = 42
Line Comments ✓ # A comment #
Comments ✓ # A comment
Strings ✓ "Hello, kaikai"
Print() Debugging ✓ println("Hello, kaikai") println
File Imports ✓ import collections.map as cmap
Semantic Indentation X

- Build the next great programming language · Add · Add Prompt · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v180.0.1