Explained: Compose Compiler and Runtime
summary
Explains how Jetpack Compose achieves context awareness and hot recomposition by a Kotlin compiler plugin that rewrites bytecode and by a runtime that stores UI state in a slot table (gap buffer). The compiler injects a composer parameter + bitmask int into composable methods, wraps restartable regions in restart groups with updateScope, and inlines remember to read/write slots. The presenter decompiles a simple counter to show the exact generated calls, and demonstrates that state objects trigger updateScope calls so recomposition and skipping work efficiently.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:34What is a composable
- 3:19Composable superpowers
- 8:33Compiler plugin role
- 11:04How superpowers work
- 14:55Runtime and slot table
- 21:16How remember works
- 25:49Key takeaways
- 27:38Q&A and closing
related talks
28mA Hitchhiker's Guide to Compose Compiler: Composers, Compiler Plugins, and Snapshots
29mA Hitchhiker's Guide to Compose Compiler: Composers, Compiler Plugins, and Snapshots
39mA Hitchhiker's Guide to Compose Compiler: Composers, Compiler Plugins, and Snapshots
27mInside Jetpack Compose
01h 00mJetpack Compose - Next Gen Kotlin UI Toolkit for Android
32mJetpack Compose — Next Gen Kotlin UI Toolkit for Android
45mCompiler plugins: modifying and analyzing Compose
37mBuilding a Kotlin Compiler Plugin for Compose Insights
