Weak Reference proposal

Steve Fink sphink at gmail.com
Tue Dec 27 21:34:38 UTC 2016

On 12/27/2016 04:45 AM, Isiah Meadows wrote:
> The weak reference proposal 
> <https://github.com/tc39/proposal-weakrefs> hasn't seen a lot of 
> activity, and I haven't found much news elsewhere on it. What's the 
> status on it?
> Where I'm building a language-integrated process pool in Node.js, 
> complete with shared "references" and async iterator support, I really 
> badly need weak references to avoid otherwise inevitable memory leaks 
> across multiple processes if the references aren't explicitly 
> released. So far, my only option is to take a native dependency (I 
> have no other dependencies), but that's very suboptimal, and it 
> eliminates the possibility of porting to browsers. So I really badly 
> need language-level weak references.

Would weak references be enough to solve cross-process garbage 
collection? How would you recover a cycle of references among your 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161227/2c98f9fc/attachment.html>

More information about the es-discuss mailing list