News for hackers. Stuff that matters.
Re:JDK 9 release schedule by hyperpape on Tuesday October 18, 2016 @01:18PM (#12736655)
Everyone has their own priorities, but ValueTypes are huge.

Also, I don't think this falls under Valhalla (and I'm not sure if it's been committed yet), but the possibility of reasonable type inference in Java 10 would make me rather happy.

Re:JDK 9 release schedule by papercrane on Tuesday October 18, 2016 @01:38PM (#12736855)
I'm pretty excited about that one, it's JEP-286, http://openjdk.java.net/jeps/286.

Valhalla is pretty big. Goetz described it as pulling on a very long string. It's going to touch everything in the JVM, including reifing generics, although as I understand it, erasure of Objects may be here to stay for the language.

Re:JDK 9 release schedule by whateveracct on Tuesday October 18, 2016 @01:57PM (#12737017)
Erased generics will surely stay and are a good thing. If they were removed, Scala would be in trouble (or rather, scalac would have to perform erasure itself, which in turn would mean that interop from Java wouldn't be good anymore).

What's broken in the JVM isn't erased generics but instead runtime reflection that is a lie due to erasure. Type erasure though is definitely an example of Java getting something very right for the wrong reasons.

Re:JDK 9 release schedule by jdmichal on Tuesday October 18, 2016 @02:39PM (#12737380)
Are you attempting to separate the concepts of specialization vs reified generics? Java does neither right now, and both effects are due to type erasure -- the runtime simply doesn't have the necessary information. I'm not quite sure where you're trying to draw the line.

Furthermore, runtime specialization (as opposed to compile-time) would seem to require reified types. So that further confuses things. But you can definitely have reified types without specialization, which I think is the point that you are trying to convey.

Re:JDK 9 release schedule by int_19h on Tuesday October 18, 2016 @04:27PM (#12738336)
Aside from backwards compatibility, what's good about type erasure for generics?
Re:JDK 9 release schedule by dragonwriter on Wednesday October 19, 2016 @05:43PM (#12747961)
It permits languages on the platform with substantially-richer compile-time type systems than the primary language on the platform with good interior stories (this was, IIRC, a substantial problem with Scala.NET.)
Re:JDK 9 release schedule by jsmith0295 on Tuesday October 18, 2016 @07:48PM (#12739764)
Doing it a better way is hard
Re:JDK 9 release schedule by int_19h on Wednesday October 19, 2016 @05:33PM (#12747887)
Is it, though? The most basic implementation, where things are still erased at runtime by the JIT, should be fairly simple, although it will not give the expected perf gains, of course.

Either way, CLR and C# did it a long time ago, and in the same time period when Java acquired its type-erased generics.

Re:JDK 9 release schedule by jsmith0295 on Sunday October 23, 2016 @08:07PM (#12776048)
They care too much about backwards compatibility I think. .NET had done generics this way from the beginning.