Re:Java 20 Is Out!
by kaba0 on Tuesday March 21, 2023 @02:36PM
(#35250506)
Most of these low-level APIs simply just wait for value types - they don’t want to hardcode something into the language, that might not be a perfect fit for those. Which makes sense, frankly.
[ Parent
| on HN ]
Re:Java 20 Is Out!
by mike_hearn on Tuesday March 21, 2023 @05:03PM
(#35252534)
Within limits. Valhalla seems to be still far from launching, and allowing features to back up behind it might just recreate the situation Java has previously found itself in during the 7/8 era where slippage in massive projects caused everything else to slip too. The new release cycle was meant to fix that, but if half the new stuff ends up waiting for value types then the problem has just reappeared in a new form.
The odd thing is that part of Valhalla is about how to migrate existing types to being value types, and they already have code that can simulate the same restrictions. So it's not really clear why these features have to wait. Migration is a part of the Valhalla plan anyway.