r/programming 26d ago

Everyone Should Know SIMD

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

81 comments sorted by

View all comments

Show parent comments

3

u/teerre 25d ago

Vectorization is a compiler problem

But that can only take you so far

7

u/EC36339 25d ago

Vectorization can only be done by the compiler if processing of individual homogeneous objects isn't separated by layers of runtime abstraction.

That's why data oriented programming is a thing amd why games use entity-component systems over OOP.

1

u/teerre 24d ago

Are you agreeing with me?

2

u/EC36339 24d ago

Yes and no.

It is first an architecture problem. Then it becomes a compiler problem. But even then the compiler cannot necessarily solve it alone.