Haskell recursion and memory usage
Don’t worry quite so much about the stack. There is nothing fundamental that says function calls have to be implemented using stack frames; that is merely one possible technique for implementing them. Even when you have “the stack”, there’s certainly nothing that says the stack has to be limited to a small fraction of available … Read more