~/talk

On the Applicability of Annotation-Based Source Code Modification in Kotlin (Work...

Talkat MPLR 2023 · on Sunday, 2023-10-22· [kotlin]
links:none on file
slides:none on file

Compares four concrete approaches—KAPT (legacy), KSP, custom compiler plugins, and load‑time agents—and provides proof‑of‑concept implementations on GitHub: a compiler plugin that injects IR nodes into function bodies and a Java agent that rewrites bytecode. Finds KSP: code generation only, no expression‑level analysis, about twice as fast as KAPT and multiplatform; compiler plugin: IR‑level modification across targets but very complex and poorly documented; KAPT is slow/maintenance mode; agents work on JVM only and increase startup time.

AI-written summary · about

  1. 0:00Annotation-based code modification
  2. 2:09KSP for annotation processing
  3. 4:37Compiler plugins for code
  4. 7:52Load-time bytecode approaches
  5. 9:17Annotation processing comparison
  6. 10:40Key takeaways and future work
  7. 11:45Q&A
~/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.