-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Official name bikeshed #321
Comments
Of the ones i've heard tossed around so far, "CallableBoundary" seems the most apt. |
|
Hard pass. :) |
I wonder if |
Also no IMO, because it is not really a membrane in the technical sense. So far I also think |
|
|
Riffing: I still like |
From all the previous name bikesheds I've seen about Realms, CallableBoundary doesn't seen bad. If we want something even more accurate I'd say CallableBoundaryRealm would be better, but only in this aspect. I'm in favor of this name because it's also very specific to this API and this is very helpful for users to search and find related documentation without noise. The closest concept name I'd think would be an Acrylic Glove Box, and I hoped for it to have a specific single name, maybe in German. I'd like to register one of the concerns for this name is the confusion of other things sharing the name in the HTML spec reality. This creates confusion there and implementation. @syg might correct me if I said anything wrong. IMO, this is a compelling argument and I'm fine with a distinct name. I'll have a PR-draft open to make sure I capture all the parts that would need to be renamed. Maybe seeing it from a rendered spec would make it easier to digest. |
You win this round @leobalter. Do we camel case with a hump for every composite of a compound German word like |
|
I still think using "isolate" as a noun, instead of a verb, is very weird. |
Then |
I believe Isolated or any derivation won't be successful as some delegates don't see this API as full isolation set. The problem for the naming here is that every name we pick will have objections against. I'm not kidding that we need to pick the least offensive name. |
The prior art is "Context", which is available in node, jscore/ios and v8/android. Creating a |
"Context" is way too overloaded a term (think scope) - i'm pretty strongly opposed to that. |
My feeling is that names like Perhaps something like This kind of naming makes more sense with the methods, e.g. |
Since it doesn't provide an actual global object/globalThis, or a container of intrinsics/builtins/etc, then the name shouldn't imply that. |
But that's exactly what it does, it's just that you can't interact with it except through the |
Maybe |
Sure, but this isn’t a membrane, and this thing isn’t actually the thing you’re interacting with - it’s still just a screen even if i can use it to remotely view and interact with another place :-) |
I agree with @Jack-Works that just |
@erights https://github.com/search?q=cross-realm seems relatively widely used as a justification for use of Array.isArray, among other things. |
|
@caridy please no! Because the constructor throws a TypeError if new target is undefined makes me not want to call it CallableRealm. |
Agreed, please don't call it "intrinsics" given some of us are still hopeful that a future proposal will provide what we were hoping this one would (fresh intrinsics). |
Here’s some alternative names, in no particular order:
I particularly like Realm but something like Land seems pretty close to the original but being different at the same time. |
I actually like Bubble. It's a sphere with a boundary isolating the inside and outside. And lexically it fits nicely between Agent and Compartment. |
Yay Bubble ! Btw, the thing the spec calls "Agent" I hope we never expose in an API with the name "Agent". This would be the worst terminology choice of all. So I discount the lexical argument for Bubble ;) . I like it anyway. |
Too similar to Compartment. With both in the language, will people naturally remember which is which? Is it more natural that multiple containers fit in a compartment or that multiple compartments fit into a container?
Memorably different and enjoyably playful. But does it make any metaphorical sense to have multiple compartments inside each bubble?
I just don't like it. Since I don't know why I don't, I cannot know I would not get used to it. But I don't like it.
Interesting. Would like to hear more.
Same reaction as with Container. People won't remember which is the canister and which the compartment unless there's a least a good metaphor to explain which goes into which.
Fatal Rust conflict
Fatal Java conflict
Interesting. Would like to hear more.
Interesting. Would like to hear more.
Interesting. Would like to hear more. |
maybe this could be intuitive to use if you are familiar with shadowDOM |
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@ljharb I had internal convos a while ago about @chris-kruining @jdalton I like Shadow* has the precedent in the web, so I'm keeping @kriskowal's comment supports my thoughts for I now believe these names are better than I'm also dropping support for Here is the list with no preference order:
I intend to present this at the upcoming TC39 meeting. |
Thanks for the work here @leobalter and others. One thing to note is that regardless of the developer-facing name, we almost certainly need a distinct specification name for these sorts of realms. There's much less pressure on that choice since the only cost to it being awkward or changing in the future is to specification people. But I suspect be important for web platform integration work. To give an example, if you chose (Personally I'm still rooting for |
I feel the same. |
Thanks, @domenic. I wonder if you have any concern about I understand From one aspect, |
To make it clear, I'm pulling back |
No concerns about SatelliteRealm. |
I don't see "foreign" mentioned anywhere here, we could try |
I dont think qualifiers of “satellite” or “foreign” really explain what the difference is :-/ |
I’ve used the term "foreign realm" to refer to “any realm that isn’t the local realm” for a long time, but I’m not sure if that’s common or if that’s just me? In particular it suggests “surprise” realms — e.g. “be mindful that |
foreign object and exotic object might be confusing 👀 |
TC39 has reached consensus on See you all there. |
Pardon for speaking out of line, but is the committee aware that "shadow realm" is the name of a popular meme? I was quite surprised that there was no reference to this fact anywhere in the proposal. |
Wow. I, for one, had no idea. Thanks. |
It was discussed in our matrix channel during the plenary item; those familiar with the meme felt it was apropos (not that the meme had anything to do with the naming). |
It's a colorful English "stock phrase" for mysterious secondary realities which has been used in poetry, fantasy novels, etc for a lot longer than Yu-Gi-Oh or a specific meme based on it have existed. |
I knew it had references from Yu Gi Oh and Zelda. Trying to keep the professionalism and not sabotage this bikeshed, I avoided knowing the references while confirming with people the references don't have issues such as - but not limited to - hate speech or violence. |
ShadowRealm is the new name for the old Realms proposal [1][2], and the API is simplified; I adjusted the test code accordingly. [1] https://github.com/tc39/proposal-shadowrealm (note that the old URI redirects here, too) [2] Renaming discussion here: tc39/proposal-shadowrealm#321
ShadowRealm is the new name for the old Realms proposal [1][2], and the API is simplified; I adjusted the test code accordingly. [1] https://github.com/tc39/proposal-shadowrealm (note that the old URI redirects here, too) [2] Renaming discussion here: tc39/proposal-shadowrealm#321
ShadowRealm is the new name for the old Realms proposal [1][2], and the API is simplified; I adjusted the test code accordingly. [1] https://github.com/tc39/proposal-shadowrealm (note that the old URI redirects here, too) [2] Renaming discussion here: tc39/proposal-shadowrealm#321
ShadowRealm is the new name for the old Realms proposal [1][2], and the API is simplified; I adjusted the test code accordingly. [1] https://github.com/tc39/proposal-shadowrealm (note that the old URI redirects here, too) [2] Renaming discussion here: tc39/proposal-shadowrealm#321
To add onto the last few comments, I'll note that I found the name "shadow realm" very funny, and if I were developing using this I would not be able to stop thinking about its colloquial meaning every time I use it. I don't necessarily see this as a bad thing though, haha. |
With Realms at Stage 3, let's have an earnest bikeshedding discussion on the name "Realm". We've talked about renaming it many times in the past but AFAICT never had the earnest discussion. The shape of the current proposal has deviated sufficiently from long-standing uses of "Realm" in ecma262 and HTML that a different name seems more appropriate.
At the July TC39, we have consensus that the major JS vendors (browsers + node) will hold off shipping (but not implementing!) until we've bikeshedded.
The text was updated successfully, but these errors were encountered: