lua-users home
lua-l archive

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


erik@hougaard.com (Erik Hougaard) wrote:
> ----- Original Message -----
> > What are people using multiple states for?
> > Is it typically for threads?
> 
> Yeah.. I'm using it for threads .. uCore relys heavily on thread... Each
> window is a thread - the server module have several threads and in each
> thread there is a state..  Another thing is to have sercure areas - I have 
a
> special state that only has a few function registered that I'm using to
> process user input (So that they can type an expression in a field - but 
not
> call tons'o functions that would compromise security).

In LISP systems they use the ability of some LISP implementations to 
manipulate
the state to do light-weight threads. That is, threads within the VM, not 
the OS.
I wondering if this is possible in Lua and if it would be a better solution 
that
multiple states since sharing state information would be as difficult(?)

Steve