HN user

GreenToad

38 karma
Posts0
Comments8
View on HN
No posts found.
Java 22 Released 2 years ago

"Vector API" is universal api for SIMD. It will probably remain in incubator until valhalla delivers value types.

    Point[] array=new Point[15000];
In java would create an array with null references, to fill it up you need to create each object so that point is valid.

In java lang specs: "A thread that can only see a reference to an object after that object has been completely initialized is guaranteed to see the correctly initialized values for that object's final fields." This makes it a JVM bug because no thread should be able to see uninitialized final fields of an object.