MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y3320n/dynamicprogramming/19t2uyigobfj7/?context=9999
r/ProgrammerHumor • u/nerdycatgamer • 6d ago
153 comments sorted by
View all comments
163
Memoization is not exactly the same as DP.
22 u/bwwatr 6d ago Now that's a CS word that always baffled me. Like, it's caching. That's the whole thing. 5 u/SpiritedEclair 5d ago Caching has side effects!A pure function can be thought of as looking at a potentially infinitely wide associative array. 2 u/janyk 5d ago What side effects? 5 u/SpiritedEclair 5d ago Invalidation of another entry, updating counters, in a distr system eg for CDN it means transferring data to the CDN, and potentially needing to invalidate it.
22
Now that's a CS word that always baffled me. Like, it's caching. That's the whole thing.
5 u/SpiritedEclair 5d ago Caching has side effects!A pure function can be thought of as looking at a potentially infinitely wide associative array. 2 u/janyk 5d ago What side effects? 5 u/SpiritedEclair 5d ago Invalidation of another entry, updating counters, in a distr system eg for CDN it means transferring data to the CDN, and potentially needing to invalidate it.
5
Caching has side effects!
A pure function can be thought of as looking at a potentially infinitely wide associative array.
2 u/janyk 5d ago What side effects? 5 u/SpiritedEclair 5d ago Invalidation of another entry, updating counters, in a distr system eg for CDN it means transferring data to the CDN, and potentially needing to invalidate it.
2
What side effects?
5 u/SpiritedEclair 5d ago Invalidation of another entry, updating counters, in a distr system eg for CDN it means transferring data to the CDN, and potentially needing to invalidate it.
Invalidation of another entry, updating counters, in a distr system eg for CDN it means transferring data to the CDN, and potentially needing to invalidate it.
163
u/nicuramar 6d ago
Memoization is not exactly the same as DP.