On Sat, Dec 03, 2011 at 03:30:16PM +0100, Waldek Hebisch wrote:
> Serge D. Mechveliani wrote:
> > 
> > People,
> > 
> > This is about the  Haskell -- FriCAS interface by a socket.
> > 
> > There exists the  HaXR  library for the Haskell interface by RPC
> > ("remote procedure call").
> > [..]
> > 
> > Has  FriCAS  a XML-RPC compatible protocol for the socket interface?
> > 


> No, currently one has to do all needed low-level work.
> 
> BTW: I plan to add some higher level support, by from the wikipedia
> article XML-RPC does _not_ look like good candidate.


At least Haskell has some interface to C.
Maybe, you can describe a String interface of C to Axiom via a file?
Imagine the following.
(1) A  C function        char*  axi(char* p)
   takes a string starting from the place  p  and ending at a certain
   `end' symbol
   (I am trying to recall C, fix this, please, if necessary).
(2) It puts this string  str  to the file  interf.input  for Axiom.
(3) Axiom  inputs  str  from this file,
   parses it as a program call for the interpreter,
   runs the interpreter, writes the result to  str'
   outputs  str'  to this file,
(4) axi  inputs  str'  from this file and returns the pointer to the
    head of str'.

Probably,
* axi  must somehow open and close the file for output (?),
  open/close the file for input,
* Axiom must apply  )read "interf.input",  )write "interf.input"
  (?),
  open/close the file for input,  open/close the file for output  (?)
-- all this to be done in an appropriate sequence.

How to arrange this?
What needs to be written and called at the Axiom end?

Maybe, if this works with a file, then one could think of a socket.

Regards,

------
Sergei
[email protected]





-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to