Re: Issue 1908 in sympy: mutable core

2010-04-20 Thread sympy
Updates: Cc: ondrej.certik Comment #6 on issue 1908 by asmeurer: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 I don't understand how you plan on achieving the efficient implementation along with mutability. The dictionaries that you are talking about have SymPy ob

Re: Issue 1908 in sympy: mutable core

2010-04-20 Thread sympy
Comment #5 on issue 1908 by ronan.l...@gmail.com: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 Of course, an efficient implementation has to use mutable structures internally. But this is quite unrelated to the mutability of the object itself. To get an "immutable" objec

Re: Issue 1908 in sympy: mutable core

2010-04-20 Thread sympy
Comment #4 on issue 1908 by Vinzent.Steinberg: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 I don't think it would be only useful for '+='-style operations. If we have Add(x, y, z) + Add(x, a) and would use dictionaries instead of tuples for args, we could merge the the

Re: Issue 1908 in sympy: mutable core

2010-04-20 Thread sympy
Comment #3 on issue 1908 by ronan.l...@gmail.com: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 You're mixing two separate issues: efficient implementation of Add/Mul and mutability. The first issue has already been mostly solved in the (easy) case of boolean operations,

Re: Issue 1908 in sympy: mutable core

2010-04-19 Thread sympy
Comment #2 on issue 1908 by fabian.seoane: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 You are very brave by opening this issue :-) BTW, ginac uses lists in trees (which is similar to dicts, but not the same): http://www.ginac.de/tutorial/Internal-representation-of-pro

Re: Issue 1908 in sympy: mutable core

2010-04-19 Thread sympy
Comment #1 on issue 1908 by Vinzent.Steinberg: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 See also http://code.google.com/p/sympycore/, which probably implemented this. -- You received this message because you are listed in the owner or CC fields of this issue, or beca

Issue 1908 in sympy: mutable core

2010-04-19 Thread sympy
Status: Accepted Owner: CC: fab...@fseoane.net Labels: Type-Enhancement Priority-Medium New issue 1908 by Vinzent.Steinberg: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 This should result in a considerable speed improvement. I think it could be done using a dict (or se