The Daily Kotlin
1.61K subscribers
53 photos
1 video
1 file
493 links
Kotlin Chats in Telegram:
RU https://kug.community/
EN https://kug.community/en

Kotlin news and tips
Download Telegram
📦 Kotlin 1.4.30

JVM IR backend in Beta
Inline value classes in Beta
Experimental JVM records support
Sealed interfaces preview

What's new in Kotlin 1.4.30 (old doc link)
Changelog
Try it: JVM IR Backend

In gradle:

compileKotlin {
kotlinOptions.useIR = true
}

// Kotlin DSL
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.useIR = true


In maven:

<configuration>
<args>
<arg>-Xuse-ir</arg>
</args>
</configuration>


How to check that code compilled with IR:

> Take a look at the value of xi in the @Metadata annotation on any compiled class file. With 1.4.30, if it's 48 or 50, it means it's compiled with JVM IR. :) More details

Submit (search first!) issues in Youtrack or #jvm-ir-backend-feedback slack channel
Kotlin is still growing on Stack Overflow Trends
📦 Kotlin 1.5.0-M1

Inline value classes, sealed interfaces and JVM records
JVM IR backend by default
💪 Huge list of compiler fixes
🤔 Deprecate JVM target version 1.6

Changelog
📦 kotlinx.coroutines 1.4.3 and 1.4.3-native-mt

- CoroutineStart.UNDISPATCHED promoted to stable API
- Better support of ThreadContextElement and its integrations
- Proper support of onUndeliveredElement in unlimited channels
- Various performance improvements and bug fixes

Changelog