[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Corotines in Lua
- From: "Stefano Lanzavecchia" <stf@...>
- Date: Fri, 27 Oct 2000 13:16:28 +0200
> Date: Thu, 26 Oct 2000 05:07:00 -0700
> From: Dennis Taylor <dennis@funkplanet.com>
> Subject: Re: Corotines in Lua
>
> > arguments on my cororesume. One argument only (but tables can do
> > wonders). And coronew receives a closure instead of a function name.
>
> Nifty. Where/when will we be able to take a look at your patches
> and see how you implemented it? It sounds like interesting reading, at
> the very least.
Any time, really. Well... almost. At the moment the coroutines are stored
into a static vector of coroutine structures with ten slots. That means:
hard encoded upper limit to the number of coroutines. Easy to implement, but
not nice... If you are willing to look at my experiments (not even proofs of
concepts) I'll send you (or put them on the eGroups file archive for the
maillist) my files. And then you are alone :-)) Win32, only, of course,
since I am using fibers. I said earlier that it would be easy to replace
fibers with coro-1.x.x but since for the moment I am doing all my
experiments in Win2000, fibers is the easiest way for me.
I thought I'd wait a bit to straighten things a bit. I am trying to come up
with a good way of exposing a reasonable coroutine API in Lua and try to
implement light-threads to see if I am on the right path.
Unfortunately, this is my second job (and it's all a bit airy about this
job), my first one being senior APL developer for a company not interested
at all in Lua, videogames or coroutines. That's why progress is somewhat
slow and erratic: apart from weekends, the time I can dedicate to this is
only some expanded spare time and evenings when my brain is already
overloaded by the day's mess.
But, I repeat, I am not trying to hide anything, so I am ready to send my
skeletons (it's almost Halloween) any time. And if any of you guys wants to
pick up from where I left and do what I only intended to do, that would make
me very happy ;)
In fact it would be a good idea to check ET's plans, as well, since he seems
to know a lot more about these topics than I do. And his implementation
should me more rational and sound than mine.
--
WildHeart'2k - mailto:stf@apl.it
Homepage: http://come.to/wildheart/
<<<Go-chounai no mina-sama Kunou-chan ga yatte kuru ---
Everyone in the neighborhood, Kunou-chan is coming around>>>