MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
966 stars 133 forks source link

Java 19 SIMD support ? #692

Closed eix128 closed 1 year ago

eix128 commented 1 year ago

Hi , will you support Java 19 on RoboVM ? Currently java 19 has simd vector support. This library is very neat!.

It would be good if you add java 19 support to robovm

dkimitsa commented 1 year ago

there is a little gap. we are still on java7

eix128 commented 1 year ago

Well , is there any way to implement Vector api for Java 7 ? So at least it will compile same java 19 simd api with java 7. Just wrapper

eix128 commented 1 year ago

How can we use IOS or ARM NEON instructions on java side with Robovm ? Can robovm use advanced calculation library like https://www.tornadovm.org/ https://github.com/beehive-lab/TornadoVM and for shaders opencl , https://developer.apple.com/metal/ Is there any Metal API access on RoboVM ? And Java 19 has native SIMD access for speed https://medium.com/@Styp/java-18-vector-api-do-we-get-free-speed-up-c4510eda50d2

dkimitsa commented 1 year ago

@eix128 you put you optimised code to native static/framework library and use it with robovm. Metal bindings are available, not sure if anyone was testing it