4 ms·
JVM generates SIMD to certain extent, i wish other runtimes like V8 (Browser/NodeJS), Go, BEAM (Elixir/Erlang) etc did the same.
by truth_seeker 7y ago
JVM generates SIMD to certain extent, i wish other runtimes like V8 (Browser/NodeJS), Go, BEAM (Elixir/Erlang) etc did the same.
- gameswithgo 7y agoJVM does it to an extremely limited extent. Anything jitted, doesn't have a lot of time to do autovectorization. Even GCC/llvm are pretty limited at this, as it is just a hard problem, and doing it with floating point is problematic as it usually changes the result.
- pjmlp 7y agoTo a limited extent that also takes advantage of AVX thanks to Intel contributions. All modern JVMs take advantage of code caches and possibly PGO (depending on the configuration) between runs. ART also does the same for NEON.