Updated
Updated · InfoWorld · Jul 28
JetBrains Releases Kotlin 2.4.20-Beta2 With Coroutine Stack Trace Recovery
Updated
Updated · InfoWorld · Jul 28

JetBrains Releases Kotlin 2.4.20-Beta2 With Coroutine Stack Trace Recovery

2 articles · Updated · InfoWorld · Jul 28

Summary

  • Kotlin 2.4.20-Beta2 adds experimental coroutine stack trace recovery, letting developers recreate exceptions without a kotlinx.coroutines dependency and making rethrown coroutine errors easier to debug.
  • The July 2 beta also expands multiplatform support: Kotlin/Wasm now supports the Wasmtime runtime and aligns companion-object initialization with JVM behavior, fixing earlier cross-platform inconsistencies.
  • Swift export gains cross-language inheritance for reverse-import patterns, while Kotlin/JS adds an experimental browser-testing DSL and can export suspend lambdas as native JavaScript async functions.
  • Four experimental collection checks—.allDistinct(), .allDistinctBy(), .allEqual(), and .allEqualBy()—aim to replace inefficient equality and uniqueness workarounds.
  • JetBrains also shipped the first experimental Kotlin compiler native image, a drop-in kotlinc replacement designed for faster startup and higher performance.

Insights

Will JetBrains' experimental native compiler finally solve Kotlin's startup lag, or introduce new performance bottlenecks?
Why did Kotlin drastically alter Wasm initialization to mimic the JVM, and what hidden risks does this pose?
Can Kotlin's bold cross-language inheritance truly bridge the gap with Swift, or will it fracture multiplatform architecture?