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
12
u/shai_almog Oct 17 '26
Well, before we came along no Java developer could build iOS apps. Now there are MANY iOS apps written in Java. That is objectively better. There are many developers who still work with Java across multiple platforms who would have abandoned it for flutter etc. We also enable Java native apps on Win32, Linux, Mac etc. Not possible before we came along and not at the size/RAM levels that we are offering. All 100% free and open source.
We're the only true full stack option for Java developers and we now are also taking this to the backend where Java can finally reach go levels of size/performance which even graal can't reach.
That's ignoring my personal contributions at Sun Microsystems and outside of it over the past 3 decades.