https://kotlinlang.org logo
Title
d

dave08

05/24/2022, 1:06 PM
By the way, are there any plans to use KSP to somehow avoid using reflection at runtime?
s

sam

05/30/2022, 6:42 PM
In theory using a compiler plugin could mean hoplite would work on all platforms, but the reality is that the documentation for compiler plugins suck, it would take ages to figure it out, and right now reflection isn't causing any issues.
d

dave08

06/01/2022, 10:49 AM
Yeah, I guess it would be quite a project in that case... I was just thinking about this since now there's enough good libraries to provide most of Micronaut's features in Ktor, one of them was it's config management that I use hoplite to replace... but Micronaut still has the advantage that it avoids reflection... and also, now that Ktor supports compiling to native code, hoplite would probably need to be dropped when native is a requirement.