Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> SoA for example is a very non-idiomatic thing to do in most C-like languages and especially OO ones

Isn't it rather that switching between SoA and AoS is tedious? SOA style itself (using common indices into multiple tables) works ok in C, IMO.



Yes, SoA is just slightly odd (Doesn't look idiomatic with points[i].X instead of points.X[i]), and the switching is so cumbersome that you have to settle for one way or the other.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: