external library through sockets



On 9/10/07, Fabrizio Caruso <caruso at dm.unipi.it> wrote:

> Using CFFI is a bit complicated for me because my knowledge
> of Lisp is very limited.
>
> I thought that maybe I could write a server program in C/C++
> that uses sockets to communicate with Maxima.
>
> Can Maxima use sockets for input/output?

Yes, but socket functions are not exposed at the Maxima user
level; you would have to go into Lisp to call them, and they are
probably different for each Lisp implementation.

In principal, calling external functions via a socket is not
too complicated, but there are many details to take care of.
It's not clear to me that it would be any simpler than CFFI.

Maybe someone has already written a library for remote
procedure call in Lisp via sockets. You could take a look
at common-lisp.net for example.

Hope this helps,

Robert Dodier