Get the latest tech news
NumPy-style broadcasting in Futhark
A high-performance and high-level purely functional data-parallel array programming language that can execute on the GPU and CPU.
The motivation for the work was a desire to make mathematical code involving higher-dimensional arguments look closer to something you’d write by hand, without the clutter introduced by a bunch of “administrative” maps that are needed to lift scalar operations. We can conceive of an interactive system where the user just types 1 or 2 to make a choice and disambiguate (although having the compiler modify the programmer’s source code in this way probably isn’t a particularly good design). This is a direct result of the fact that Futhark treats rank polymorphism as syntactic sugar and there’s no “magic” going on—all implicit constructs ( map and rep) are just standard functions already available to the programmer.
Or read this on Hacker News