How I Learned to Stop Worrying and Love Value Semantics (in Kotlin) | Marat Akhin @Kotlin
How I Learned to Stop Worrying and Love Value Semantics (in Kotlin) | Marat Akhin  @Kotlin
Uploaded July 2026 | Updated November 2026, 7 hours ago
Recording brought to you by American Express. americanexpress.io/kotlin-jobs

Kotlin developers often juggle references and mutable objects, both in server-side and mobile applications. In many cases, adopting value semantics makes code easier to read, reason about, and test. This session explains what value semantics actually is, why it matters, and how to apply it effectively in Kotlin without being afraid of a "complicated mental model" or "too many allocations."

The talk starts by clearly defining value semantics in contrast to reference semantics: identity vs equality, mutation vs copying, and how those ideas map to familiar Kotlin features such as data classes and their copy() function, up-and-coming value classes, and (im)mutable collections. It outlines the benefits of value-centric design: simpler reasoning about state, safer concurrency, fewer "who mutated this?" bugs, -- and then focuses on the real trade-offs: "more" apparent copying, potential allocation overhead, and changes in API and data model design.

Code examples and simple benchmarks demonstrate how value-semantics-oriented designs can still perform well on the JVM, and how to lean on features like value classes to make them practical. Attendees leave with a concrete mental model of value semantics in Kotlin, a realistic view of its pros and cons, and practical guidelines for where adopting it pays off and where it might not.
How I Learned to Stop Worrying and Love Value Semantics (in Kotlin) | Marat AkhinAdvent of Code in Kotlin 2026. Day 1Reactive Performance Without the Reactive PainBuilding a macOS Screen Saver with Kotlin | Márton BraunWhats New in Kotlin 2.3Bootiful Kotlin | Josh LongA blocked thread vs a suspended coroutineBuild your Kotlin and Android apps with Buck2 | Sergei RybalkinHow long to learn Kotlin Coroutines? Are they easy to start, hard to master?Moments When Things Go Wrong | Aurimas LiutikasChapter 2: structured concurrency, cancellation and errorsReflection is Evil | Jeffrey van Gogh
Kotlin by JetBrains |

How I Learned to Stop Worrying and Love Value Semantics (in Kotlin) | Marat Akhin

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER