3 ms·
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
by sethev 7y ago
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++).
- ncmncm 7y agoI see that you have no experience with C++ in the past decade. There has been no fragmentation in C++ resource management since C++11.
- sethev 7y agoThat'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.
- ncmncm 7y agoEverything in C++ is opt-in. 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.