3 ms·
The author's main concern seems to be optimising performance critical code.
by stevage 1y ago
The author's main concern seems to be optimising performance critical code.
- hinkley 1y agoIf your compiler is having trouble juggling a number of variables just think how much difficulty the human brain will have on the same code.
- greesil 1y agoThat's not clear to me. It first reads like "don't branch in a for loop (because parallelization?)" but I think it's more for keeping the code from becoming a mess over time with multiple developers.
- drob518 1y agoHmmm. Seems like he’s optimizing clarity of thought, first. The performance gain just comes along for the ride. If I were to summarize the article, I’d say that it’s advocating a pattern where you write code where higher layers decide what needs to be done and then lower layers do it, using a combination of straight line code and simple loops, with little to no further conditionality. Obviously, that represents an ideal.