Enter The Parallel Universe of the Vector API
summary
Explains that the Vector API (JDK incubators through JDK 21–23) exposes SIMD like AVX2 256-bit lanes so Java can process 8 ints per register and fuse ops (FMA); compares generated code and microbenchmarks showing explicit vector code wins for conditional-heavy kernels and small arrays, while JIT autovectorization often matches or beats it for simple adds unless you turn off useSuperWord. Notes memory bandwidth and cache (L1/L2/L3 vs RAM) limit speed, and virtual threads are for scalability not raw CPU speed.
AI-written summary · about
chapters (12)
- 0:00Introduction to talk
- 2:59Concurrency vs parallelism
- 7:58Concurrent programming in Java
- 13:39Java Streams and parallelism
- 19:58Virtual threads overview
- 23:30Vector basics and SIMD
- 28:26Vector API history
- 30:57Vector API components
- 36:56Vector masks and blending
- 41:32Vector operations
- 44:24Vector API performance
- 50:46Summary and conclusion
