3 ms·
Should be interesting to see what people will do the the RISC-V (V)ector extension with array languages. I would think there is a pretty straight 1:1 conceptual
by cmrdporcupine 3y ago
Should be interesting to see what people will do the the RISC-V (V)ector extension with array languages. I would think there is a pretty straight 1:1 conceptual correspondence there, and one could write a pretty nifty compiler to go from an APL-ish thingy to those instructions, and get some serious oomph.
- dzaima 3y agoWhile RVV still makes for a good target for arraylang implementations, RVV isn't really much closer to arraylangs than AVX-512, or really any SIMD if you squint hard enough (the scalability of RVV/SVE is unrelated as you still need to have loops; and the existence of VL, while nice, doesn't give any new fundamental possibilities). Basic list operations might have a roughly-1:1 mapping to simple RVV loops, but many others still require a decent bit of extra code (all search functions (hash- or lookup tables), narrow matrix ops (processing multiple rows at a time); even compress operations get questionable when there's multiple of them due to their variable-length nature).