On Oct 26, 12:51 am, Nils Bruin <nbr...@sfu.ca> wrote:
> First,
>
> http://trac.sagemath.org/sage_trac/ticket/6781
>
> now has a reviewable patch attached to it. This ticket deals with
> adding ECL as a library to Python.
> Since LISP and Python are actually rather closely related in how they
> view data, one can map over
> a lot of the data in a rather faithful fashion. Python's flexible
> interpretation of what it means to call an object means calling
> wrapper class objects can be translated into the appropriate
> (APPLY FUNC ARGS)
> in lisp. That means that binding LISP functions can happen completely
> dynamically and that things like this are possible:
>
> sage: from sage.libs.ecl import *
> sage: caddr=EclObject("caddr")
> sage: caddr([1,2,3,4]).python()
> 3
>
> Once this ticket is in, it makes sense to review:
>
> http://trac.sagemath.org/sage_trac/ticket/7287
>
> which updates the Maxima package to also build an ECL library version
> of Maxima.
> with ECL accessible as a library in Python and Maxima accessible as a
> library in ECL, we can access Maxima as a library in Sage.
>

Nils,

This could be wonderful news!  Have you done any experimentation thus
far comparing timings on Maxima-lib (with the not-yet-submitted code)
versus Maxima pexpect?  Say, for integrate(x^3+5*sin(x),x) or
something.  I remember threads from long ago on this, but don't
remember if they had timings.

Also, a technical question; do the current tickets build ECLlib and
Maximalib *in addition to* the current ones (I assume so), or not?  I
remember some confusion about the situation where someone wanted to
use the "calculus" instance of Maxima in addition to another instance,
and whether that would be possible with a lib version of Maxima - and
I supposed I would have the same question even before Sage accesses
Maxima as a library.

Thanks,
- kcrisman

> I have some code for that as well, but not quite ready for submission
> yet.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to