r/java • u/FrankCodeWriter • Oct 17 '26
Killing Reflection at Build Time: Avro, Codename One and Java Code Generation (Foojay Podcast #103)
https://www.youtube.com/watch?v=smHzWWNOyMUIn this episode of the Foojay Podcast, Dmitry Moskalyuk and Shai Almog compare how they cut runtime reflection out of very different projects.
Dmitry runs a backend model layer that takes JSON, XML, YAML and TOML and converts it all to Avro. His choice between Jackson and kotlinx.serialization came down to where the reflection cost actually hides. Shai works on the Codename One code generation pipeline, which aims for no reflection, no service loader and no Class.forName.
Topics include Jackson Blackbird versus kotlinx.serialization, the missing unknown-fields feature that sent one team back to Jackson, generated code (Lombok, Manifold, jOOQ), what Records and Project Leyden change, and build time cost versus runtime cost.
Available in your favorite podcast app and on YouTube:
YouTube: https://www.youtube.com/watch?v=smHzWWNOyMU
Disclosure: I host the Foojay Podcast.
View all comments
Show parent comment
1
u/shai_almog Oct 23 '26
Mention the technology and I'll respond properly, but sure...
There are great tools like TeaVM that we used in the past, that let you do some parts of the stack. We're the only ones that do everything in the full meaning of the word in a single project:
We're also the only solution that packages all of the pieces together into a single package with the APIs you need for pretty much everything
No other solution for Java comes close. Some do parts of the stack and you can mix and match to get some of the way or generate a webapp which isn't exactly full stack Java because the web finishes the rest of the way.
Yes, I'm defining what "true full stack" means but notice I didn't say "full stack" because for that you do have some solutions.