Realms are the single best JavaScript feature coming any time in the future. I wish it were stage 4 already. I want to cry I'm so happy.
-
-
Replying to @zkat__ @maybekatz
Why? What do they get you that Workers don't?
1 reply 0 retweets 2 likes -
Replying to @slightlylate
you'd use Realms inside Workers for additional execution and scope control
2 replies 0 retweets 2 likes -
Replying to @zkat__ @slightlylate
as in, you can literally transform code, hook into the Module import system, and more. Before/as it gets executed.
1 reply 0 retweets 4 likes -
Replying to @zkat__ @maybekatz
I'm confused as to the situations where this will be a good/useful thing to do. Build system transparency? Dev time?
2 replies 0 retweets 4 likes -
Replying to @slightlylate
Interruptible M:N microprocesses implemented in userland, with library-specified semantics. Another example is security features, by limiting the APIs code will have access to in a fine-grained way. Or plain in-process evaluators for non-JS languages by live-compilation.
2 replies 0 retweets 3 likes -
Replying to @zkat__ @maybekatz
Interesting. How are they interruptible? Still run-to completion, IIRC?
1 reply 0 retweets 0 likes -
-
Replying to @zkat__ @maybekatz
Oh, I see. So the goal is network-level rewriting of code, and because ES doesn't have that built-in, this is a way to get SW functionality in non-browser environments.
1 reply 0 retweets 0 likes -
Replying to @slightlylate
It's a way to control execution in a much more detailed way than SW are able to. They're like Proxies but for execution rather than objects.
1 reply 0 retweets 1 like
SWs would only get you the location to do rewriting.
-
-
Replying to @slightlylate
and forced process isolation, which I don't want either.
1 reply 0 retweets 0 likes -
Replying to @zkat__ @maybekatz
Huh? SWs are often same-process (like all Workers).
0 replies 0 retweets 0 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.