On 11 Jul 2022, at 11:05, Qian Yun <[email protected]> wrote:
> 
> Hi Paul,
> 
> I have this idea for a while and might interest you:
> 
> I wonder if it is possible to load a subset of FriCAS's
> interp/ code into Emacs directly.  Basically a Emacs Lisp
> port of FriCAS.

This sounds like a very ambitious undertaking!

To be honest though, I’m not sure of the value of such a project, mainly 
because it will be tied to Emacs and not everybody likes Emacs (shocking I know 
:-).

Also, I’m sure you’ll run into lots of annoying problems to do with subtle 
incompatibilities between Common Lisp and Emacs Lisp.  Things that would really 
annoy me anyway, but as they say, YMMV.

> Since we do not use that much of Common Lisp's features,
> I think with some tweaking, this is doable.
> 
> The first step is, to identify a minimal subset of
> functions/files of "SPAD runtime", to support loading
> and calling SPAD functions.
> 
> The next step is, to find a minimal subset of functions/files
> of "SPAD interpreter", with that loaded into Emacs,
> the possibility is unimaginable...
> 
> Again, I haven't pursue further in this direction,
> hopefully I can get some time and test this idea soon.

Another idea may be just to try isolating the fragment of Common Lisp that is 
used and trying to define some sort of VM that would help to isolate the SPAD 
environment from the underlying implementation language.

> (BTW, have you tried to navigate compiled BOOT codebase
> with SLIME?  I tried it briefly, the "slime-list-callers"/
> "slime-list-callees" doesn't work yet, but the jump to
> sources functionality works.)

I think I tried that a long time ago but ran into problems.  Recently I’ve just 
added some ETAGS support functionality to my Frimacs Boot mode and I use that 
to help me navigate the codebase.

Paul

-- 
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/F0D5728A-8F21-4B16-A8F0-BE3BB50612E6%40gmail.com.

Reply via email to