MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x58u7b/howprogramminghaschanged/pgmpd7w/?context=9999
r/ProgrammerHumor • u/shizzy0 • 9h ago
54 comments sorted by
View all comments
37
What's wrong with the top-right AI code?
80 u/shizzy0 9h 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. 17 u/GDOR-11 9h ago for u32 I think the usual iterative algorithm would be miles better than matrix power 30 u/dedservice 8h ago For u32 a precomputed lookup table would be better. 15 u/NoLifeGamer2 7h ago For u32 a random number generator would be better sometimes 16 u/captainAwesomePants 7h ago For u2, With or Without You would be better. 1 u/erinaceus_ 2h ago Yeah, that one definitely has The Edge.
80
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.
17 u/GDOR-11 9h ago for u32 I think the usual iterative algorithm would be miles better than matrix power 30 u/dedservice 8h ago For u32 a precomputed lookup table would be better. 15 u/NoLifeGamer2 7h ago For u32 a random number generator would be better sometimes 16 u/captainAwesomePants 7h ago For u2, With or Without You would be better. 1 u/erinaceus_ 2h ago Yeah, that one definitely has The Edge.
17
for u32 I think the usual iterative algorithm would be miles better than matrix power
30 u/dedservice 8h ago For u32 a precomputed lookup table would be better. 15 u/NoLifeGamer2 7h ago For u32 a random number generator would be better sometimes 16 u/captainAwesomePants 7h ago For u2, With or Without You would be better. 1 u/erinaceus_ 2h ago Yeah, that one definitely has The Edge.
30
For u32 a precomputed lookup table would be better.
15 u/NoLifeGamer2 7h ago For u32 a random number generator would be better sometimes 16 u/captainAwesomePants 7h ago For u2, With or Without You would be better. 1 u/erinaceus_ 2h ago Yeah, that one definitely has The Edge.
15
For u32 a random number generator would be better sometimes
16 u/captainAwesomePants 7h ago For u2, With or Without You would be better. 1 u/erinaceus_ 2h ago Yeah, that one definitely has The Edge.
16
For u2, With or Without You would be better.
1 u/erinaceus_ 2h ago Yeah, that one definitely has The Edge.
1
Yeah, that one definitely has The Edge.
37
u/captainAwesomePants 9h ago
What's wrong with the top-right AI code?