~/talk

Behind the mirror, Kotlin Reflection

Talkat AndroidMakers by droidcon 2024 · on Thursday, 2024-04-25· at 16:15· [kotlin]
slides:none on file

Shows concrete handles not just theory: how Kotlin exposes KClass / KType / KFunction / KProperty at runtime, how suspend methods require passing a Continuation, and how the kotlin Metadata annotation is decoded via JVM name resolver and protobuf to reconstruct functions and properties. Demonstrates property delegates (by lazy, saveableMutableState) reading the property context, when Java reflection is still needed for private fields, and that reflection has measurable overhead but is often acceptable for delegation and testing.

AI-written summary · about

  1. 0:00Introduction and backstory
  2. 1:36Understanding Kotlin reflection
  3. 26:06Metadata and bytecode
  4. 28:29Annotation introspection
~/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.