I am trying to use sbcl-1.4.6.  ATM it seems that it works.
However, since the process uses different, newer environment
(Gentoo) there are possible glitches.  I have now put test
tarball at

http://www.math.uni.wroc.pl/~hebisch/fricas/fricas-1.3.9-pre.amd64.tar.bz2

binary works.  In particular hunchentoot is included, so it
should work with jfricas.

I installed this binary. In fact, I roughly followed the steps at

https://hemmecke.github.io/qeta/fricasinstall.html#recommended-installation

I had, of course, no problem with libssl. So that section from the above site can safely be ignored.

The jfricas installation in a virtual environment ran smoothly and obviously seems to work nicely.

I have not installed JupyText, but these things do not depend on FriCAS or hunchentoot, but are more connected to the jupyter side.

Waldek, newer versions of jfricas rely on a new variable *OBEY-STDOUT* in FriCAS.

https://github.com/fricas/jfricas/commit/78be121a4b10ee4183d4e097547c05a4756da633

The respective patch to FriCAS is attached.

If that is not in the fricas repo, I must do a redefinition of OBEY during the start of webspad.lisp from jfricas.

https://github.com/hemmecke/jfricas/blob/master/jfricas/webspad.lisp#L95

I would rather like to go without such a redefinition and simply switch a variable to true.

Similarly with mathprintWithNumber. But I guess mathPrintWithNumber is too late for the next release.

The definition of |interpret-block| would also be a nice addition to FriCAS, since it allows multi-line strings to be interpreted as if coming from a file (with intendation working correctly).

https://github.com/hemmecke/jfricas/blob/master/jfricas/webspad.lisp#L102

I would like to ask for inclusion of the attached patch since that
does not actually change any existing behaviour of FriCAS, except that one then can set *OBEY-STDOUT* to true in order to be able to catch everything that goes to the stdout, in particular the output of
")sys pwd".

Anyone else who tested jFriCAS? See above website for installation steps. You just use the binary Waldek provided.

http://www.math.uni.wroc.pl/~hebisch/fricas/fricas-1.3.9-pre.amd64.tar.bz2

Thank you
Ralf

--
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/c4b00fab-ad4d-b424-88fd-41879b5c978b%40hemmecke.org.
From c189555e526c50c86e542bf497278f8d2d7b18fb Mon Sep 17 00:00:00 2001
From: Ralf Hemmecke <[email protected]>
Date: Sat, 4 Jun 2022 18:04:37 +0200
Subject: put hunchentoot into FRICASsys

Works only with sbcl.
---
 src/interp/vmlisp.lisp | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/interp/vmlisp.lisp b/src/interp/vmlisp.lisp
index df009e49..19a6e54b 100644
--- a/src/interp/vmlisp.lisp
+++ b/src/interp/vmlisp.lisp
@@ -718,11 +718,17 @@
 #+:allegro
 (defun OBEY (S) (excl::run-shell-command s))
 
+(defvar *OBEY-STDOUT* nil "if T use *standard output*")
 #+:sbcl
 (defun OBEY (S)
-   #-:win32 (sb-ext::process-exit-code
-             (sb-ext::run-program "/bin/sh"
-                    (list "-c" S) :input t :output t :error t))
+   #-:win32 (if *OBEY-STDOUT*
+               (sb-ext::process-exit-code
+                (sb-ext::run-program "/bin/sh" (list "-c" S) :input t
+                     :output *standard-output* :error *standard-output*))
+
+               (sb-ext::process-exit-code
+                (sb-ext::run-program "/bin/sh"
+                    (list "-c" S) :input t :output t :error t)))
    #+:win32 (sb-ext::process-exit-code
              (sb-ext::run-program "sh"
                     (list "-c" S) :input t :output t :error t :search t)))
-- 
2.34.1

Reply via email to