IssueRaiser

This still doesn't fix the biggest issue with running non-javascript code in the browser: browsers still offer no way to know when a valu...

This still doesn't fix the biggest issue with running non-javascript code in the browser: browsers still offer no way to know when a value is collected. e.g. if I allocate a callback function, and hand it to setTimeout, I have no way to know when to collect it. Sure, you can encode rules about some of the common functions; but as soon as you get to e.g. attaching an 'onreadystatechange' to an XHR: you can't follow all the different code paths. Every time a proposal comes up to fix this: - GC callbacks - Weak valued maps - Proxy with collection trap The proposal gets squashed. Unless this is attended to Javascript remains the required language on the web.

Posted by daurnimator on Jun 17, 2015, 11:46 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.6,000 issues0 comments

hackernews (Other)

This still doesn't fix the biggest issue with running non-javascript code in the browser: browsers still offer no way to know when a valu...

daurnimatorJun 17, 2015, 11:46 PM

This still doesn't fix the biggest issue with running non-javascript code in the browser: browsers still offer no way to know when a value is collected. e.g. if I allocate a callback function, and hand it to setTimeout, I have no way to know when to collect it. Sure, you can encode rules about some of the common functions; but as soon as you get to e.g. attaching an 'onreadystatechange' to an XHR: you can't follow all the different code paths. Every time a proposal comes up to fix this: - GC callbacks - Weak valued maps - Proxy with collection trap The proposal gets squashed. Unless this is attended to Javascript remains the required language on the web.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue