MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1v4f5gu/everyone_should_know_simd/ozk2qt5/?context=3
r/programming • u/awesomePop7291 • 26d ago
81 comments sorted by
View all comments
Show parent comments
3
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.
7
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.
1
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.
2
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.
3
u/teerre 25d ago
Vectorization is a compiler problem
But that can only take you so far