Quantcast
Channel: Noise
Viewing all articles
Browse latest Browse all 39498

New functional programming language can generate C, Python code for apps (InfoWorld)

$
0
0

Post Syndicated from ris original http://lwn.net/Articles/685170/rss

InfoWorld introduces
Futhark
, an open source functional programming language designed for
creating code that runs on GPUs. It can automatically generate both C and
Python code to be integrated with existing apps. “Most GPU programming involves using frameworks like OpenCL or CUDA, both of which use variations of C or C++ to generate code that runs on the GPU. Futhark can generate C code, but is its own language, more similar to Haskell or Standard ML than C. (Futhark is itself written in Haskell.)

Futhark’s creators claim that the expressiveness of the language makes it easier to describe complex operations that use parallelism. This includes the ability to support nested parallelizations (parallel operations inside other parallel operations). Futhark can do this “despite the complexities of efficiently mapping to the flat parallelism supported by hardware, as a great many programs depend on this feature,” say the language’s creators.”


Viewing all articles
Browse latest Browse all 39498

Trending Articles