~/talk

Writing Kotlin Compiler Plugins with Arrow Meta

Talkat droidcon APAC 2020 · 2020-12-14..12-15· [kotlin]
speakerdeck:heyitsmohit
slides:none on file

Arrow Meta provides a functional API that hooks into parsing (AST), analysis (type checking), and IR phases to build real compiler and IDE plugins. Examples show a Hello World plugin that injects a greeting at parse time, a debug-log annotation transformer that wraps a function to log arguments and runtime (example run shows ~36 ms), and a meta testing module used with compilerTest and assertThis to verify generated code. It also supports generating files via transform.newSources and IDE icons via line marker provider.

AI-written summary · about

  1. 0:00Introduction to Arrow Meta
  2. 1:48How Kotlin Compiler Works
  3. 5:19Arrow Meta Plugin Hooks
  4. 7:27Hello World Plugin Example
  5. 14:31Debug Log Plugin Example
  6. 24:11Testing Compiler Plugins
  7. 28:21Combining Transformations
  8. 34:24Custom Type Checkers
  9. 35:31Writing IDE Plugins
  10. 38:48Q&A and Resources
~/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.