Hacker News new | ask | show | jobs
by disgruntledphd2 6 days ago
R and Numpy are also pretty good at this (and Julia was inspired by both of these and Matlab).

In fact, I'm reasonably certain that R (known as S in the 70's) was the first real language designed around this concept.

2 comments

I guess it depends on what real language means to you, but APL[1] existed before and it's fully array based.

[1]: https://en.wikipedia.org/wiki/APL_%28programming_language%29

When I writing the comment I was like, maybe APL was first? Nah, no-one will claim that. So congratulations on nerd-sniping me ;)
I learned R for statistical programming at uni, where there was less emphasis on vectorised computation, so it didn't jump to mind, but yes! I've never quite felt like numpy 'clicked' for me in the same way, though. It always felt a bit bolted on, which I suppose it is, as a library (though @ operator overloading etc makes things somewhat nicer now).