News for hackers. Stuff that matters.
Re:Can Rust Beat JavaScript in 2023? by MuffinFlavored on Friday April 21, 2023 @09:11AM (#35653189)
> This is not a dig at Rust (which I love) but God help any developer inheriting a frontend codebase with random bits of Rust in 2024.

Why? Rust has a bunch of features built in to promote "good code", no?

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

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.
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()?

Re:Can Rust Beat JavaScript in 2023? by kaba0 on Friday April 21, 2023 @04:17PM (#35659468)
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.