by bike4beer · 9y ago · 0 comments
*
This is NOT APL.
Futhark is a functional language, we will start with the obligatory factorial program:
fun fact (n: i32): i32 = reduce () 1 (map (1+) (iota n))
This has nothing to do with APL.
Perhaps a more apt title would be "Python for the GPU".j
*
There is a paper on this subject, where an APL interpreter is written in FUTARK, but then most compilers are written in C. In reality the technology in question is Futark on GPU.
(Submitted title was "Futhark: APL on the GPU".)
Why Python? Futhark is a purely functional language and looks a lot like Haskell, so I think "Haskell for the GPU" would be a better title
OCaml would be an even more apt comparison.
I find it a bit ironic that of all the related submissions I (and others) have made, it's the one with the bizarre title that hits the front page!