HugoDaniel | 4 years ago | on: Chinese activist Ai Weiwei says Credit Suisse closing foundation's bank account
_gjrn's comments
HugoDaniel | 4 years ago | on: The iPhone 13 Does Not Have Satellite Internet, Band N53 and Globalstar
HugoDaniel | 4 years ago | on: Bigger vehicles are directly resulting in more deaths of people walking
HugoDaniel | 4 years ago | on: Hire for slope, not Y-Intercept
HugoDaniel | 4 years ago | on: In internal memo, Apple addresses concerns around new Photo scanning features
When will they also start ratting on their costumers?
[0] https://en.wikipedia.org/wiki/Casio_F-91W#Usage_in_terrorism
HugoDaniel | 4 years ago | on: In internal memo, Apple addresses concerns around new Photo scanning features
HugoDaniel | 4 years ago | on: Windows 93
"Safari is teh new Internet Explorer"
HugoDaniel | 4 years ago | on: SafeDollar ‘stablecoin’ drops to $0 following DeFi exploit on Polygon
HugoDaniel | 4 years ago | on: Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
However your reply does not answer the question.
Do you know of any CPU that has specific instructions to handle cache? How can you be sure that you are gaming cache lines when even the mnemonics are mostly virtualised through all the pipeline and jump/memory pattern predictions?
HugoDaniel | 4 years ago | on: Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
HugoDaniel | 4 years ago | on: Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
https://llvm.org/docs/Vectorizers.html#slp-vectorizer
Cache precedence and cache line optimisations are black magic, either you know specifically the cpu that you are targeting, or rely on hopium techniques like cache oblivious algorithms that try to reap some benefits.
The baseline is to measure, always, before and after optimisation(s). These "Data oriented design" approaches are very hard to measure and change rapidly because they have a profound impact on a codebase, rarely ever change "just one thing" and they err to the less intuitive and less readable side.
HugoDaniel | 4 years ago | on: Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
HugoDaniel | 4 years ago | on: Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
Beyond what is observable, C compilers have almost free reins to do whatever they want, so long as the observable things are kept the same (output/memory address values, etc...).
Data oriented design was a smart-kid anti-pattern thing back then, but I wonder if compilers have evolved enough so that it is useless nowadays? It is by all measures a useless optimization, since it can be placed hidden from the observable object properties. (i.e. who cares if it is an array of structs or a struct of arrays, so long as the vec3 is still a { x, y, z }?)
HugoDaniel | 4 years ago | on: Fluid Paint
Is there any place where it is possible to read more about this painting techniques for code?
HugoDaniel | 4 years ago | on: Thailand bans meme coin and NFT: “no clear objective or substance or underlying”
HugoDaniel | 4 years ago | on: Doom Running on an IKEA Lamp [video]
HugoDaniel | 4 years ago | on: Rust 1.x seems to not always be backward compatible in practice
Sometimes I feel that C is the only language that can benefit from compound gains over time, their spec is tight and sees sparse nuanced improvements in wide intervals of time.
HugoDaniel | 4 years ago | on: Cities with the Best Work-Life Balance 2021
having to periodically take shots can take a toll in your "life" happiness and balance overall (work and personal)
HugoDaniel | 4 years ago | on: USB-C is about to go from 100W to 240W, enough to power beefier laptops
HugoDaniel | 4 years ago | on: Extreme HTTP Performance Tuning
This can't be serious. Can someone flag this article? Highly inappropriate.