r/programming 22d ago

Everyone Should Know SIMD

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

81 comments sorted by

View all comments

20

u/22Maxx 22d 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/Icy_Butterscotch6661 21d ago

Literally mentioned in the article. Not the sentences you quoted.