Am 30.09.2013 23:07, schrieb F. B.:
By the way, what about trying to force static typing in sympy's core through the usage of decorators?
Can any IDE make use of that? > 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.
One of the problems in Sympy is that it's making quite liberal use of Python's ability to add class members long after the classes are declared. The C and S classes are examples of this, and probably the most significant ones in the Sympy codebase. I've been working on eliminating C for a quite a while, and it's so pervasive and sometimes interwoven with other parts of Pyhon that I sometimes found it hard to make any progress at all; an automatic translation would probably have face more problems.
So to prepare for translation to C++, I guess the whole codebase would need to be de-dynamized quite a bit. This would probably also make the various code analysis plugin more reliable.
-- 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.
