K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects
Simple as downloading and running radle project and pointing it to project folder
Simple as downloading and running radle project and pointing it to project folder
🤮1
Kotlin 2.0.20-RC Released
The Kotlin 2.0.20-RC brings a range of new features, enhancements, and deprecations as Kotlin continues to evolve toward the full 2.0 release. Key updates include:
- Data Class Copy Function Visibility: The .copy() function in data classes will now have the same visibility as the constructor, with migration warnings introduced.
- Context Receivers: Gradual deprecation of context receivers, which will be replaced by context parameters in future releases.
- Kotlin Multiplatform: Static accessors for source sets are now available, improving IDE experience and usability.
- Kotlin/Native: Experimental support for concurrent marking in the garbage collector, aimed at reducing GC pause times.
- Kotlin/Wasm: Migration from default to named exports, with warnings now upgraded to errors.
- Compose Compiler: Various improvements, including the default enablement of strong skipping mode for better performance and stability.
GitHub Changelog
Kotlinlang.org: What's new in Kotlin 2.0.20-RC
The Kotlin 2.0.20-RC brings a range of new features, enhancements, and deprecations as Kotlin continues to evolve toward the full 2.0 release. Key updates include:
- Data Class Copy Function Visibility: The .copy() function in data classes will now have the same visibility as the constructor, with migration warnings introduced.
- Context Receivers: Gradual deprecation of context receivers, which will be replaced by context parameters in future releases.
- Kotlin Multiplatform: Static accessors for source sets are now available, improving IDE experience and usability.
- Kotlin/Native: Experimental support for concurrent marking in the garbage collector, aimed at reducing GC pause times.
- Kotlin/Wasm: Migration from default to named exports, with warnings now upgraded to errors.
- Compose Compiler: Various improvements, including the default enablement of strong skipping mode for better performance and stability.
GitHub Changelog
Kotlinlang.org: What's new in Kotlin 2.0.20-RC
GitHub
Release Kotlin 2.0.20-RC · JetBrains/kotlin
2.0.20-RC
Analysis. API
KT-69630 KAPT User project builds with KAPT4 enabled fail with Metaspace overflow
Backend. Wasm
KT-69876 K2 Compile exception: Only IrBlockBody together with kotlinx seri...
Analysis. API
KT-69630 KAPT User project builds with KAPT4 enabled fail with Metaspace overflow
Backend. Wasm
KT-69876 K2 Compile exception: Only IrBlockBody together with kotlinx seri...
🔥5🤮1
Context Receivers → Context Parameters migration plan:
Kotlin 2.0.20 – new warning in build introduced:
Kotlin 2.1.0 – Disable warning globally https://youtrack.jetbrains.com/issue/KT-8087
Kotlin 2.1.20 – Removing Context Receivers from compiler
Kotlin 2.2.0 – Context Parameters introduced behind flag https://youtrack.jetbrains.com/issue/KT-67119
Plan for people heavily using Context Receivers, and don’t want to refactor out them completely:
1. Stay on Kotlin 2.0.1x until 2.1.0 released
2. Migrate to 2.1.0 up to 2.1.1x
2. Migrate to 2.2.0
Kotlin 2.0.20 – new warning in build introduced:
CONTEXT_RECEIVERS_DEPRECATED
, with -Werror
we have to manually suppress it for each fileKotlin 2.1.0 – Disable warning globally https://youtrack.jetbrains.com/issue/KT-8087
freeCompilerArgs.add("-Xsuppress-warning=CONTEXT_RECEIVERS_DEPRECATED”)
Kotlin 2.1.20 – Removing Context Receivers from compiler
Kotlin 2.2.0 – Context Parameters introduced behind flag https://youtrack.jetbrains.com/issue/KT-67119
Plan for people heavily using Context Receivers, and don’t want to refactor out them completely:
1. Stay on Kotlin 2.0.1x until 2.1.0 released
2. Migrate to 2.1.0 up to 2.1.1x
2. Migrate to 2.2.0
YouTrack
Make it possible to suppress warnings globally in compiler (via command-line option) : KT-8087
It should be possible to suppress several warnings. It may support regexps, e.g. suppress=UNUSED_.+, suppress=UNUSED_PARAMETER|PLATFORM_CLASS_MAPPED_TO_KOTLIN…
100👍14🤮1
Kotlin 2.0.20-RC2 Released with a bunch of fixes, try now!
GitHub
Release Kotlin 2.0.20-RC2 · JetBrains/kotlin
Changelog
Backend. Wasm
KT-70591 To much sources that don't exist inside SourceMap file
Compiler
KT-70186 Kotlin 2.0.20-Beta2: Unexpected number of type arguments: 0
KT-69835 K2 / Native: ko...
Backend. Wasm
KT-70591 To much sources that don't exist inside SourceMap file
Compiler
KT-70186 Kotlin 2.0.20-Beta2: Unexpected number of type arguments: 0
KT-69835 K2 / Native: ko...
3🔥2🎉2🤮1
Kotlin 2.0.20 Released!
• Data class copy function now matches constructor visibility.
• Static accessors for multiplatform source sets are introduced.
• Concurrent marking in Kotlin/Native’s GC is now possible.
• The @ExperimentalWasmDsl annotation location changed.
• Gradle 8.6–8.8 supported.
• Option to share JVM artifacts between projects as class files
• Compose compiler update.
• UUID support in the common Kotlin standard library.
Details
GitHub Changelog
• Data class copy function now matches constructor visibility.
• Static accessors for multiplatform source sets are introduced.
• Concurrent marking in Kotlin/Native’s GC is now possible.
• The @ExperimentalWasmDsl annotation location changed.
• Gradle 8.6–8.8 supported.
• Option to share JVM artifacts between projects as class files
• Compose compiler update.
• UUID support in the common Kotlin standard library.
Details
GitHub Changelog
Kotlin Help
What's new in Kotlin 2.0.20 | Kotlin
52👍11🤮1