Compile-time Reflection in Kotlin
summary
The talk presents a practical solution for finding all Kotlin classes or functions annotated with a given annotation or having a given supertype. It compares Java reflection, ClassGraph and annotation processors, then explains a Kotlin compiler plugin approach (the Reflekt plugin) that moves indexing to compile-time so lookups at runtime are O(1), and walks through compiler internals and implementation challenges of such a plugin.
AI-written summary · about
