News for hackers. Stuff that matters.
Re:Original Age of Empires 2 dev talks about its usage of as... by formerly_proven on Sunday January 07, 2024 @07:25AM (#38900668)
VTune still exists and is free since a few years. Neat thing with VTune is that it has support for a few runtimes, so it understands for example CPython internals to the point that stack-traces can be a mixture of languages. That's something only becoming available just now outside of VTune, like Python 3.12 has some hooks for Linux perf.

A purely pen-and-paper tool was IACA; you simply inserted some macros around a bit of code in the binary and IACA simulated how these would/could be scheduled on a given core: https://stackoverflow.com/questions/26021337/what-is-iaca-an...

Re:Original Age of Empires 2 dev talks about its usage of as... by akoboldfrying on Sunday January 07, 2024 @08:02AM (#38900856)
Didn't know VTune is free now, nor had I ever heard of IACA which looks very nice (and would have saved me a lot of brow-sweat)! Thanks.
Re:Original Age of Empires 2 dev talks about its usage of as... by LegionMammal978 on Sunday January 07, 2024 @12:03PM (#38902886)
Note that there's also the open-source uiCA [0], which similarly predicts scheduling and overall throughput for a basic block. Their benchmarks claim it to be more accurate than IACA and other tools for newer Intel CPUs, but I wouldn't be qualified to judge those claims.

[0] https://uops.info/uiCA.html

Re:Original Age of Empires 2 dev talks about its usage of as... by malkia on Sunday January 07, 2024 @01:57PM (#38904044)
Awesome - I'll try it again!