Re:Swift UTF-8 String
by ilovecaching on Friday March 22, 2019 @12:51AM
(#19459715)
What do you see as the advantage of Rust or ref counting?
[ Parent
| on HN ]
I've just read the Rust docs and not written any code so I'm probably the wrong person to ask but Rust's ownership rules seem to make it possible to eliminate a lot of dynamic allocations in the first place.
Ref counting can beat GC if you're in a domain where GC pauses can be an issue. Things like games, for example. Although I understand state-of-the-art GCs can also be fast enough to use for these kinds of applications in some cases now. Ref counting can also be more memory efficient than GCs.