On Nov 25, 11:38 pm, Martin Rubey <[EMAIL PROTECTED]> wrote:

<SNIP>

> I admit, I'd be extremely interested in using Sage from FriCAS (i.e., "the
> other way round"), because I tried Python a fair bit meanwhile (I even used it
> for teaching) and I find it awful.
>
> The main problem to get started is to call python from lisp.  I posted a
> question on this topic a while ago in comp.lang.lisp, comp.lang.python, and
> here, but I didn't get the "final" answer.  It seems to be relatively easy to
> do it text based, but I don't think that makes too much sense.

Yes, that is what pexpect is doing and while it is not too bad to get
it working it isn't great for performance.

> For the record, here is the thread:
>
> http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/36...
>
> The very last message links to text-based communication.
>
> It seems to boil down to: does Sage need the python interpreter, or is it
> possible to have Sage as a library?

In theory one could embed Python into an shared library and have that
Python interpreter run Sage. Then one would need to deal somehow with
the C library interface from lisp. It sounds doable with the right low
level knowledge, but AFAIK no one has ever done it with Sage. It would
be an interesting exercise. You would also create a derivative of
Sage, so the whole think (if you chose to distribute it) would be
under the GPL, but IANAL :)

> Martin

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to