4 ms·
Unless you care about resources other than memory. GC doesn't help to make sure mutexes don't deadlock and files are closed. As far as I know there is no genera
by sqeaky 9y ago
Unless you care about resources other than memory. GC doesn't help to make sure mutexes don't deadlock and files are closed. As far as I know there is no general purpose algorithm for those.
- naasking 9y agoEven still, you can opt-in to those features in a GC language when you need it, but the contrary is not the case in Rust at the moment.
- sqeaky 9y agoBut you can't opt out of the problems with garbage collectors without dropping the language.
- naasking 9y agoMost common GC "problems" have fairly simple solutions. If we're talking about 50GB+ heaps, then we're already talking about a problem that's getting significant engineering investment, so custom solutions become warranted, ie. a special purpose library that manages its own resources that plugs into the safe runtime, similar to unsafe Rust, just less integrated.