4 ms·
Interesting article. It does show how modern C++ can be quite scary. It reminded me of a Haxe macro used by the Dune: Spice Wars devs to transform an AoS into
by gr4vityWall 1y ago
Interesting article. It does show how modern C++ can be quite scary.
It reminded me of a Haxe macro used by the Dune: Spice Wars devs to transform an AoS into a SoA at compile time to increase performance: https://youtu.be/pZcKyqLcjzc?t=941 https://youtu.be/pZcKyqLcjzc?t=941
The end result is quite cool, though those compile time type generation macros always look too magical to me. Makes me wonder if just getting values using an index wouldn't end up being more readable.