On Wed, Oct 16, 2024 at 10:59:06PM +0800, Qian Yun wrote:
>
>
> On 10/16/24 9:05 PM, Qian Yun wrote:
> >
> > My idea is that FRICASsys should not print to *standard-output*,
> > instead to a new stream *spad-output*.
> >
> > With this new indirection layer, we can control where the output
> > goes -- it can go to standard-output (for terminal interactive
> > usage), or it can go through socket for hypertex clients.
> > (This should also solve the ')spool' problem BTW.)
> >
>
>
> Hmm, one problem is that if a computation takes a long time,
> then we will not see its real-time output, instead we only
> see the whole output when the computation is done.
>
> I wonder if there's way to solve this problem...
My plan is that _nothing_ which may go to other processes should directly
use Lisp streams like *standard-output*. If you look at 'make_out_stream'
and 'mkOutputConsoleStream' the definitions may look silly, but
the purpose is to make result incompatilbe with Lisp streams, so
we know that corresponding streams use only "approved" functions.
Functions handling those streams need to be changes so that they
perform formatting without using Lisp stream functions. Then we
can redirect result to use sockets.
--
Waldek Hebisch
--
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/Zw_gdrvPZqBoBI-B%40fricas.org.