-
Multi platform support from scratch -
Compilation speed doubled -
Enhanced code analysis
-
What’s new in Kotlin 2.0.0 -
K2 compiler migration guide -
The Road to the K2 Compiler -
K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects -
Android Support for Kotlin Multiplatform to Share Business Logic Across Mobile, Web, Server, and Desktop Platforms -
Jetpack Compose compiler moving to the Kotlin repository
-
Full update description: https://kotlinlang.org/docs/whatsnew20.html -
Download address: https://github.com/JetBrains/kotlin/releases/tag/v2.0.0
-
K2 compiler : -
stable : It is used for all platforms by default, and the performance is significantly improved.
-
-
IDE support : -
The new Kotlin plug-in is bundled in IntelliJ IDEA and Android Studio.
-
-
Gradle integration : -
New DSL : Experimental compiler option configuration for multi platform projects. -
Compose plug-in : Enhance support for Jetpack Compose.
-
-
Lambda function : -
invokedynamic : Generates smaller binaries, but lambda is not serializable.
-
-
Kotlinx metadata jvm library : -
Stable version, which provides APIs for reading and modifying the metadata of JVM binary files.
-
-
Kotlin/Native enhancements : -
GC monitoring : Improve garbage collection performance monitoring on the Apple platform. -
Method conflict resolution : Improve conflict handling with Objective-C method.
-
-
Kotlin/Wasm : -
Support named exports and unsigned primitive types @JsExport Function.
-
-
Intelligent type conversion : -
improvement if 、 when and while Block to reduce manual type assertion.
-