News for hackers. Stuff that matters.
Re:Minecraft removing obfuscation in Java Edition by throwaway2037 on Thursday October 30, 2025 @10:23AM (#45760331)

    > C++ uses reified generics
I was a C++ programmer for many years, but I never heard this claim. I asked Google AI and it disagees.

    > does c++ have reified generics?

    > C++ templates do not provide reified generics in the same sense as languages like C# or Java (to a limited extent). Reified generics mean that the type information of generic parameters is available and accessible at runtime.
Re:Minecraft removing obfuscation in Java Edition by dcow on Thursday October 30, 2025 @10:48AM (#45760633)
Interesting I’d never picked up on this pedantic subtlety. I too thought reified meant what you could do at the call site not what you could do at runtime. Was my understanding wrong, or is Gemini hallucinating.

In any event, you have to use weird (I think “unsafe”) reflection tricks to get the type info back at runtime in Java. To the point where it makes you think it’s not supported by the language design but rather a clever accident that someone figured out how to abuse.