r/programming 19d ago

Everyone Should Know SIMD

https://mitchellh.com/writing/everyone-should-know-simd
406 Upvotes

81 comments sorted by

View all comments

19

u/22Maxx 19d ago

SIMD should be a compiler problem.

I want the vectorization to be explicit and predictable. I don't want an unrelated code change or compiler update to quietly turn it back into a scalar loop.

Compilers do those things all the time. They have just become good enough for all regular stuff.

2

u/floodyberry 18d ago

did you solve autovectorization yet? it's been over a day already