[Maxima] Maxima in Russia
robert.dodier at gmail.com
Sat Nov 10 11:24:05 CST 2007
On 11/9/07, _SmallTalk_ SmallTalk <mrsmalltalk at gmail.com> wrote:
> My teacher said me that my theme must be "Creating library on C that
> programmers can to use opportunity of maxima in them application
> ".Write me your opinion about this theme
Combining C programs and Maxima is a very useful goal.
(1) CFFI is a C/Lisp interface library. A C program could call
Maxima functions via CFFI. Some varieties of Lisp support CFFI,
including SBCL and Clisp. I recommend Clisp for greater
(2) Maxima assumes there is always someone at the console.
If the C program calls Maxima and Maxima waits for console
input, well, there is trouble. The Maxima functions asksign and
askinteger ask questions; there might be others.
(3) Aside from CFFI, a C program can interact with Maxima
via sockets (reading and writing plain text). The program
share/contrib/maxima-server.lisp creates new sessions via
fork; it is for SBCL only.
Good luck, & let us know how it turns out.
More information about the Maxima