Domenic Denicola (2013-11-08T00:08:41.000Z)
Would someone be interested in putting together a small code example, before and after weak refs, illustrating this situation? I have a feeling this conversation will be referenced in many future threads, and the added clarity of code would be greatly helpful.

On 7 Nov 2013, at 18:16, "Mark Miller" <erights at gmail.com<mailto:erights at gmail.com>> wrote:

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 <kg at luminance.org<mailto:kg at luminance.org>> 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 <bruant.d at gmail.com<mailto:bruant.d at gmail.com>> 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
es-discuss at mozilla.org<mailto:es-discuss at mozilla.org>
https://mail.mozilla.org/listinfo/es-discuss




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

  Cheers,
  --MarkM
_______________________________________________
es-discuss mailing list
es-discuss at mozilla.org<mailto:es-discuss at mozilla.org>
https://mail.mozilla.org/listinfo/es-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131108/3283a802/attachment.html>
domenic at domenicdenicola.com (2013-11-17T17:50:33.883Z)
Would someone be interested in putting together a small code example, before and after weak refs, illustrating this situation? I have a feeling this conversation will be referenced in many future threads, and the added clarity of code would be greatly helpful.