Very nice! I wrote a library (not long ago) for stackless recursion in Clojure, which uses core.async and the go macro to automatically turn recursive calls into defunctionalized continuations - no (structural) refactoring required! [1]
It's not as fast as a plain iterative version would be, though, and the article gave me some ideas to experiment with.
It's not as fast as a plain iterative version would be, though, and the article gave me some ideas to experiment with.
[1] https://github.com/divs1210/xodarap/