3 ms·
“Vector API (Seventh Incubator)” Seven iterations? What is going on with vectors in Java?
by melling 3y ago
“Vector API (Seventh Incubator)”
Seven iterations? What is going on with vectors in Java?
- exidex 3y agoThey said it is waiting for some feature from project Valhalla. Not sure which one though
- pron 3y agoThere are ad-hoc hacks in the JDK to avoid allocation for vectors; once we get some Valhalla features, vectors could be represented as plain value objects.
- GreenToad 3y ago"Vector API" is universal api for SIMD. It will probably remain in incubator until valhalla delivers value types.
- packetlost 3y agoIs there a timeline on Valhalla? I only loosely follow the Java ecosystem these days, but Valhalla is of particular interest to my performance-oriented mind.
- e3bc54b2 3y agoI follow up on valhalla every now and then. It looks few more releases away, probably not before next LTS. That being said, the amount of rigor with which the JDK devs test their experiments is really something to witness. Its equivalent to old school MS with painstaking maintenance at backwards compatibility, all the while moving the wheel of progress. Every single change so far has been planned with a decade of advanced planning because that's just how this ecosystem roles.
- voidfunc 3y agoMy understanding is it depends on Valhalla (value classes) and they basically keep updating it as that project changes.
- MrBuddyCasino 3y agoThe Foreign Memory API is in the works since 2014. They are just very diligent and careful.
- kaladin_1 3y agoYeah, given the amount of legacy infra built on Java. They don't have the luxury to move fast and break things.
- geodel 3y agoIt will go on until 'value classes' are incorporated in Java
- neonsunset 3y agoIf you're interested, there already is a somewhat similar language that offers first-class support for these.