~/talk

Generating Kotlin extension functions for Annotation Processing

Talkat GDG DevFest Poland 2018 in Wrocław · 2018-10-26..10-27· [kotlin]
links:none on file
slides:none on file

Proposes generating Kotlin extension functions as an extension bridge so generated annotation-processor code is accessible at compile time without Java reflection. Proof-of-concept libraries for Butter Knife and Dagger use a shipped endcap stub library (initially throwing) and KotlinPoet to emit a second, specific extension that replaces the stub so callers compile on first run. Works in demos but hits problems with static resolution and Java callers; a hybrid extension bridge adds reflection as a fallback.

AI-written summary · about

  1. 0:00Start
  2. 3:26Dependency Injection Framework
  3. 6:26The Reflection Bridge
  4. 8:27The Extension Bridge Approach
  5. 11:12Proof-of-Concept Libraries for the Tool Libraries
  6. 17:08Static Resolution
  7. 18:35Java Interoperability
  8. 20:26The Hybrid Extension Bridge
  9. 21:16Questions
~/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.