Re: fork in Lisp? was: Maxima servermode: stability of commands....
Subject: Re: fork in Lisp? was: Maxima servermode: stability of commands....
From: Robert Dodier
Date: Wed, 10 May 2006 13:41:00 -0600
Hi Gerd,
> The symptoms were the following: on the laptop, I got my initial
> input echoed back to me, and from then on, the command/reply sequence
> was out of sync: for each command, I got the reply from the previous
> one. Also, I got different results in both environments when there
> was a syntax error in an expression.
OK, one aspect that differs between Clisp and SBCL is that Clisp
runs readline by default, and SBCL doesn't. Readline might be
interfering -- just a guess.
What do you think about arranging the classic server mode in which
the server listens for connections and then executes fork/exec for
each client? That would guarantee a fresh, isolated environment for
every client, and it would be faster than relaunching Maxima.
It would almost certainly depend on details of the Lisp implementation;
I don't see that as a showstopper, as they say.
best,
Robertl