This started from a discussion in
$ time -p kotlinc hello.kt real 11.54 user 14.12 sys 0.66
For comparison, rustc compiles hello world in 0.2 secs.
As long as you’re using gradle, an IDE running on JVM etc this is ok. But in order to compete with rust and go, I think kotlin needs to have a faster startup time, so one can use it from Makefiles or simple command line usage.
I’m trying to understand what the limitations here are. Why is kotlinc a “huge JVM program”?
My quick grep:
~/src/kotlin/compiler$ ack -h import.*java | sort | uniq -c | sort -rn | head -40 | pastebinit https://paste.ubuntu.com/p/y4CvKsTZVx/
tells me that all of these java.util dependencies can be replaced with calls to kotlin stdlib.
So what are some of the impediments to building a native compiler with a quicker startup time?