~/talk

Decomposing Compose

Talkat Joker 2021 · 2021-10-25..10-28· [android, java]
links:none on file
slides:none on file

Shows how Jetpack Compose actually turns Kotlin UI functions into bytecode: the compiler plugin injects extra parameters (a Composer and an int), emits startRestartGroup/endRestartGroup calls and bitmask flags, and the runtime stores UI nodes in a gap buffer to skip or recompose only changed groups. Uses IntelliJ, javap -v -p and Kotlin compiler inspection to reproduce a button+counter example and explain why JaCoCo sees mysterious branches; investigation reproduces the issue but the JaCoCo ticket remains unfixed.

AI-written summary · about

  1. 0:00Introduction
  2. 4:26What is Compose
  3. 12:54Jacoco issues with Compose
  4. 21:55Compose components
  5. 25:04Compose bytecode changes
  6. 31:57Parameters and states in Compose
  7. 39:46Default parameters in Compose
  8. 44:18Lambdas and control flow in Compose
  9. 47:50Compose redraw optimization
  10. 51:01Bytecode analysis importance
  11. 53:53Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.