logoalt Hacker News

svieiralast Monday at 12:41 AM2 repliesview on HN

And Java has been working on Project Valhalla for ~20 years to retrofit the ability to do this to the existing Java language...


Replies

pjmlplast Monday at 7:27 AM

The goal for Valhalla is value types, reiifed generics if they ever happen is still open.

The project was announced in July 2014, hardly 20 years.

Also the reason they are still at it, is how to run old JARs withouth breaking semantics, in a Valhalla enabled JVM.

Had Oracle wanted to do a Python 3, Valhalla would have been done by now, however we all know how it went down, and Java 9 was already impactful enough to the ecosystem.

show 1 reply
metadatlast Monday at 2:35 AM

Reified Generics doesn't seem to be a goal mentioned on the project website- Am I missing something?

https://openjdk.org/projects/valhalla/

There is an interesting article which mentions reification, but that's all I could locate.

How We Got the Generics We Have (Or, how I learned to stop worrying and love erasure)

https://openjdk.org/projects/valhalla/design-notes/in-defens...

show 1 reply