"Or maybe even try to define a standard to write Python code in order to make it easy to translate it to C++ through code generators?"
Doesn't Cython already do this? Jason moorepants.info +01 530-601-9791 On Mon, Sep 30, 2013 at 5:07 PM, F. B. <[email protected]> wrote: > > > On Monday, September 30, 2013 9:21:44 PM UTC+2, Matthew wrote: >> >> Sophisticated algorithms for pattern matching against a large collection >> of potentially associative-commutative terms can be both very >> involved/challenging and also be vastly more efficient than naive >> algorithms. >> >> Optimization on this problem over algorithms is more effective than >> optimization over language-implementations and as such the performance >> advantages of C++ over Python are negligible. >> > > I agree. I believe we should focus on improving the pattern matching in > Python first, I would leave the translation to C++ to a distant future. > > By the way, what about trying to force static typing in sympy's core > through the usage of decorators? Or maybe even try to define a standard to > write Python code in order to make it easy to translate it to C++ through > code generators? I am fascinated by the idea of sympy being written in > C/C++, but I am also very skeptical about the time needed for a translation > by hand. > > -- > 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. > -- 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.
