2 ms·
Garbage collectors are notoriously difficult to predict the performance of at runtime compared to deterministic object lifetimes. A GC program also requires man
by bitwize 3y ago
Garbage 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.