Taking a tip from Mark and pulling my own words out of the "Agreeing on user-defined symbols" thread:

This serialize point is good, and gets to something I raised with Allen yesterday, which he originally stated: realms should be *more* isolated. We may want distribuited (cross-machine) realms. IE and other browsers may already do cross-process window.open, returning a DCOM proxy or some such. SpiderMonkey in Firefox uses membranes across all realm/global boundaries, even same-origin.

Given this, I think instanceof (or typeof with an extension that must be realm-specific because implemented by user-code, or else we have to reify the "world of realms" as discussed in the other thread) breaking cross-realm could be addressed by saying "proxy harder". IOW let's not complicate JS with realms, worlds, truly global string to symbol registries, etc. etc.

Let's get back to the simplicity of same-realm as the normal case, with few-and-legacy exceptions. Can we do it?

-----

Realms are a good addition but if browsers are all using membranes cross-realm, then this enables us to do more via proxies (wrappers) to satisfy user-facing API and built-in operator constraints.

If I'm right that user-extensible methods and values, including typeof customization, require either realm-sensitivity or else world-of-realms spec and even more user-facing complexity, then we also ought to think twice about the "isolate realms harder" option.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to