3 ms·
i too found the headline really confusing. at some* point, if you're designing something like a database you should just accept that you'll be building some am
by convolvatron 8y ago
i too found the headline really confusing.
at some* point, if you're designing something like a database you should just accept that you'll be building some amount of core infrastructure (for example a cache) yourself. it seems strange to assume there is a widget in the exact shape you need with exactly the right interface and semantics floating around somewhere.
to go a step further...efficient memory management is pretty key to cache behavior. you're generally using up a good fraction of available memory and have a really good idea what the lifetimes are (since thats your whole policy). that the GC might be a little slower to release than you might like shouldnt be a surprise at all.
'how we built a cache in go' is more apt than 'why didn't go have a cache that fit our needs already, bad go'
- jzoch 8y agoWhile I agree with you I do find it prescient that a "get things done, production" language like go doesn't have more super solid cache libraries. I guess the community hasn't felt the need to take it further than that but I'd figure companies like Google would have open sourced whatever they use at this point
- Scarbutt 8y agoit seems strange to assume there is a widget in the exact shape you need with exactly the right interface and semantics floating around somewhere. He found one for Java.