Re:A learning platform to teach the Ada and SPARK programmin...
by PeCaN on Wednesday July 25, 2018 @06:34PM
(#17613545)
It'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.
Re:A learning platform to teach the Ada and SPARK programmin...
by Fabien_C on Thursday July 26, 2018 @05:04AM
(#17616069)
There's a little benchmark project here: https://github.com/frol/completely-unscientific-benchmarks
The Ada implementation is the second fastest behind C++.
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?