Re: Euphoria Instance

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 9 Apr 2002, at 20:34, euman at bellsouth.net wrote:

> 
> OK, I appreciate those comments.
> 
> I just looked and Xitami starts a new process module of Euphoria 
> every time I issue an SSI #exec cmd, If I dont want 100's of Euphoria's
> running at the same time I must specifically abort(0) each instance that 
> finished running. Hmmm, I wish I knew how to do what Kat suggested 
> and it work but me thinks that Xitami would actually have to be tied directly
> to
> Euphoria to do what she suggested. I may be way off base so could you explain
> some more Kat.

Use one of the Eu interpreters on the user contrib page, or talk to Rob or 
Karl about an exec(seq) in native Eu. Problem here is if it's busy, the server 
will hang. There are no multitasking threads.

Or you can have a restricted list of things the webpage server can request 
from Eu, write those items into plain ole functions, and leave Eu running, 
parse the req from the server, and call the appropriate functions or 
procedures. If there is nothing to parse and no functions currently executing, 
look for more input. Problem here is if it's busy, the server will hang.

Or, one Eu running all the time, as the interface to the server, that calls 
another Eu instance to execute a file, returning the results and then 
abort(0)ing that instance. This is the closest we can get now to Python's, 
Perl's, Lua's, Lisp's, Scheme's, Mirc's, or etc's exec(string) or eval(string) 
function. Use piping, dde, or socks,, depending on the OS and where the 
other "thread" is. The advantage to this is the server doesn't get a busy 
signal from anything.

Your application is a great example of why we could use threads and 
executable sequences, or dynamic loading and unloading. 

Kat

> Euman
> euman at bellsouth.net
> 
> ----- Original Message ----- 
> From: "Kat" <gertie at PELL.NET>
> To: "EUforum" <EUforum at topica.com>
> Sent: Tuesday, April 09, 2002 8:12 PM
> Subject: Re: Euphoria Instance
> 
> 
> > On 9 Apr 2002, at 19:33, euman at bellsouth.net wrote:
> > 
> > > 
> > > Hello,
> > > 
> > > Toying with my server and thought it sure would be nice to have one copy
> > > of
> > > Euphoria running all the time instead of starting an instance of Euphoria
> > > each time you needed to do some work.
> > 
> > Hmmm,, gets() the file you want, into a seq, and execute the seq. Loop, 
> > looking for input once per second, executing the proper file (if it exists),
> > until killed.
> > 
> > Kat
> > 
> > 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu