Preview for Kotlin 1.4 now available

Kotlin 1.4-M1 updates the standard library and adds new Kotlin/JS backend

Maika Möbus
Kotlin 1.4
© Shutterstock / Alexander Ruiz Acevedo

The first preview for the next major version Kotlin 1.4 has landed! In Kotlin 1.4-M1, we can take a peek at the new features, including a new backend for Kotlin/JS and evolutionary changes in the standard library. Additionally, the new type inference algorithm is now set as default.

The JVM programming language Kotlin has been released in version 1.4-M1 as the first preview for the upcoming major version 1.4. The details were announced on the Kotlin Blog.

SEE ALSO: Top Java technologies in 2020 – JVM programming languages, IDEs, tools & more

Kotlin 1.4 is set to arrive this spring. With a focus on quality and performance, it should add only small language changes. Let’s dive right into the preview and see what awaits us.

New features

Kotlin 1.4-M1 sets the new type inference algorithm that was introduced in v1.3 as default. Previously, it had to be activated by specifying a compiler option. And that’s not all: several issues have been fixed and can be followed on YouTrack.

Kotlin/JS has received a new backend. The new IR compiler backend should enable optimizations and new features. Though not yet enabled by default, the Kotlin team encourages developers to start using it. This is how to enable it in the file:


And that’s not all that has changed for Kotlin/JS: In the kotlin.js and multiplatform Gradle plugins, the new setting produceExecutable() is now available. It can be used inside the target block in the build.gradle.kts file and is needed to generate .js artifacts during the build as shown here:

kotlin {
    target {

        browser {}

Further updates in Kotlin 1.4-M1 include some updates to the standard library. For example, the deprecated mod operator has been removed, and conversions from floating types to Byte and Short have been deprecated.

As the blog post points out, backwards compatibility with Kotlin 1.3 is not given “in some corner cases.” A “compatibility guide” will be released to list such cases.

SEE ALSO: Introducing new JVM language Concurnas

Find out more about Kotlin 1.4-M1 in the blog post and the changelog.

Maika Möbus
Maika Möbus has been an editor for Software & Support Media since January 2019. She studied Sociology at Goethe University Frankfurt and Johannes Gutenberg University Mainz.

Inline Feedbacks
View all comments