Kotlin v0 kernel
Compile to native
A closed Double/Boolean kernel compiled to native via the shared ZTIR + LLVM spine — no kotlinc, Gradle, or JVM on the compile path.
182×
faster than Gradle
140×
smaller binary
Numbers
Real, reproducible benchmarks. Run them yourself.
Kotlin: zlow native + zig cc vs. ./gradlew linkReleaseExecutable
Kotlin/Native 2.1.20, Gradle 8.13, cold daemon. 53/53 fixtures agree with pinned Kotlin/Native (8 kernels compared by computed value, 45 out-of-profile constructs refused by name) — tools/compare-kotlin-native.sh.
API
Every command below is real: run it against the repo yourself.
zlow native . # zlow.json in the current dir
zlow native src/main.kt --emit-llvm out.llzlow.json: { "language": "kotlin", "entry": "src/main.kt" }. Accepted: Double/Boolean top-level fun,val/var, if/while, arithmetic, calls between functions in the unit. Everything else is a named refusal.
zig buildNo silent wrongness: a construct zlow cannot honour is a named, located error with nothing written — never output that merely looks right. Full accepted-subset and refusal table: native-profile-v0.md.