by eggy · 3y ago · 0 comments
I am a novice-intermediate Ada user (and I started with SPARK before moving to just Ada), 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.
Another reason I prefer Ada is because I find it boringly simple like Pascal even though it is verbose, whereas I find Rust very obtuse, and I have a personal bias for array languages and ML languages. I wish Rust were more F#-like.
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 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).
Simple odds say you're more likely to find a crate for that than an ada package.
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