4 ms·
What do you mean by “garbage collector complexity”? Rust provides value-add over manual memory management but garbage collection is still way simpler to use (i
by ratorx 3y ago
What do you mean by “garbage collector complexity”?
Rust provides value-add over manual memory management but garbage collection is still way simpler to use (if the performance penalty doesn’t matter).
- bitwize 3y agoGarbage collectors are notoriously difficult to predict the performance of at runtime compared to deterministic object lifetimes. A GC program also requires many times as much available RAM as a deterministic-lifetime program to achieve the same task with the same level of performance. Rust lets you code safely in much the same way as you would in a GC language, without the performance and determinism drawbacks of GC. You pay a bit for that in terms of following the borrow checker's rules, but that's not too much a burden once you decide to learn them and get used to them. There's a reason why Rust has supplanted Lisp and Haskell as the new smart kids' toy.