klogic: miniKanren in Kotlin
summary
Klogic implements miniKanren on the JVM using Kotlin and ships as a usable library; it exposes strong typing of logic variables, disequality constraints and relational event observers and represents substitutions with persistent maps. Benchmarks run against fast-mini and OCaml/Racket show noticeably slower performance, attributed to JVM/static-typing overhead and missing optimizations (no set-var optimization yet). The codebase works functionally for examples and CLI tasks; planned work is optimization of disequality and substitution paths and a translator from core.logic code.
AI-written summary · about
chapters (6)
- 0:00Introduction and motivation
- 5:31Core features of KLogic
- 10:31Implementation details
- 15:28Challenges and limitations
- 20:33Benchmarks and future work
- 23:00Q&A and discussion








