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
processes?
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss