Re:Can Rust Beat JavaScript in 2023?
by oaiey on Friday April 21, 2023 @09:16AM
(#35653256)
Rust is a unmanaged language. 99% of use cases do not need it and 99% of devs are unable to handle it's.
[ Parent
| on HN ]
Re:Can Rust Beat JavaScript in 2023?
by MuffinFlavored on Friday April 21, 2023 @10:11AM
(#35654037)
> Rust is a unmanaged language.
Not quite sure what you mean. I've written some pretty cool stuff in Rust and never had to do any free() / drop()?
Most modern C++ code bases also completely lack explicit frees/deletes, but not many would argue that C++ is a managed language.
Though a more objective distinction is hard to give on what is a managed language, I found the garbage collection handbooks’ quote on the topic the most illuminating (linking to my older comment): https://news.ycombinator.com/item?id=35332600
In Rust and in C++ memory layout is part of your public APIs and has to be refactored when it changes. This is not the case with managed languages.