[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Thread-support in LUA
- From: David Jeske <jeske@...>
- Date: Mon, 8 Sep 1997 19:03:37 -0700
On Mon, Sep 08, 1997 at 08:08:24PM -0300, Mike Fahl wrote:
> I'm interested in the possibility of doing some multi-threaded work with
> LUA. However, there seem to be many global variables that could make
> this diffucult. I would like to have each "LUA-thread" start out from
> scratch (ie, as LUA normally starts up), and then only execute within
> its own domain.
I have an interest in doing the same thing.
> I guess I could probably do this as separate processes (ie,
> "fork"-style), but I would prefer to do it with separate threads within
> the same process.
> I assume this means I'd have to collect all LUA globals into a
> LUAGlobals structure. I would then have to allocate one such LUAGlobal
> structure for each thread, basically acting as a control block for its
> LUA thread.
This was my plan when I decided I needed to do this. I have not had the
time to implement it though. A "psudo-overlapping" desire of mine is to
have first-class function definetions (like lambda functions, in that you
would do something like "boo = function(a,b) ... end". When I brought this
up before, it was said that the parser needs to be made reenterant for
this to work, so I was hoping to combine my efforts for these two things.
David Jeske (N9LCA) + email@example.com