I am currently working on the jfricas interface.
Unfortunately, there are some rather unsafe elements in it,
I must patch the functions |mathprintWithNumber| and OBEY
https://github.com/hemmecke/jfricas/blob/master/jfricas/webspad.lisp#L84
;;; Override a FriCAS function in order to remove the equation number.
(DEFUN |mathprintWithNumber| (|x|)
(PROG ()
(RETURN
(PROGN
;(|ioHook| '|startAlgebraOutput|)
(|saySpadMsg| '|--FORMAT:BEG:Algebra|)
(|maprin| (|outputTran2| |x|))
(|saySpadMsg| '|--FORMAT:END:Algebra|)
;(|ioHook| '|endOfAlgebraOutput|)
))))
(defun OBEY (S)
(sb-ext::process-exit-code
(sb-ext::run-program "/bin/sh" (list "-c" S) :input t
:output *standard-output* :error *standard-output*)))
and would be somehow happy if I wouldn't have to do this.
Overriding OBEY is for catching the output from the external process in
order to be able to show it in a jupyter cell. Maybe my Lisp knowledge
is too weak and it would also somehow work without changing OBEY.
https://github.com/fricas/fricas/blob/master/src/interp/vmlisp.lisp#L743
#+: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 (sb-ext::process-exit-code
(sb-ext::run-program "sh"
(list "-c" S) :input t :output t :error t :search t)))
The (boot) function mathprintWithNumber is perhaps a bit harder to make
it working in jfricas and in vanilla fricas.
I do not know whether it's a good idea to integrate jfricas (in for
sbcl) into the FriCAS sources. That would require to ask to include the
hunchentoot webserver (or a nice and simple way possible without root
access) to install hunchentoot at the start of jfricas.
Other than this there should be a little more stuff for fricas.github.io
-- but that can be done in a somewhat independent way from the next
release and wouldn't count as a blocker.
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/4a58242a-575d-f8c5-8eaa-070be2c0602e%40hemmecke.org.