3 ms·
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
by kevingadd 10y ago
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 :(
- kolme 10y agoI'm pretty sure that's doable now that there's WeakMap in ES2015.
- kevingadd 10y agoWeakMap 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.
- spicyj 10y ago> most TC39 members don't understand the difference This seems unlikely.
- kevingadd 10y agoI beg to differ. Observe long threads like this one (which I started) https://esdiscuss.org/topic/what-is-the-status-of-weak-references 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...