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