Posted by WilliamC on Mon Oct 12 10:59:30 1998
In Reply to: suggestion for post-iglu posted by Myles (pp WilliamC) on October 05, 1998 at 18:50:15:
| Distribution: | timj@hoop.co.uk | timp@paneris.co.uk | mylesc@i-way.co.uk |
|---|
>In each page it sends out it
>stores the complete state of the virtual machine executing the script
>which implements the logic of the site.Hmmm, or it would be REALLY easy to implement this using
Perl or Java threads---you keep a thread representing each
open session alive in the language runtime on the server,
and use the inter-thread comms to make "show a page and
get the form info that comes back" look like a method
call.So how about: it parses the templates, on demand or
all in a big batch if you ask it to, into an efficient
intermediate representation using a proper HTML parser;
all that stays in the memory as long as the server runs
(like I guess with servlets);
so does a thread representing each session, although there
are defined entry points which can create a thread from
a ?-url.