4 ms·
Has anyone tried numerical programming in Ada? I haven't played with Ada arrays much, but I know it supports various different representations (so it can be bi
by david-given 10y ago
Has anyone tried numerical programming in Ada?
I haven't played with Ada arrays much, but I know it supports various different representations (so it can be binary compatible with Fortran column-first arrays and C row-first arrays), it's got nice array slicing semantics, it's got good support for generics which can operate on arbitrary sized arrays.
I don't know whether it has Fortran-like aliasing guarantees, though. You can't take an address of an array element unless the array has been declared to support it, which helps, but I don't know whether you can e.g. pass the same array by mutable reference into a function twice. (It makes sense that this isn't supported, as it's kinda meaningless, but I can't find an actual reference.)
- nickpsecurity 10y agoIt might have changed in 2005 or 2012 revisions but here is Ada 95's take on that: http://www.adaic.org/resources/add_content/docs/craft/html/ch06.htm#6.7 http://www.adaic.org/resources/add_content/docs/craft/html/c... Also check out ParaSail language designed for easy, safe parallel and concurrent programming. It's an Ada variant from Tucker Taft at AdaCore. Might have something interesting on this topic. Might not.