Re:Background: how we got the generics we have (2020)
by kaba0 on Thursday April 01, 2021 @07:50AM
(#26659259)
I don’t think templates are wanted, but with the coming of unification of primitive and reference types, Java could get a huge speedup in performance.
[ Parent
| on HN ]
Re:Background: how we got the generics we have (2020)
by henryjcee on Thursday April 01, 2021 @08:50AM
(#26659789)
This has passed me by, what's happening?
Re:Background: how we got the generics we have (2020)
by BenoitP on Thursday April 01, 2021 @09:11AM
(#26660038)
Not so much a unification, as the new constructs sort of enhance and retrofit current primitives types. These new primitives are "class instances that lack object identity and can be stored and passed directly, without object headers or indirections".
It will allow (almost) direct control over data layout. At least make it so that it is cache/prefetch/SIMD friendly.
Here is the JEP: https://openjdk.java.net/jeps/401