Comment

Comment by truth_seeker

Very good move indeed. This is what a smart JIT should be able to do so that the programmer does not have to worry about various hardware-specific optimizations.

Now since they are able to loop unroll it by analysing AST and converting into SIMD, it must also be possible to forward instructions to GPU/GPGPU in the future with little more effort.

Similar efforts on JVM in the past - https://astojanov.github.io/blog/2017/12/20/scala-simd.html

LLVM - https://llvm.org/docs/Vectorizers.html

GCC - https://www.gnu.org/software/gcc/projects/tree-ssa/vectoriza...

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton