3 ms·
The easiest way for a beginner to do SIMD numerical computing now is with Java. Java's Panama project is working on their 6th preview (JEP-450) for the Septemb
by w10-1 3y ago
The easiest way for a beginner to do SIMD numerical computing now is with Java.
Java's Panama project is working on their 6th preview (JEP-450) for the September 21 (LTS) release, but the released Java 20 previews JEP-426 features, including
- basic math
- transcendental functions (sin, cos...)
- load/store to foreign memory e.g., to interop with C
- compress/expand lanes, for parallel selection or filtering
- bit-wise ops (with count, reverse, compress, expand)
- all translated on Intel to SSE/AVX or on ARM to NEON/SVE
See e.g.,
- <https://jbaker.io/2022/06/09/vectors-in-java/ https://jbaker.io/2022/06/09/vectors-in-java/>
- <https://openjdk.org/jeps/426 https://openjdk.org/jeps/426>
- <https://openjdk.org/jeps/448 https://openjdk.org/jeps/448>
- <https://openjdk.org/projects/panama/ https://openjdk.org/projects/panama/>