One disadvantage is that the Lisp output is still to the
terminal of FRICASsys instead of spadclient.
(We can redirect SPAD output but not Lisp output.)
For example the debugger and trace output.
There is a solution at C level, namely "dup2".
We can redirect the 0/1/2 of FRICASsys to socket that
connects to spadclient.
Preliminary test shows that this works really well.
For SBCL, the *debug-io* is not associated with 0/1/2
(stdin/stdout/stderr), instead it is /dev/tty.
So we might need to set this first:
(setq *debug-io* (make-two-way-stream *standard-input*
*standard-output*))
- Qian
On 10/21/24 11:10 PM, Qian Yun wrote:
It's easier than I originally thought. In fact, I have almost
moved the whole socket communication into Lisp (viewman works,
hyperdoc partly works), making "sman" and "session" redundant.
https://github.com/oldk1331/fricas/commits/newserver/
(Code is in very very early stage, if you really want to
run it, apply the patches to 1.3.11-full release tarball,
and "export NEWSERVER=1".)
This is concrete proof of concept that this idea really works.
- Qian
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/3f59286e-682d-4635-9110-4cb2b2146014%40gmail.com.