4 ms·
You can't hide AOS vs SOA in C and in most other languages, but that has nothing to do at all with linked lists. (you could use a macro to encapsulate the layo
by jstimpfle 5y ago
You can't hide AOS vs SOA in C and in most other languages, but that has nothing to do at all with linked lists.
(you could use a macro to encapsulate the layout though, or in C++ could code a function that returns a reference)
In what situations are linked lists the path of least friction??
- mhh__ 5y agoI picked linked lists as a real example of something I've seen people do. It doesn't really make any difference my point. C is a bad programming language in 2022
- jstimpfle 5y agoWell picking an invalid example (C encourages the use of linked lists in situations where they aren't a good idea) and a very questionable example (automatic conversions between different SAO/AOS representations are not mostly at an experimental stage but are an important feature for performance programming in 2022) is not a good way to support a claim that isn't empirically evident.
- mhh__ 5y agoIt's empirically evident in that no-one is picking C for new projects anymore. Anything fast is in C++ or C++ like languages.