3 ms·
> I think it would be more interesting to expose how the bytecode becomes JS. There's no bytecode emitted -- Kotlin is unique among JVM languages in that it ac
by gavinray 3y ago
> I think it would be more interesting to expose how the bytecode becomes JS.
There's no bytecode emitted -- Kotlin is unique among JVM languages in that it acts more like a frontend, similar to LLVM or GCC.
The Kotlin code is translated from an IR/AST into JS directly. The JS is one of many target languages for the Kotlin compiler.
Kotlin Source Code
|
Kotlin Compiler
|
IR
/ / \ \
JVM WASM Native JS
- lmm 3y ago> Kotlin is unique among JVM languages in that it acts more like a frontend, similar to LLVM or GCC. "Unique among JVM languages" lol. Like most of the good parts of Kotlin, this was actually copied from Scala.
- MrBuddyCasino 3y agoScala has good parts?