I like the fact that Rust has a set of libraries (crates and the standard library) that provide a lot of the features that you end up re-inventing if you stick with C. Even C++ is pretty fractured in this regard. A lot of why this is hard in C/C++ is memory management. Even if you had a package manager it would be hard to compose libraries together unless they were designed together (like boost for C++).
I see that you have no experience with C++ in the past decade. There has been no fragmentation in C++ resource management since C++11.
What is Rust and why is it so popular?
271–280 of 284 posts
Re: What is Rust and why is it so popular?
#272Earlier quoted context omitted.
> To me the Rust community seems to want to argue that everything should be rewritten in Rust I haven't seen this. At most, I've seen the push for rewriting important libraries where security is a core issue in Rust. I don't blame them. I'm tired of C/C++ being used everywhere because of performance, leading to the current-day situation of so much fundamentally unsafe code running the world.
There is no such language as C/C++. You and I are tired of C being used where using a more powerful, safer language would also be faster. Rust could be that language, but C++ is another, and much more likely to still be known in ten years.
As in C or C++. I didn't mean it as its own language. And C++ has plenty of issues where I'd consider it equally unsafe. Unless you're a god tier programmer, and even then, it's impossible to write safe code without insane amounts of effort that can't be expected in most projects.
Re: What is Rust and why is it so popular?
#273Earlier quoted context omitted.
It's kind of how like when Go first bust out on the scene and every org that was "doing DevOps" claimed they had "Go in the building", the reality is you wrote CLI scripts and did 90% of your job in Java or Python. They may mention Rust, but doubt it's what you'll be solving the majority of business problems in.
I didn't a search in Indeed and found jobs like: - machinist - maintenance worker - crater/packer - painter I wish there was a better name, still better than go, although they successfully adopted golang so now it is easier.
Re: What is Rust and why is it so popular?
#274Earlier quoted context omitted.
Think about this - if a bunch of people hate a language and stop using it, the following year that language's "most loved" score will increase . I wouldn't call that merit, it's just a bad metric.
Yes, if people can simply stop using a language, it will not be hated. That's how it works on real life too. But most of the time, people can't stop using languages.
Re: What is Rust and why is it so popular?
#275What influential applications are written in rust? For c++, there is llvm, chrome, game engines, I feel like c++ is standing very strong in any of these fields still, why is that? Do u think it’s going to change soon?
If Rust manages to actually supplant C or C++ it would very likely require decades and generational change.
Re: What is Rust and why is it so popular?
#276Earlier quoted context omitted.
And it would be great to read about such projects. But I have not heard about such. Maybe I would change my opinion.
Mozilla namely: "By 2017, Mozilla had made two previous attempts to parallelize the style system using C++. Both had failed." but they were able to complete it in Rust.
Re: What is Rust and why is it so popular?
#277Earlier quoted context omitted.
Mozilla namely: "By 2017, Mozilla had made two previous attempts to parallelize the style system using C++. Both had failed." but they were able to complete it in Rust.
I would be really surprised if they failed to do it with the language they invented.
Re: What is Rust and why is it so popular?
#278Earlier quoted context omitted.
... hence a better C++. If a better C++ is what you want, then Rust is a great fit.
In 1995 people said Java was a "better C++", but it was basically 1991 C++ plus GC (and numerous misunderstandings), minus concrete types. Rust can do more of the things C++ can do than Java can, but there is a very great deal that can be put in a C++ library that is wholly beyond Rust's capacity. If you have lesser expectations to capture semantics in libraries, or to use such libraries that do, Rust serves. But the…
Just out of curiosity, do you have some examples?
Re: What is Rust and why is it so popular?
#279Earlier quoted context omitted.
In 1995 people said Java was a "better C++", but it was basically 1991 C++ plus GC (and numerous misunderstandings), minus concrete types. Rust can do more of the things C++ can do than Java can, but there is a very great deal that can be put in a C++ library that is wholly beyond Rust's capacity. If you have lesser expectations to capture semantics in libraries, or to use such libraries that do, Rust serves. But the…
> but there is a very great deal that can be put in a C++ library that is wholly beyond Rust's capacity. Just out of curiosity, do you have some examples?
Some more subtle would involve template dispatching according to properties of the types operated on.
But just run down the list of features supported in C++, and not in Rust, and think about how they could change how a library interface or implemention would look. Most C++ features are meant for people writing libraries.
Re: What is Rust and why is it so popular?
#280What influential applications are written in rust? For c++, there is llvm, chrome, game engines, I feel like c++ is standing very strong in any of these fields still, why is that? Do u think it’s going to change soon?
The Oxidation page [1] seems to give an overview where it is.