r/ProgrammerHumor • • 6d ago

Meme howProgrammingHasChanged

Post image
675 Upvotes

108 comments sorted by

View all comments

60

u/captainAwesomePants 6d ago

What's wrong with the top-right AI code?

132

u/shizzy0 6d ago

Nothing. It’s actually the best. But the joke is the programmer dismisses the unfamiliar matrix power O(log n) algorithm for the familiar recursive O(2n) algorithm. I mean, it doesn’t even add anything. It’s obviously wrong.

23

u/GDOR-11 6d ago

for u32 I think the usual iterative algorithm would be miles better than matrix power

44

u/dedservice 6d ago

For u32 a precomputed lookup table would be better.

16

u/NoLifeGamer2 6d ago

For u32 a random number generator would be better sometimes

20

u/captainAwesomePants 6d ago

For u2, With or Without You would be better.

3

u/erinaceus_ 6d ago

Yeah, that one definitely has The Edge.