Hi all,:blob-thinking-fast: I am bit confused with...
# kotlin-roadmap
a
Hi all,blob thinking fast I am bit confused with the term "*New complier*" does that mean new standalone runtime for kotlin or improving the old once? Really curious to know 🦠 kotl.in/roadmap
a
Jetbrains are actively working on a new unified compiler (now in alpha), and leaving the old compiler backends which were split in to kotlin/jvm, kotlin/js and native. This new compiler will be written in a manner that most of it will be shared with multiple backends and will reduce the hurdles in future updates and upgrades
🙏 3
b
The way it works is that the new compiler produces an "Intermediate Representation" (or IR) of the code (Abstract Syntax Tree). This code is platform independent and is then compiled to whatever you want (JVM, JS, Native…). If you want to see what the IR looks like: https://blog.bnorm.dev/writing-your-second-compiler-plugin-part-2 has some insights. These slides (in russian, but pictures and code may be enough can help as well).
a
Thanks