Re: Memory Management in D: Request for Comment

2009-11-04 Thread Andrei Alexandrescu
dsimcha wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article dsimcha wrote: == Quote from Sean Kelly (s...@invisibleduck.org)'s article dsimcha Wrote: 3. This one is an order of magnitude less likely than the other two to actually get implemented, at least by me

Re: Memory Management in D: Request for Comment

2009-11-04 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article > dsimcha wrote: > > == Quote from Sean Kelly (s...@invisibleduck.org)'s article > >> dsimcha Wrote: > >>> 3. This one is an order of magnitude less likely than the other two to > >>> actually get implemented, at least by

Re: Memory Management in D: Request for Comment

2009-11-04 Thread Andrei Alexandrescu
dsimcha wrote: == Quote from Sean Kelly (s...@invisibleduck.org)'s article dsimcha Wrote: 3. This one is an order of magnitude less likely than the other two to actually get implemented, at least by me, but how about thread-local allocators so you can call malloc() without taking a lock? I va

Re: Memory Management in D: Request for Comment

2009-11-04 Thread BCS
Hello dsimcha, == Quote from BCS (n...@anon.com)'s article Hello dsimcha, 3. This one is an order of magnitude less likely than the other two to actually get implemented, at least by me, but how about thread-local allocators so you can call malloc() without taking a lock? I vaguely remembe

Re: Memory Management in D: Request for Comment

2009-11-04 Thread dsimcha
== Quote from Sean Kelly (s...@invisibleduck.org)'s article > dsimcha Wrote: > > 3. This one is an order of magnitude less likely than the other two to > > actually get implemented, at least by me, but how about thread-local > > allocators so you can call malloc() without taking a lock? I vaguely

Re: Memory Management in D: Request for Comment

2009-11-04 Thread Sean Kelly
dsimcha Wrote: > 3. This one is an order of magnitude less likely than the other two to > actually get implemented, at least by me, but how about thread-local > allocators so you can call malloc() without taking a lock? I vaguely remember > Sean saying he was working on that a while back, but I

Re: Memory Management in D: Request for Comment

2009-11-04 Thread dsimcha
== Quote from BCS (n...@anon.com)'s article > Hello dsimcha, > > 3. This one is an order of magnitude less likely than the other two > > to actually get implemented, at least by me, but how about > > thread-local allocators so you can call malloc() without taking a > > lock? I vaguely remember Se

Re: Memory Management in D: Request for Comment

2009-11-04 Thread BCS
Hello dsimcha, 3. This one is an order of magnitude less likely than the other two to actually get implemented, at least by me, but how about thread-local allocators so you can call malloc() without taking a lock? I vaguely remember Sean saying he was working on that a while back, but I never

Re: Memory Management in D: Request for Comment

2009-11-04 Thread downs
dsimcha wrote: > == Quote from downs (default_357-l...@yahoo.de)'s article >> dsimcha wrote: >>> == Quote from downs (default_357-l...@yahoo.de)'s article I submitted a patch a while back for constant-time removeRange. Can we dredge >>> that one up and/or implement something similar? It'

Re: Memory Management in D: Request for Comment

2009-11-03 Thread downs
dsimcha wrote: > == Quote from downs (default_357-l...@yahoo.de)'s article >> I submitted a patch a while back for constant-time removeRange. Can we dredge > that one up and/or implement something similar? It's rather useful for things > like > stackthreads that need to add and remove lots of rang

Re: Memory Management in D: Request for Comment

2009-11-03 Thread dsimcha
== Quote from downs (default_357-l...@yahoo.de)'s article > dsimcha wrote: > > == Quote from downs (default_357-l...@yahoo.de)'s article > >> I submitted a patch a while back for constant-time removeRange. Can we > >> dredge > > that one up and/or implement something similar? It's rather useful fo

Re: Memory Management in D: Request for Comment

2009-11-03 Thread Jason House
dsimcha Wrote: > == Quote from Jason House (jason.james.ho...@gmail.com)'s article > > Please add weak references! I can email you a druntime compatible > > implementation. > > Probably be better to submit it as a patch to Bugzilla if it's reasonably > well-tested and working already. On the ot

Re: Memory Management in D: Request for Comment

2009-11-03 Thread Leandro Lucarella
dsimcha, el 3 de noviembre a las 05:46 me escribiste: > During my occasional forays into the dark side of Python and Java, I am often > amazed at the extent to which memory management in these languages "just > works". D should be like this for all but the most low-level programming > tasks, and

Re: Memory Management in D: Request for Comment

2009-11-03 Thread dsimcha
== Quote from downs (default_357-l...@yahoo.de)'s article > I submitted a patch a while back for constant-time removeRange. Can we dredge that one up and/or implement something similar? It's rather useful for things like stackthreads that need to add and remove lots of ranges :) > (Search the NG f

Re: Memory Management in D: Request for Comment

2009-11-03 Thread dsimcha
== Quote from Jason House (jason.james.ho...@gmail.com)'s article > Please add weak references! I can email you a druntime compatible > implementation. Probably be better to submit it as a patch to Bugzilla if it's reasonably well-tested and working already. On the other hand, I am curious to se

Re: Memory Management in D: Request for Comment

2009-11-03 Thread downs
I submitted a patch a while back for constant-time removeRange. Can we dredge that one up and/or implement something similar? It's rather useful for things like stackthreads that need to add and remove lots of ranges :) (Search the NG for "Feature req.+Patch: O(1) removeRange")

Re: Memory Management in D: Request for Comment

2009-11-03 Thread Jason House
Please add weak references! I can email you a druntime compatible implementation. dsimcha Wrote: > During my occasional forays into the dark side of Python and Java, I am often > amazed at the extent to which memory management in these languages "just > works". D should be like this for all but

Memory Management in D: Request for Comment

2009-11-02 Thread dsimcha
During my occasional forays into the dark side of Python and Java, I am often amazed at the extent to which memory management in these languages "just works". D should be like this for all but the most low-level programming tasks, and was intended to be. It seems like most of the other regulars h