4 ms·
I programmed a radar system with Ada, I guess that counts a defense system. The language grew on me. I miss parts of it, but it suffers from the chicken egg
by acomjean 8y ago
I programmed a radar system with Ada, I guess that counts a defense system. The language grew on me. I miss parts of it, but it suffers from the chicken egg problem. Not enough people using it to make useful libraries from it so it doesn't get a lot of new users.
Also the lack of a really good compiler that was free held ada back, but that shouldn't be a problem anymore. (https://en.wikipedia.org/wiki/GNAT https://en.wikipedia.org/wiki/GNAT)
The other knock on ada was it was slow. All the runtime checks eat up cpu resources which made it slower than the competition.
The language and package system are solid though. I was switching between C and Ada for a while and I found programming in Ada to be be a better experience.
- pecg 8y ago> The other knock on ada was it was slow. I'm curious, is the compilation time that takes too much, or is it the execution time? I'm really interested in learning the language, but I don't want to end-up with programs that generate slower native code, compared to that of C. What's your experience with it?
- PeCaN 8y agoIt's not any slower than C. In some cases the compiler can actually generate better code because of stricter rules on pointer aliasing. You can also do more with only stack allocation in Ada, which is a huge win. It does generate some extra code for things like range checks and checking invariants, i.e. things you can skip in C to write buggy code.
- Fabien_C 8y agoThere's a little benchmark project here: https://github.com/frol/completely-unscientific-benchmarks https://github.com/frol/completely-unscientific-benchmarks The Ada implementation is the second fastest behind C++.
- jnbiche 8y ago> All the runtime checks eat up cpu resources which made it slower than the competition. You can turn off all the runtime checks. When you do, Ada is competitive with Rust and even C. But user jonathanstrange's criticisms above of Ada and Adacore hit the nail on the head, in my opinion. Ada's a great language but unless Adacore revisits the licensing, it's doomed. Now, even the defense industry has for the most part abandoned Ada, despite it being perfectly suited for the industry.
- jononor 8y agoWhat do they use instead of Ada, in the defense industry?