It’s weird to see complaints about code generation causing a too big code base at compile time when code generation is exactly what a compiler will do behind the scenes for generics.
I actually quite like the Haskell approach of having a "Specialisation" annotation. I believe Scala has this too.