3 ms·
> "An array language is a programming language that supports the manipulation of entire arrays – or portions of arrays – as a basic unit of operation." I agree
by bradrn 3y ago
> "An array language is a programming language that supports the manipulation of entire arrays – or portions of arrays – as a basic unit of operation."
I agree with this definition. In neither Haskell nor Python does this count as a ‘basic unit of operation’. As the sibling comment mentions, it requires a lot of extra work in both languages — hardly ‘basic’!
> Let us look at Wikipedia [2], where Ada is considered an array language.
As for this, it appears from the manual that arithmetic operators are overloaded only for 1D vectors and 2D matrices. So in this regard Ada is much more limited than ‘real’ array languages.
[manual link: https://www.adaic.org/resources/add_content/standards/05rm/html/RM-G-3-1.html https://www.adaic.org/resources/add_content/standards/05rm/h...]
- thesz 3y ago>As for this, it appears from the manual that arithmetic operators are overloaded only for 1D vectors and 2D matrices. So in this regard Ada is much more limited than ‘real’ array languages. Yes, yet it is included into list. Whereas Haskell, which can have operators for arbitrary tensors, is not. In fact, even NESL [1] is not included and I bet you will also resist to include it as an array language. [1] https://en.wikipedia.org/wiki/NESL https://en.wikipedia.org/wiki/NESL But in case you will consider NESL an array language, please consider that Haskell has nested data parallelism (in language), inspired by NESL.