lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> I'm really interested to have a (good/elegant) solution to the pcall
> + yield problem (and my non-blocking-I/O + yield problem, too) in the
> Lua core.

We too! Why don't you try to implement your idea?

(Unlike proposals to change the language itself, which are allways
subject to taste, proposals to change the implementation are usually
easy to judge, once we have the new implementation to compare with
the old. So, the best argument to convince us of such changes is a
well-implemented working prototype.)

> BTW: An 'officially supported' way to recycle coroutines would be
> nice, too.

This is not difficult to implement in Lua. Create coroutines with a body
that is a big loop that receive a function, run it to completion, and

-- Roberto