~/talk

Dekompiling

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [java]
slides:none on file

Walks through a concrete Kotlin example and the IDE tools used to inspect what actually runs: use Show Kotlin bytecode and the decompiler to see top‑level functions become static methods, extension receivers become the first parameter, and non‑null checks compile to Intrinsics.checkParameterIsNotNull calls. Demonstrates lambdas compiling to FunctionN interfaces, captured variables using an ObjectRef wrapper, the compiler folding stateless lambdas into a singleton, and how marking helpers inline removes allocations so the optimized bytecode matches hand‑written StringBuilder code.

AI-written summary · about

  1. 0:00Introduction to decompiling
  2. 3:27Kotlin to bytecode process
  3. 8:25Improving the multiply function
  4. 13:24Extracting loop logic
  5. 21:06Lambda optimizations
  6. 27:04String concatenation inefficiency
  7. 30:33Using buildString helper
  8. 35:27Standard library functions
  9. 37:13Further resources 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.