Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JSIL can run pretty much all modern .NET code with correct semantics in JS (i.e. the standard library + real enterprise apps/games), but the performance cost to match semantics is pretty significant. And then there's stuff you just can't do, like weak references :(


I'm pretty sure that's doable now that there's WeakMap in ES2015.


WeakMap isn't weak references. Easy mistake to make (most TC39 members don't understand the difference). WeakMap is a weird approximation of weak properties, where the weak relationship is in the opposite direction.


> most TC39 members don't understand the difference

This seems unlikely.


I beg to differ. Observe long threads like this one (which I started) https://esdiscuss.org/topic/what-is-the-status-of-weak-refer...

It was not the only one, it crops back up periodically and the purpose/nuances of weakrefs have to be re-explained each time. To be fair, there are a lot of subtleties involved...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: