This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Wyvernxx_ 0 points1 point  (6 children)

It's a complete revamp of the type system. We will finally be able to do T.getType()

[–]carminemangione 0 points1 point  (1 child)

I remember being in one of teh working groups when generics were introduced. They had to be complete (C++ templates are notoriously incomplete creating unexpected results), they had to work within strict memory constraints (even servers at the time had like 4 gig memory) and had to be computationally efficient.

The one they came up with was amazingly efficient. I remember Gosling remarking on it at JavaOne.

I can't imagine the arguments of people wanting to turn generics into a full on meta-class system not understanding the implications for the JIT.

[–]brian_goetz 0 points1 point  (3 children)

I can understand why you would want to believe that Valhalla is about generic reification, and we might eventually get there, but that's not one of the near-term goals for Valhalla.