Re:Can Rust Beat JavaScript in 2023?
by augusto-moura on Friday April 21, 2023 @09:16AM
(#35653252)
The problem is not "bad code", but experience from teams and community. Browsing HN might make we think that Rust is everywhere and everyone knows it, but most of the frontend developers in the world are not prepared to inherit a project in such a foreign language.
My theory is that, you probably can see when a language its being picked by some community by looking into courses available, either free or on paid platforms
Rust is a unmanaged language. 99% of use cases do not need it and 99% of devs are unable to handle it's.
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.
Why? Rust has a bunch of features built in to promote "good code", no?