logoalt Hacker News

pdpi • today at 12:46 PM • 1 reply • view on HN

This is, effectively, the game that branch predictors in CPUs are playing with your code. Except that, in that version of the game, you win when the CPU guesses correctly.


Replies

p-e-w • today at 12:50 PM

Branch predictors aren’t playing a game in the sense of this game, because the code isn’t adversarially trying to be unpredictable.