Skip to content
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

Add runtime instantiation to component model #1517

Open
pothos opened this issue Apr 27, 2024 · 1 comment
Open

Add runtime instantiation to component model #1517

pothos opened this issue Apr 27, 2024 · 1 comment

Comments

@pothos
Copy link

pothos commented Apr 27, 2024

Is there anyone already working on a draft for adding runtime instantiation to the component model?

Runtime instantiation means that a component can dynamically instantiate another component given its binary representation, and then invoke them. This is needed to have something similar to exec, where the number of imported instances and even the module code itself is not statically predefined but evolves programmatically. Currently one could define a custom protocol between the runtime and a component to have a similar effect. Use cases are flexible reusing of modules, runtime generation or fetching of modules (network or from disk), and a small demo program you could think of is a wasm component shell or wac REPL that itself runs as wasm component.

A few links in Luke's answer here: WebAssembly/wasi-cli#25

@lukewagner
Copy link
Member

That's a good question, but perhaps the better place to ask it is https://github.com/webassembly/component-model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants