Le dim. 16 avr. 2023 à 19:54, Ralf Hemmecke <[email protected]> a écrit : > > Hi Greg, > > On 16.04.23 18:25, Grégory Vanuxem wrote: > > In src/interp/vmlisp.lisp you have: > > #+:sbcl > > (defun OBEY (S) > > #-: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))) > > Oh, yes. Thank you. It seems that I forget my own code. However, it only > works currently for sbcl and with my patches for jfricas.
I also have some problems like this. This is what bother me a lot with Common LISP. > So the > restriction to SBCL is what bothers me for the general case. For me > personally it might work, but otherwise... :-( > > It somehow looks like Kurt used the same mechanism. > > https://github.com/nilqed/spadlib/blob/master/pipe/src/pipe.spad I think this is what you're looking for. But this is Spad code, and if you need to support more implementation that will be annoying from my point of view. Personally I would write it directly in LISP. You can easily "translate" it to ECL if you need this. I do not own ECL but beginning by changing (sb-ext::run-program ...) to (ext:system ...), should do the trick to initialize the pipe between FriCAS and the other REPL. I would also suggest looking at the ECL or GCL documentation. More importantly, find the way to create the two ways stream string with (sb-ext:process-output proc) (sb-ext:process-input proc) as parameters. I do not know how actually. Camm should know I think. I forgot, detach the created process maybe. Greg -- 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/CAHnU2daVdSgL4MpAbbz9E%3DtzLu6PbHd7G7g%3DA%2BPrEtVCq9TJyw%40mail.gmail.com.
