lua-users home
lua-l archive

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


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
form's parameters.

Of course it will require cookies to store information about the
particular state the user is bound to, but it's no big deal, since
apache has a module that implements this functionality.