Comment Comment by CyberDildonics I don't know how to avoid heap memory allocations in haskell or make sure memory is on the stack, but both are very easy to do in C++. parent CyberDildonics 6 years ago