Should I choose Ada, SPARK, or Rust over C/C++? (2024)
11–20 of 173 posts
Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#12It has full native interop with C and C++ so you can already use all your existing libraries. Historically it lacked cross-platform support but this is not true anymore. It does lack a native GUI framework, but for now you can keep using C++ ones.
Some people complain about its ties to Apple, but hopefully with it gaining much wider cross-platform support, it may not matter that much in the future, but I guess it remains to be seen.
Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#13I don't know much about Ada. Is its type system any better than Rust's?
Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#14Alternatively, just get better at C/C++… It isn’t going anywhere, and it feels like more developers are coming around to the idea that maybe security guarantees are not worth throwing the baby out with the bath water.
Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#15Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#16I've never heard of SPARK. What advantages does it have compared to Lean?
Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#17Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#18Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#19Dlang is the GOAT!
Re: Should I choose Ada, SPARK, or Rust over C/C++? (2024)
#20I know there is a belief that Rust/Ada etc is safer than C/C++ and in some cases that is true. I know of multiple, airworthy aircraft that are flying with C++ code. I also know of aircraft flying with Ada. The aircraft flying with Ada is hard to maintain. There is also a mountain of testing that goes into it that is not just unit testing. This mountain of integration, subsystem and system level testing is required re…
I regularly do hobby bare-metal programming in both Ada and C. I find that Ada helps prevent a lot of the common footguns in C. It's not a silver bullet for software safety, but it definitely helps. The point of any programming language is to make doing the right thing easy, and doing the wrong thing hard. All things considered, I think Ada does a good job of that.