Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import maxima into sbcl

As we know, Maxima is based on common lisp. I'm writing a lisp program working in Maxima; using Maxima procedures. I press argument "maxima -p foo.lisp" to load the lisp file, and it works well. However, I'm poor at programming, so my programs have many bugs. I want to debug my program, but I realize that it is not so easy.

I got used to slimv, a vim-script to extend lisp support of vim. Slimv is an awesome tool, which contains swank to connect between slimv and lisp interpreter, but when I loaded 'start-swank.lisp' in the Lisp Mode of Maxima, it returned an error:

>> Error in CONDITIONS::CLCS-LOAD [or a callee]: The variable *LOAD-TRUENAME* is unbound.

I realized that it is due to gcl. So I came to search for maxima-sbcl. However, there's no official package of maxima-sbcl. I was disappointed.

I wonder whether I can load the whole maxima into sbcl. If so, I can read it in REPL of swank, and debug my program successfully.

Or is there anybody who has better ideas?

like image 964
Yai0Phah Avatar asked Jan 17 '23 09:01

Yai0Phah


1 Answers

I've come across this project, which might be what you're looking for
https://github.com/filonenko-mikhail/embeddable-maxima

This is the developer's blog (Russian) which mentions usage nuances

like image 110
sabof Avatar answered Jan 26 '23 06:01

sabof