I need to run some F# code with a very deep stack. This is because the Mono philosophy is that the removal of tailcalls is an optimisation, and thus does not always need to work.
I can start a thread with a large amount of stackspace, and everything works fine until I use PSeq, which is a wrapper around System.Linq.ParallelEnumerable. Then everything dies with a stack overflow. I expect the reason is that PSeq relies on the global threadpool where the threads use the default stack size.
Could someone please tell me if there is any way of making PSeq use large stacks? Many thanks.