|
|
|
|
|
by mhh__
1567 days ago
|
|
D is the closest thing to a "I write generic code which is then optimal for all the situations I can think of" language that I have found so far. Writing a type that automatically becomes SOA vs. AOS is relatively easy in D, almost impossible in C i.e. please stop writing "fast" code in C. |
|
There's a library (which I haven't tried out) for doing this in C++20: https://github.com/celtera/ahsohtoa
(The author is an HN regular, jcelerier.)