-
Notifications
You must be signed in to change notification settings - Fork 15
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
Syntax for wasi-virt support #21
Comments
After some discussion with Luke just now, I think what's actually desirable is to do the inverse: instead of creating instances of a WASI-Virt component and feeding them through to any instantiations that make use of WASI, have an expression that crates a component from virtualizing another component. So to revise the syntax:
where The component could then be used in new expressions:
|
Leaving this here as a reminder to revisit down the road once we flesh out more of the details of the total During our WAC discussion today we brainstormed the idea of enabling cc @lukewagner if you have any additional thoughts you'd like add. |
Two partially-formed thoughts: While several of the use cases we talked about involve virtualization, I expect there are others that don't, so we might not want to have
I also wondered whether maybe the
This is normal if you think of it like a function call, but a little noisier than the preceding example. The latter might be useful if we imagine more-generalized arities for these component transformers, but I can't tell how likely that is. |
This makes sense to me. My only concern would be the use of Thinking about how to fit this into the current grammar, we might be able to amend
Is |
I'm not wed to |
Capturing the proposal for supporting "component transformers" in WAC from yesterday's meeting for posterity: A component transform can be specified in WAC according to the following grammar:
Additionally the
A rough sketch of an example:
A future item discussed worth noting that i didn't mention above is to allow writing
Mostly documenting my understanding from yesterday so my weekend brain doesn't purge what we discussed but please let me know if i omitted anything cc/ @elliottt @peterhuene @lukewagner |
WAC should have syntax for creating WASI-Virt instances so that they can be composed with other instances.
Some hypothetical expression syntax:
which results in an instance that exports the requisite WASI interfaces (instances).
The text was updated successfully, but these errors were encountered: