On Tue, Oct 14, 2008 at 6:25 PM, Martin Rubey wrote:
>
> I just discovered
>
> http://common-lisp.net/project/python-on-lisp/
>
> which let's you call Python from lisp:
>
> * (py::py "print \"Hello from python\"")
> sys:1: RuntimeWarning: Python C API version mismatch for module pol: This 
> Python has API version 1013, module pol has version 1011.
> If you can see this, Python is loaded and working
> Hello from python
> NIL
> * (py::py "print \"Hello from python\"")
> Hello from python
> NIL
> * (py::py "print [i**2 for i in [1,2,3]]")
> [1, 4, 9]
> NIL
>
> Maybe we could use this to call sage easily from FriCAS?  I'm not sure,
> but possibly it's very little work to provide a nice sage wrapper.
>

This looks like it might be an easy way to call Sage code from Axiom
but I do not yet see how it might be used in the other direction.
Would this mean that in order to use Axiom, Sage would have to be
started from with the Axiom environment? This is quite different than
the current model for interfacing with external programs that is
implemented in Sage so far.

Sage does however have Cython which is a Python to C compiler (for a
subset of Python). This is used extensively in Sage to improve
performance. It can also be used to interface efficiently with
external libraries. It seems to me that it should also be possible to
use it to access shared memory and to arrange call-backs with an
external Axiom process.

> I like SPAD/Aldor far better than those bits of Python I currently
> know, but what concerns the scope of the mathematics, Sage is
> by far superior to FriCAS.
>

I do not see any fundamental reason why one should not generate Sage
commands as strings in SPAD/Aldor and have them executed in Sage via a
simple call to 'eval'. This approach would fit-in quite well with the
existing model.

Regards,
Bill Page.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to