~/talk

Kotlin Backstage

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

Deep dive into Kotlin bytecode shows concrete costs and fixes: Kotlin generates extra methods and static constructors (delegates, companion objects, lambdas), boxing and intermediate collections inflate method count, and SAM/bridge methods add several methods per lambda. Practical reductions include @JvmField, @JvmStatic, careful use of Sequence versus collections, and avoiding private method references. Examples reveal that data class copy uses a bitmask and that coroutine suspend compiles to an integer state machine rather than magic. Tools: inspect bytecode with a bytecode viewer.

AI-written summary · about

  1. 0:00Start
  2. 2:59Method Scoping
  3. 5:30Null Pointer Exceptions
  4. 7:07Extension Functions
  5. 9:29Collections
  6. 17:23How Can We Reduce the Method Count Even Further
  7. 20:34Object Destructuring
  8. 21:39Copy Constructor
  9. 24:10Statics
  10. 26:49Companion Object
  11. 28:04Fragments
  12. 33:13Async
~/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.