Earlier quoted context omitted.
Can you comment on the current state of non-aliased related optimizations? The issue tracker is byzantine on that one and i can't tell if or to what degree those optimizations are now done.
Yes, Rust has the potential to be faster than C, or even C++. But the compilers' implementations of such optimizations are far too buggy to turn on.
What is Rust and why is it so popular?
281–284 of 284 posts
Re: What is Rust and why is it so popular?
#282Earlier quoted context omitted.
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.
That's fair - last time i used C++ in earnest was around 2007. Unless they broke compatibility, it would still be opt-in, though, right? Nice thing about Rust is that the resource management approach is built-in and enforced by default.
The Standard C++ Library supports user-managed allocators for all the containers, heavily used in embedded, low-latency, and real-time applications to get deterministic performance.
Lack of standard support for user-provided allocators indicates immaturity. E.g., C++ lacked them until 2011.
Re: What is Rust and why is it so popular?
#283Earlier quoted context omitted.
> 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?
The easy examples involve operator overloading. 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?
#284Earlier quoted context omitted.
I think this is misplaced causation. Don’t discount the fact that a significant number of programmers just like novelty and like Rust because it’s new in the same way Haskell is new to a Java dev. That said, Rust’s domain does seem wider than just systems programming. It has the right abstractions to be suitable for (edit: some ) higher level things like web apps. Personally Rust is turning into what I was assuming a…
> higher level things like web apps. Frankly any language that makes me write "some string".into(), and all of the other nonsense of Rust, is not suitable for writing string processing applications (as opposed to utilities, such as ripgrep). The business logic of any Rust application that deals mostly with strings is hopelessly obtuse and/or obscured. Languages like Perl, Python and Ruby, or even JavaScript and Java,…