News for hackers. Stuff that matters.
Re:Java and SIMD by DannyBee on Tuesday June 27, 2017 @09:45PM (#14651114)
"Auto-vectorization is hard. Very hard. "

This varies very heavily depending on the programming language :)

C/C++ is not a language that easily enables one to guarantee things about aliasing or loop dependence.

Re:Java and SIMD by flamedoge on Wednesday June 28, 2017 @02:01AM (#14652007)
but you can write it in a way that's conducive to better codegen, at the cost of developer sanity.
Re:Java and SIMD by vanderZwan on Wednesday June 28, 2017 @07:52AM (#14653309)
Or you can design a language that is built all around it. Halide is pretty interesting, basically being a non-Turing complete DSL that lets you separate algorithm from scheduling:

http://halide-lang.org/

Something like that could perhaps also be useful for auto-vectorization.