Re:Don’t Think, Just Defunctionalize
by tempodox on Wednesday December 23, 2020 @10:47AM
(#25518776)
I see. And the end user might not even know that library is built into the tool they use, or know how to alter the stack size limit on their machine. So I can't think of a better solution either.
In Rust (where threadsafety is easy and cheap), I tend to just spin up a thread of known (large) stack size, and do computations there.