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

Kotlin news and tips
Download Telegram
🎯 Kotlin Roadmap got updated

Changes since October 2020
Now you can also view it as an agile board.

Main highlights:
✉️ Sealed interfaces, JVM records, @JvmInline value classes: Beta in 1.4.30
🔄 The new Kotlin compiler is bootstrapped
☕️ New JVM Backend: Beta in 1.4.30, default in 1.5
🥇 Improvements to IDE experience
🐞 Polishing debugging experience: IDE, Multiplatform
⚙️ Binary backward compatibility (experimental) for Kotlin/Native since 1.4
🎓 Learning materials: new KMM app sample
📚 kotlinlang.org: mobile version, updated visuals for site and docs

Kudos to Egor Tolstoy for comprehensive Twitter thread on the updates!
📦 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