Hi Alex, Yes, by all means, keep the coroutines!
Perhaps add some of this mailing list chain as a caveat about the stack in the coroutines documentation: http://picolisp.com/5000/!wiki?coroutines In particular, the picture of the stack and the warning to allocate enough stack if there is any chance of using a lot of stack. Rand On Tue, May 21, 2013 at 6:55 PM, Alexander Burger <a...@software-lab.de>wrote: > > > Yep. That's the trade-off. As soon as you use a coroutine in PicoLisp, > you have to be conscious about your stack. For a program that has no > coroutine active when a lot of stack space is needed, these limitations > don't apply. As soon as the last coroutine finishes or is stopped, the > stack becomes unlimited again (at least if you called "ulimit -s > unlimited"). > > ... > > Then you could call (stack 3) before starting the first coroutine. This > allocates 12 MB for the main task, and 3 MB for each coroutine. > >