Kotlin 1.9 brings K2 compiler in Beta

JetBrains has introduced the discharge of Kotlin 1.9. This launch introduces many enhancements, an enormous one being the beta launch of the K2 compiler for the JVM. 

The K2 compiler is a brand new frontend compiler that’s deliberate to be launched in Kotlin 2.0 as steady. It’s a full rewrite of the unique compiler and provides a quicker and extra extensible structure, addresses technical debt from the previous compiler, fixes bugs, and lays the muse for future language extensions. 

JetBrains plans to make K2 appropriate with different compiler plugins in order that it will probably ship multiplatform performance. 

“Our goal is to realize full beta-quality help for multiplatform initiatives in K2 concurrently with the steady launch of Kotlin Multiplatform,” Sarah Haggarty, Kotlin technical author at JetBrains, wrote in a weblog submit

As well as, a lot of beforehand launched options have reached the steady designation on this launch. These embody the substitute of the enum class values perform and the ..< operator for open-ended ranges. 

New options have additionally been launched, akin to a new extension perform for creating guardian directories and a brand new perform for retrieving the contents of a regex group by identify. 

Different additions in Kotlin 1.9 embody a preview of a customized reminiscence allocator, library linkage, a preview of the Gradle configuration cache in Kotlin Multiplatform, and adjustments for Android goal help in Kotlin Multiplatform. 

Extra data is on the market within the weblog submit.

Create your individual consumer suggestions survey

Leave a Reply

Your email address will not be published. Required fields are marked *