News for hackers. Stuff that matters.
Re:Avoiding Instruction Cache Misses by rmdashrfstar on Saturday June 22, 2019 @01:27PM (#20250689)
Any advice to learn systems engineering properly?
Re:Avoiding Instruction Cache Misses by jeffreygoesto on Saturday June 22, 2019 @01:57PM (#20250843)
Practice is a main ingredient. Build and debug (down to below assembler level with i.e. vtunes, learn about weak memory ordering, ...) increasingly complex systems. Learn how high level language code is transformed into "what the hardware shall do" to be able to predict, to some degree, whether that particular code you review will be optimized well or not (then measure and confirm/extend/correct your prediction). Working with FPGAs helped me learning a lot about how to get the right data to the right execution unit at the right point in time. Solving this "space-time-problem" is exactly what optimizing is about in CPUs as well. For the engineering part I'd say: being strict about separation of concerns and single source principles and not too religious with abstractions certainly helps. And finally: read, read, read. Books, Papers, other people's code...
Re:Avoiding Instruction Cache Misses by jeffreygoesto on Saturday June 22, 2019 @02:04PM (#20250876)
Oh, and one more thing (tm): try to be the worst, not the best team member. Make sure you always can learn from peers. You need discussions, especially those wandering up and down the abstraction stack, asking "why" on every level.
Re:Avoiding Instruction Cache Misses by loeg on Saturday June 22, 2019 @01:43PM (#20250768)
Get a job where you do it some or full time, and acquire lots and lots of practice.
Re:Avoiding Instruction Cache Misses by jeffreygoesto on Saturday June 22, 2019 @01:58PM (#20250847)
+1 took me too long to type, otherwise I would have just quotey you ;-).