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.
>
> 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 superiour to
> FriCAS.
>
I think you underestimate effort needed to good wrapper. Also
when concerning mathematics Sage still is mostly a wrapper:
in his talk Wiliam Stein said that Sage has 5.5 milion lines
of code, most in included packages and about 0.5 milion lines
written for Sage. In other words, more than 90% of code is
from included packages. Of course, Sage frequently uses only
a part of given package and several included parts have nothing
to do with math. But given that Sage specific part is responsible
for user interface (and this part certainly requires a lot of code)
I think that also for mathematical code "foreign" parts
dominate compared to parts written for Sage.
Now, that raises question if we should wrap Sage or directly
wrap packages used by Sage. For performance reasons the
second option usually is preferable. OTOH Sage folks did
some good job adding higher level functionality and resolving
some nasty low-level interfacing issues. Still wrapper around
wrapper looks like lot of useless complexity.
When come to parts written in Python capability to call
Python may be useful. But note that Sage code is likely
to call parts written in other languages and consequently
pull a lot of dependencies. So do not expect this to
be very easy.
--
Waldek Hebisch
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---