Hacker News new | past | comments | ask | show | jobs | submit login

Good deal faster? I seriously doubt it. My understanding are generics are purely a compile time feature and does not effect run time.

I remember Java before generics: tons of casting from Object. The compiler is doing the same thing.




Those casts are still there. The compiler puts them in and the JVM has to execute them.


Yes. And my point is they'd be there anyway, with or without generics. It's not "generics" making the JVM any slower.


If the types were reified, the compiler and the JVM would know what type was there. No cast would be needed.


> they'd be there anyway

No. That's the point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: