2 ms·
> but a lot of the arguments in favor of Rust mention that "there is a crate for that". I would say you need to compare vanilla Rust "out-of-the-box" with Ada
by masklinn 3y ago
> but a lot of the arguments in favor of Rust mention that "there is a crate for that". I would say you need to compare vanilla Rust "out-of-the-box" with Ada for a fair comparison.
Smart pointers are vanilla rust shrug.
But also, it's pretty fair to mention the availability of crates, because they're easy to integrate, liberally used by the project itself (go browse https://github.com/rust-lang https://github.com/rust-lang and you'll see a number of projects for libraries distributed as crates rather than part of the stdlib), and there's a large breadth of available packages.
The internet tells me Alire is a (the?) package manager for Ada, its listing has 373 entries right now (https://alire.ada.dev/crates.html https://alire.ada.dev/crates.html).
Simple odds say you're more likely to find a crate for that than an ada package.
- worik 3y ago> But also, it's pretty fair to mention the availability of crates, because they're easy to integrate, liberally used by the project itself Yes This is a strength and a weakness in Rust The crate ecosystem is broad an deep. It is seemless to integrate crates if you are connected to the internet. That is a strength But it is also a weaknesses. "seemless to integrate crates if you are connected to the internet" but of unknown provenance and varying quality. There are steps you can take, tools you can use to ameliorate the issue, but it is a real danger It depends what you are working on. For systems which must be secure and reliable -weapons, flight control, banking, maybe Ada is a better choice For me I make musical instruments, and I will stick with Rust for that I know Rust, not Ada. A very interesting discussion for me to