23 ms·
I think you're understating the case for Rust. Rust has a better standard library (e.g., std::option) and better resource abstractions. The "existing code" ad
by paulddraper 11y ago
I think you're understating the case for Rust.
Rust has a better standard library (e.g., std::option) and better resource abstractions.
The "existing code" advantage seems a weak case at best for C++, given that it doesn't even have a package manager to use the code. Including 3rd party code is nightmarish.
A greenfield project would have to think long and hard about taking on the enormous bloat and not-for-mortals specifications of C++ over Rust.
- adrianN 11y agoI also think that Rust has a bright future ahead, but C++ will probably live forever. There is a huge amount legacy code in C++, a lot of it tied to embedded systems that have service contracts that measure decades. C++ didn't manage to displace C completely, I doubt that Rust will manage to displace C++. This is especially true now that C++ is seeing active improvement that makes it a lot more attractive for new projects.
- pjmlp 11y agoWhile true, I think the rise of Linux and FOSS, alongside embedded development helped C stay around. On Mac OS, Windows, Symbian, BeOS, even commercial UNIX with CORBA and Motif OO libraries, developers were already transitioning from C to C++ when Linux and FOSS, which depend heavily on C, started to gain adoption. Then you have the embedded space, specially with micro-controlers, where even packing C into the EPROM is already an exercise. As for C++, the new standards rely reinvigorated it, with Apple, Google and Microsoft pushing it forward. One of the reasons I updated to Windows 8 (now on W10) was to be able to use C++/CX with XAML. Visual C++ finally catched up with C++ Builder in terms of RAD experience. This where I see Rust still needs to grow. There are lots of use cases where Rust still does not provide an out-of-the-box solution vs C++ tooling does.
- CyberDildonics 11y agoI'm not making a case for anything or talking about 'existing code'. What I said was that the infrastructure is here right now. I hope Rust succeeds in the future but there is a very big difference between the tools available right now.