3 ms·
It does not. Array-oriented languages (or Vector-oriented languages, if you like) are generally distinguished by features like concise syntax, implicit conform
by RodgerTheGreat 3y ago
It does not.
Array-oriented languages (or Vector-oriented languages, if you like) are generally distinguished by features like concise syntax, implicit conforming/mapping over homogenous collections, and a strong de-emphasis on explicit looping or recursion in favor of abstract (and often parallel) iteration.
Some of these features could be implemented- to an extent- in a Lisp, but they do not reflect normal Lisp programming style.
- aeonik 3y agoClojure actually has a fair amount in common with Array Languages, at least the mapping and conformation. That being said, I really really like Array Languages for certain subsets of problems over anything else. I kinda think every language and have an embedded Array Language engine, kinda like how Regex works so well for text processing.
- cmrdporcupine 3y agoThe key thing is that lisp type (and most functional) languages, including Clojure, emphasize function application and (often) recursion. Array languages try to get you to formulate your problem in terms of batch applications across whole vectors at a time, rather than piece by piece. Which is actually potentially insanely faster on modern hardware where branches are expensive and we have special SIMD and/or vector hardware support.