-
Notifications
You must be signed in to change notification settings - Fork 72
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
XS Compartment constructor with module loader hooks #536
Comments
oh... the |
Now that |
@kriskowal here's hoping you can get to this soonish... |
This might be ready-to-try. It needs |
Including babel? I thought the purpose of this was to avoid babel. I wonder where I got confused. |
Oh, no. I am confused because you put it on my plate. If it’s on my plate, that implies we’d be doing compartments with the ses-shim. If we’re doing “XS Compartment constructor with module loader hooks”, we’re writing C. |
yes, I'm kinda muddled in my thinking. Hm. |
My understanding is that the next step is to use the builtin XS |
When removing the 8 magic lines of code, we need to carefully examine which if any safety checks we're removing. The builtin XS |
I think this issue largely falls under #400, surfacing native XS Compartment when running SES on XSnap. That in turn also covers work Moddable has already done to support dynamic module loading. All that remains is some hypothetical work to make compartment mapper useful for generating XS native manifests, but I don’t intend to track that since it’s not well-motivated. I’m closing this in favor of ongoing tracking in #400. Please reöpen if this represents some other work. |
@kriskowal my current solution in agoric-sdk is endo-load.js, called from start-xs.js
It consumes the output of findmods.js, which runs under node.js and uses filing-cabinet to walk the tree of module dependencies.
As I think I mentioned, in contrast to
xsnap
, where all .js scripts and modules are loaded / parsed at runtime,start-xs.js
andendo-load.js
start in a world where all theStaticModuleRecord
s are in compiled bytecodes. See Makefile for details.originally raised as: Agoric/agoric-sdk#57
The text was updated successfully, but these errors were encountered: