Correct me if I am wrong: the Kotlin compiler was originally written in Java. Meaning, a Java program
J
was written to parse the AST of a KT file(s) (the first Kotlin compiler, written in Java) and produce an executable/binary. Program
J
(the binary that Java produced from source code
J
) was then used to compile a Kotlin program
K
that itself could read KT files (the second Kotlin compiler, written in Kotlin) and produce a binary. The binary produced from
K
was used to compile an iteratively better version
K1
, which was used to compile
K2
, etc.
Somewhat based on
this.
Does the current compiler rely on the JVM to run?