[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Managing states
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 8 Feb 2000 13:06:42 -0200 (EDT)
>From email@example.com Tue Feb 8 10:45:19 2000
>From: "Andre de Leiradella" <firstname.lastname@example.org>
>Is it possible to freeze the execution of a lua program, save its state
>and, some time later, restore the saved state and resume execution from
>where it stopped?
>My idea is to provide a programming environment that makes it easier to
>write cgis, freeing the programmer from having to write dozens of
>separate programs to implement one system. Instead, the program could
>be written all in once, providing the user with data (html) just before
>calling the freeze function, and resuming execution after the user
>presses the send button, making the program continue just after the
>freeze as it nothing had happened, and providing some way to access the
Why not have a single Lua interpreter running "forever" and have CGIs talk
You'll need some kind of interprocess communication, but it seems to me much
simpler than "freezing" the state of the program.
I think CGILua for Windows does something like this.