4 ms·
pipeline stalls, designing for cache performance, branch prediction, multithreading, etc. Those are issues for a subset of computer hardware. Embedded computi
by Retric 11y ago
pipeline stalls, designing for cache performance, branch prediction, multithreading, etc.
Those are issues for a subset of computer hardware. Embedded computing is still huge and has drastically different performance requirements. TAOCP is designed to stand the test of time, not focus on micro-optimizations that generally have limited performance impact and are a waste of time 99% of the time.
- dpc_pw 11y ago> Embedded computing is still huge and has drastically different performance requirements Even chips as small Cortex-M4 has a write buffer, 3-stage pipeline and branch speculation. And real embedded computing is more and more utilizing hardware similar to desktop/mobile/server. You can't run self-driving car / neural networks / image processing on a single threaded CPU with no cache or branch prediction.
- mikejmoffitt 11y agoYou can't run the car on it, but many subsystems in any car, automatic or not, can and will run on that sort of machine.
- Retric 11y agoCache is part of TAOCP As to the rest of it. It's much cheaper to use a GPU style massive array of dumb cores vs. a few faster cores. Don't forget car companies are spending billions on these chips so spending a little more on software to save a lot on hardware is a good tradeoff.
- JackFr 11y ago> TAOCP is designed to stand the test of time, not focus on micro-optimizations . . . Hmmm. My edition of "Sorting and Searching" has a section devoted to tape-sorting.
- empthought 11y agoSame strategies apply to NUMA.
- foxhill 11y agoand the cache/memory hierarchy.
- caf 11y agoThe idea is that if you fully understand the analysis as it applies to tape-sorting, you'll be able to perform a similar analysis as sorting applies to different problem domains yourself. The point isn't learning the answer; it's learning how to get to the answer.
- zvrba 11y agoHe plans to remove that section in the next edition of the book :( I'd argue the section is very relevant since today's RAM works fastest when accessed sequentially.