Re: [pypy-dev] Optimizing Append Only structures

2011-11-29 Thread Maciej Fijalkowski
On Tue, Nov 29, 2011 at 10:12 PM, Alex Gaynor alex.gay...@gmail.com wrote: On Tue, Nov 29, 2011 at 3:04 PM, Timothy Baldridge tbaldri...@gmail.com wrote: I have a dictionary (in RPython) that looks something like this: class MyDict(Obj):    def add(self, k, v):         newdict =

Re: [pypy-dev] Optimizing Append Only structures

2011-11-29 Thread Romain Guillebert
Probably because he (as a clojure developer) likes immutability of data structures. On Tue, Nov 29, 2011 at 9:15 PM, Maciej Fijalkowski fij...@gmail.comwrote: On Tue, Nov 29, 2011 at 10:12 PM, Alex Gaynor alex.gay...@gmail.com wrote: On Tue, Nov 29, 2011 at 3:04 PM, Timothy Baldridge

Re: [pypy-dev] Optimizing Append Only structures

2011-11-29 Thread Armin Rigo
Hi, On Tue, Nov 29, 2011 at 21:28, Romain Guillebert romain...@gmail.com wrote: Probably because he (as a clojure developer) likes immutability of data structures. No, it's really needed for the way it is written: by creating a new dict, the old purefunction results no longer apply. But we