~/talk

Kotlin Under the Covers

Talkat Android Makers 2019 · on Tuesday, 2019-04-23· [kotlin]
slides:none on file

Kotlin features hide real work: the bytecode and javap and Studio bytecode viewer show boxing, generated helpers and default-parameter bitmasks; the Android memory profiler shows 9,873 Integer allocations for a 10,000-loop nullable-int example; enum switches produce compiler-generated mapping arrays per switch; lazy and delegated properties allocate KProperty arrays and synchronization, inline classes avoid types but sometimes box on equality, unsigneds box for printing, ranges/step create iterator objects, and coroutines compile to an explicit state machine.

AI-written summary · about

  1. 0:00Introduction to Kotlin
  2. 2:30Analyzing bytecode
  3. 6:12Memory profiling tools
  4. 10:20Enum performance overhead
  5. 14:21Lazy property analysis
  6. 18:45Lateinit properties
  7. 19:57Unsigned number implementation
  8. 23:22Loops and range overhead
  9. 25:50Inline classes
  10. 29:41SAM conversion gotchas
  11. 31:23Extension functions
  12. 33:34Default parameters
  13. 35:45Coroutines and conclusion
~/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.