kc
kc is a Kotlin compiler for the JVM written in Go. The submitter describes it as a prototype reported to be about 10x faster than kotlinc 2.4.21 with roughly 10x lower memory use, currently JVM-only with no Gradle plugin or IDE support, no warnings, and passing 95% of kotlinc's box tests.
What it addresses
Most Kotlin tools, like linters, KSP and the language server, are built on kotlinc's frontend, so they're only as fast as it is.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
kc
kc is a Kotlin compiler for the JVM written in Go. The submitter describes it as a prototype reported to be about 10x faster than kotlinc 2.4.21 with roughly 10x lower memory use, currently JVM-only with no Gradle plugin or IDE support, no warnings, and passing 95% of kotlinc's box tests.
Problem: Most Kotlin tools, like linters, KSP and the language server, are built on kotlinc's frontend, so they're only as fast as it is.
Posted by @barteo · Original source ↗
Story title · @barteo · · Source ↗
Show HN: A Kotlin compiler written in Go, 10x faster than kotlinc
Submitted URL · @barteo · · Source ↗
https://github.com/barteo/kotlin-compiler-go
Source text · @barteo · · Source ↗
Hi HN, kc is a Kotlin compiler for the JVM, written in Go.
Source text · @barteo · · Source ↗
most Kotlin tools, like linters, KSP and the language server, are built on kotlinc's frontend, so they're only as fast as it is.
Source text · @barteo · · Source ↗
I measured big gains in both speed and memory against kotlinc 2.4.21, running warm as in the Gradle daemon
Source text · @barteo · · Source ↗
It's a prototype, but I plan to keep working on it until it's useful for a wide range of real projects.
Source text · @barteo · · Source ↗
Benchmark details and how to repeat them: https://github.com/barteo/kotlin-compiler-go/blob/main/docs/benchmark.md