[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Resumable VM in 5.2?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 26 Aug 2009 10:43:12 -0300
> Just wondering, has there been any thought/work in making Lua 5.2 have
> a resumable VM (as in )? This seems like a very useful mechanism
> to have a stronger coroutine system without dealing with Coco.
Yes. It is basically done. The general (and relevant) ideas came from
the patch, but the details are somewhat different. In the API, we
did not implement the lua_v* API, only the lua_i*. And those functions
also get an explicit continuation function to be called when resumming,
istead of the original function.