~/talk

Understand Every Line of Your Codebase

Talkat KotlinConf 2017 · 2017-11-02..11-03· [kotlin, compilers-and-language-design]
slides:none on file

Shows how every Kotlin statement compiles to JVM class files and Android DEX, using IntelliJ decompiler and ClassyShark to inspect real bytecode. Demonstrates concrete translations: data classes generate componentN/copy/equals/hashCode, extension functions become static helpers, nullability inserts runtime checks, inline lambdas inline code while non-inline create Function1 objects. Calls out the concrete costs: roughly 5–6k extra methods and ~1MB of Kotlin runtime in an APK, and explains how to spot and fix unexpected bytecode.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Overview
  3. 1:43Intro to Java
  4. 5:00How Kotlin fits in our Java pipeline
  5. 7:10How to get from Kotlin to Java
  6. 11:15User Class
  7. 13:07Data Classes
  8. 13:25New Part
  9. 13:35Components
  10. 14:15Synthetic Bridge
  11. 14:49Null Ability
  12. 16:52Extension Functions
  13. 18:03Static Utility Classes
  14. 19:17lambdas
  15. 20:18inline function
  16. 21:04call function
  17. 21:45inline functions
  18. 22:14not in line
  19. 22:37byte code
  20. 23:22final class
  21. 24:21static instance
  22. 25:51Kotlin costs
  23. 26:33Run time
  24. 26:53Summary
  25. 27:45Questions
~/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.