Hey everyone! :wave: Curious to hear your thoughts...
# compiler
r
Hey everyone! 👋 Curious to hear your thoughts on higher-level meta-programming in Kotlin beyond KSP or directly using the FIR compiler APIs for plugins. For more context, or if you're interested, check out this discussion: https://github.com/arrow-kt/arrow-meta/pull/1083#issuecomment-2676189086. We’ve prototyped annotation macros and other features, but even with FIR, getting them to work still requires some hacks. Is there interest in macros and similar features as libraries, or do you find KSP and FIR sufficient for your meta-programming needs?
j
I think Macros are a really good way to work with meta programming without having a extensive knowledge of how the compiler works. I would like they were possible without hacks tho, like in Swift. As KSP dropped entirely being a compiler plugin and that means it will not have FIR support, there is a huge opportunity for Arrow Meta/Reflection.