On Mon, Aug 18, 2008 at 12:06 PM, Ondrej Certik wrote:
>
> On Mon, Aug 18, 2008 at 5:51 PM, Bill Page wrote:
>> ...
>> There is supposed to be an "easy" way to call programs compiled
>> with ECL from C (and thus via some suitable wrapper from Python
>> or from Cython), but I have yet to see this demonstrated. Even in
>> this case there remains the problem of conversion of data structures
>> which is likely to add back some (hopefully small part) of the overhead
>> that you removed by eliminating pexpect.
>
> Just like with sympy or ginac. Just holding the pointer to the
> expression in ginac or sympy.
>

I don't understand what "just holding the point to expression" has to
do with the conversions that are done when I type something like

    sage: axiom(x^2+1)

and hope to get the result back in Sage as something Sage understands
natively as a polynomial.

> If you know what I mean. Maxima and axiom are basically out of
> the game, because of this.

No, I am not yet sure I know what you mean.

> I'd like to compare the symbolics engines on a fair basis,
> so calling them over pexpect is not the way.
>

It seems to me it depends on what exactly what aspects you are comparing.

> I think if any program wants to be successful, it's a good idea
> to figure out how to call it from C without (much) overhead. Imho.
>

Maybe. But again I think it depends how you intend to achieve
"success". It is not so easy to call Python code from a C mainline
program either, is it? But the reverse is simple. Likewise calling C
from Lisp is quite normal but the reverse is hard.

Regards,
Bill Page.

--~--~---------~--~----~------------~-------~--~----~
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/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to