Skip to main content

Posts

Showing posts from September, 2025

Slippery when wet

Ivory soap is known for its purity, but i thought it was harsh and eventually discovered that people in the soap industry agree (personal communication). Rinse and repeat though shampoo manufacturers direct us to apply shampoo twice, the second application often seems unnecessary. maybe it's a ploy to induce us to repurchase more often? meanwhile, everyone knows soap is poor shampoo because it makes your hair gummy. ironically, washing hair with soap can work quite well if the soap isn't too complicated and you apply it twice. more generally, soap scum often rinses off after a second washing with the same soap. when i have to wash one or two things in my kitchen, i use soap instead of detergent. another techniq...

Cache strategies

An ideal cache entry is created just before its value is first needed and destroyed just after it is no longer needed. typical cache strategies do not (try to) approximate this ideal, but half a loaf is better than none? caching doesn't necessarily help. for example, using another host to cache database query results requires more network usage. determining if the additional complexity and cost are worthwhile depends on the database server's behavior (it might be caching the results already), network connection speeds, etc. in a simpler architecture, a server and its cache are hosted by the same machine. if there are redundant servers there will be duplicate cache entries, so analyzing cost/performance still requires effort. there is no free lunch. Server requirements ...