4 ms·
> There are interesting projects underway for parallel programming (both on CPUs and GPUs) that rely heavily on the type system Are you referring to Accelerate
by dbaupp 14y ago
> There are interesting projects underway for parallel programming (both on CPUs and GPUs) that rely heavily on the type system
Are you referring to Accelerate[1]? And isn't Repa[2] stable and usable?
[1]: https://github.com/AccelerateHS/accelerate/ https://github.com/AccelerateHS/accelerate/
[2]: http://repa.ouroborus.net/ http://repa.ouroborus.net/
- danieldk 14y agoUnfortunately, repa and vector are sometimes a few times slower than counterparts in C or C++ for the lack of SIMD intrinsics. Thankfully, things are moving forward fast on that front: http://ghc-simd.blogspot.com/ http://ghc-simd.blogspot.com/
- neutronicus 14y agorepa also has some unfortunate lacunae, either in the API or in the documentation. For instance, one thing I tried to do but couldn't - apply `scanl` to an array with a piece of intermediate state that is threaded through the computation, save the piece of state at the end, and then apply `scanr` to the same array, using the piece of state from the application of `scanl`.