Re:Futhark – A small programming language that compiles to e...
by sctb on Sunday March 26, 2017 @11:26AM
(#13961233)
Thanks, a moderator updated the submission title to clarify.
(Submitted title was "Futhark: APL on the GPU".)
Re:Futhark – A small programming language that compiles to e...
by Kametrixom on Sunday March 26, 2017 @08:22AM
(#13960404)
> Perhaps a more apt title would be "Python for 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
Re:Futhark – A small programming language that compiles to e...
by Athas on Sunday March 26, 2017 @09:20AM
(#13960643)
(Author here.)
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!
Re:Futhark – A small programming language that compiles to e...
by s_ngularity on Sunday March 26, 2017 @09:28AM
(#13960679)
Might be related to that GPU-accelerated APL compiler which was on the front page a week or so ago
*
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.
https://futhark-lang.org/publications/fhpc16.pdf