News for hackers. Stuff that matters.
Re:EABitTricks.h by trap_goes_hot on Monday December 19, 2022 @04:39PM (#34058131)
Obviously a very very gross generalization (might get called out on it too :P) - But I think the low hanging fruit for modern software is optimizing data layouts for fast processing.

Optimizing code requires a lot of work, and requires skills that people usually learn from experience - therefore a rare and expensive skillset. Data-Oriented Design can be taught, and requires (IMO of course) a far less technical skillset.

Re:EABitTricks.h by anonymoushn on Monday December 19, 2022 @05:25PM (#34058630)
This is difficult because lots of tools don't let developers choose their data layouts. For example you cannot declare an array of structs in Java.
Re:EABitTricks.h by physPop on Monday December 19, 2022 @09:13PM (#34060697)
This is very true. The tower of template and OO class hierarchies typical in c++ codebases make the memory layout impossible. Polymorphism and vtables are so killer for performance. I think general programming can learn a lot of lessons from HPC and game engines.