On Mon, Oct 7, 2013 at 12:07 PM, F. B. <[email protected]> wrote: > I just had a look at the Julia project http://julialang.org/ > > Have a look at how they manage operator overloading: > > https://github.com/JuliaLang/julia/blob/master/examples/quaternion.jl > > That is a great idea, it would keep code clear and readable, and avoid the > need of all those if isinstance( ) ... elif isinstance( ) > > By the way, the aim of Julia is to be both an interpreted language and a > fast compiled language, with speed of execution near to those of C. At the > same time they want to keep perfect interaction with both Python and C... > > So, why not try rewriting Sympy Core in Julia? It would keep the programming > language simple, maybe even simpler than in Python, and at the same time > allow perfect interaction with both Python and C, and reach the performance > of C. > > By the way, I know that using classes in C++ decreases performance, the way > Julia overloads operators would keep things as easy as in simple C.
Yes, that's roughly the idea behind Julia. The other is better support for "templates" and reasoning about types. However, whether it can actually match performance of C++ in practice, that remains to be seen. But it should be tried. Ondrej -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
