I agree. This is a good use for weakrefs without the need for finalization.
Thanks!


On Thu, Nov 7, 2013 at 3:12 PM, K. Gadd <[email protected]> wrote:

> The problem is that the cycles remain uncollectable for a very long period
> of time, even though functionally the references don't need to be strong.
>
>
> On Thu, Nov 7, 2013 at 3:10 PM, David Bruant <[email protected]> wrote:
>
>> Le 07/11/2013 22:46, K. Gadd a écrit :
>>
>>  That's the sort of obstacle that factors into a developer's choice of
>>> language and toolset. I've seen this particular concern with ES crop up in
>>> the past on real projects, and I've seen firsthand how difficult it is to
>>> avoid uncollectable cycles in a language environment without any sort of
>>> weak reference mechanism. Leaking large uncollectable cycles can have
>>> catastrophic consequences in multimedia applications and games, where those
>>> cycles might be retaining images or sounds or other huge game assets.
>>>
>> The repeated use of the word "cycle" worries me. Cycles aren't a problem
>> by themselves with mark and sweep, do we agree?
>>
>> David
>>
>
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
Text by me above is hereby placed in the public domain

  Cheers,
  --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to