What's New in Java 19: The end of Kotlin?
summary
Claim: Java rapidly adds real features that overlap Kotlin but with different tradeoffs. Examples and timelines are given: records (Java 14–16 preview to stable) mirror data classes but use invokedynamic for smaller bytecode, nested functions get hoisted to static helpers, and multi line strings plus optimized invokedynamic string concat optimization reduce allocations. Project Loom brings virtual threads (Loom timeline uncertain) that convert blocking APIs to suspendable behavior. Kotlin keeps advantages: nullability in the type system, multiplatform and IDE migration paths, and the copy/destructuring ergonomics.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:27History of Java
- 3:59Type inference
- 10:37Multiline strings
- 22:39Sealing
- 25:56Smartcast
- 29:07Deconstruct
- 30:31Deconstruct bytecode
- 35:49Second constructor
- 36:53Pattern matching
- 37:44When
- 39:24Scope
- 40:13Sealed Hierarchies
- 44:34Kotlin vs Java
- 45:07Coroutines
- 46:40The end of Kotlin
- 47:21Kotlin is evolving
related talks
40mA Look Into the Future
50mAsync Showdown: Java Virtual Threads vs. Kotlin Coroutines
30mWhat can Kotlin do for me?
49mWhy Kotlin is the better Java and how you can start using it
01h 13mInterview and Q&A: The Evolution of Java and Kotlin — What Awaits Us?
49mAn Introduction to Kotlin
50mKotlin is as awesome as you've heard. Here's why.
59mKotlin vs Scala
