News for hackers. Stuff that matters.
Re:Under the Hood with Java 10 Enhanced Generics by lukedegruchy on Monday December 29, 2014 @05:57PM (#8812284)
Scala isn't the only alternative JVM language that has a superior generics implementation and that doesn't have primitives.

What neither Scala nor those languages have is support for value types (structs) at the JVM level. Generics over primitives and value types is a natural consequence of the introduction of value types to the JVM.

Re:Under the Hood with Java 10 Enhanced Generics by pkinsky on Tuesday December 30, 2014 @10:51AM (#8815036)
Re:Under the Hood with Java 10 Enhanced Generics by hyperpape on Tuesday December 30, 2014 @11:35AM (#8815263)
The document says that you can't actually always avoid the Object allocations, because of the JVM. I'm pretty sure you'll need VM changes in addition to language changes for this.