Kotlin 1.7.20 advances K2 compiler

Kotlin 1.7.20 advances K2 compiler

Update to the popular JetBrains programming language for JVM, web, and native development also introduces a new operator for expressing open-ended ranges.

Credit: Dreamstime

JetBrains has published a beta of Kotln 1.7.20, a planned upgrade to the programming language that introduces an operator for creating open-ended ranges and includes more work on the high-performing K2 compiler, which is still in development.

A new ..< operator previewed in the beta enables creation of open-ended ranges. While Kotlin already has the .. operator to express a range of values, the ..< operator acts like the until function and helps with defining the open-ended range. 

Research has shown that the new operator does a better job at expressing open-ended ranges and making it clear that the upper bound is not included.

For the K2 compiler, which is in an alpha state, work continues on stabilisation, with support added for plugins including all-open, no-arg, and jvm-abi.gen, as well as Parcelize and AtomicFU. The alpha version of the compiler works only with JVM projects and does not support Kotlin/JS, Kotlin/Native, or other multi-platform projects.

The Kotlin 1.7.20 beta was published July 31. Directions on getting started with Kotlin can be found at

Other capabilities in Kotlin 1.7.20 include the introduction of generic inline classes as an experimental feature for the JVM. With this capability, the underlying type of JVM classes can be a type parameter.

Meanwhile, the new Kotlin/Native memory manager is enabled by default, with this release bringing further stability and performance improvements. The memory manager moves to a beta stage and paves the way to promoting Kotlin Multiplatform Mobile, an SDK for iOS and Android development, to beta as well. 

Previously, the older memory manager made writing concurrent, asynchronous code complicated and prevented adoption of the SDK because of concurrency limitations. The new memory manager overcomes these limitations.

Also, standard library API changes include new types and operations introduced in the kotlin.ranges packages.

The beta of Kotlin 1.7.20 was preceded by the release of Kotlin 1.7.0 in June.

Follow Us

Join the newsletter!


Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags Kotlin


EDGE 2023

EDGE is the leading technology conference for business leaders in Australia and New Zealand, built on the foundations of collaboration, education and advancement.


ARN has celebrated gender diversity and recognised female excellence across the Australian tech channel since first launching WIICTA in 2012, acknowledging the achievements of a talented group of female front runners who have become influential figures across the local industry.

ARN Innovation Awards 2023

Innovation Awards is the market-leading awards program for celebrating ecosystem innovation and excellence across the technology sector in Australia.

Show Comments