Uploaded July 2026 | Updated November 2026, 3 hours ago
Recording brought to you by American Express. americanexpress.io/kotlin-jobs
Many objects are meant to be used only "locally", in the sense that they should not escape from the current function into the "global" world. For example, buildList is given a function that is meant to be used solely by buildList, and buildList calls that function with a MutableList that is meant to be used only by that function. Kotlin's experimental CallsInPlace contract can enforce the former, but currently there is nothing for the latter.
In this talk, I will present a preliminary design we have developed for adding enforceable "locality" to Kotlin as a lightweight form of limited-lifetime objects. With it, library designers can let users write blocks that are guaranteed to have only temporary access to privileged objects. Those objects can be mutable views for building collections, or they can be capabilities indicating that code is executing within the critical section of some lock. Similarly, developers can use locality to prevent accidentally leaking temporary internal objects.
Beyond preventing bugs, locality enables more advanced forms of control. Because local objects cannot outlive the function call that created them, they can safely break to or return from that function, in addition to accessing the current state of its local variables. They can even suspend computation when called within a suspendable function. So locality provides a surprisingly lightweight form of (algebraic) effect polymorphism, with which one can build systems that can work in both synchronous and asynchronous settings.
Besides new functionality, I will cover how this design integrates into the existing Kotlin ecosystem. The design has an "opt-in" nature that lets libraries adopt it as the need arises. At the same time, it is highly backwards compatible, so such adoption can be guaranteed to not break existing users (except where intended to disallow misusages of the library). And while some of the design enables platform-specific optimizations, like stack-allocating objects in Kotlin/Native, overall it can integrate well with existing interopability across platforms. Finally, type-outference enables this new functionality to be checked reliably and efficiently.
Recording brought to you by American Express. americanexpress.io/kotlin-jobs
Many objects are meant to be used only "locally", in the sense that they should not escape from the current function into the "global" world. For example, buildList is given a function that is meant to be used solely by buildList, and buildList calls that function with a MutableList that is meant to be used only by that function. Kotlin's experimental CallsInPlace contract can enforce the former, but currently there is nothing for the latter.
In this talk, I will present a preliminary design we have developed for adding enforceable "locality" to Kotlin as a lightweight form of limited-lifetime objects. With it, library designers can let users write blocks that are guaranteed to have only temporary access to privileged objects. Those objects can be mutable views for building collections, or they can be capabilities indicating that code is executing within the critical section of some lock. Similarly, developers can use locality to prevent accidentally leaking temporary internal objects.
Beyond preventing bugs, locality enables more advanced forms of control. Because local objects cannot outlive the function call that created them, they can safely break to or return from that function, in addition to accessing the current state of its local variables. They can even suspend computation when called within a suspendable function. So locality provides a surprisingly lightweight form of (algebraic) effect polymorphism, with which one can build systems that can work in both synchronous and asynchronous settings.
Besides new functionality, I will cover how this design integrates into the existing Kotlin ecosystem. The design has an "opt-in" nature that lets libraries adopt it as the need arises. At the same time, it is highly backwards compatible, so such adoption can be guaranteed to not break existing users (except where intended to disallow misusages of the library). And while some of the design enables platform-specific optimizations, like stack-allocating objects in Kotlin/Native, overall it can integrate well with existing interopability across platforms. Finally, type-outference enables this new functionality to be checked reliably and efficiently.



![Engineering High Performance Multiplatform Graphic Rendering with Jetpack Compose | Rahul and Tunji
Recording brought to you by American Express. https://americanexpress.io/kotlin-jobs
Save 24% on KotlinConf 2027 tickets! Join us in Kraków, Poland, April 22–23 → https://kotl.in/vum6t5
Standard animation libraries often force a compromise. GIFs consume bandwidth, Lottie struggles with complex rasters, and video formats lack frame-perfect alpha transparency. Furthermore, replicating complex text effects using these vector or raster formats is inefficient and bloated and can result in glyph shaping issues in different languages.
To drive user engagement and measurable business impact, we need tools that are easy to deploy and cost effective to maintain. In this talk, well cover two explorations: a custom high-fidelity animated image sequence engine for complex visuals, and TextWave—a specialized engine for animating glyphs that offers superior efficiency and control over binary size compared to standard alternatives.
Coordinating these components to run at high FPS across 3 platforms is a massive engineering challenge. Does each platform implement it natively, or is there room for a multiplatform implementation?
In this session, we will share the architecture of building these advanced rendering engines in both native and multiplatform scenarios. We will move beyond basic UI to discuss:
* Rendering the custom graphics on each platform natively.
* Rendering the custom graphics on each platform with Compose multiplatform with Skia including working with the Kotlin Native memory model and hardware bitmaps including before-and-after profiler analysis.
* The Rendering Pipeline: How we architected a decoding pipeline that manages byte[] ownership to prevent copies and massive memory pressure—specifically addressing the heap growth challenges in Kotlin Native when loading compressed assets.
* Coordinating text animations with raster sequences, and the measurable impact this performance boost had on bookings.
* Interesting nuances of byte array management accross JS, Java, and Native environments.
Join us for a deep technical dive into the state of cross-platform graphics, featuring real-world benchmarks, profiler screenshots, and the lessons learned from rendering pixels at scale. Engineering High Performance Multiplatform Graphic Rendering with Jetpack Compose | Rahul and Tunji](https://i.ytimg.com/vi/6kqNfJuELyg/mqdefault.jpg)






