Skip to content

Guest instantiating a new component connected to itself #4

@ZheniaZuser

Description

@ZheniaZuser

Maybe a bit off-topic, but I’ve always thought it would be useful if Wasm had a way for a module to ask the host (via a WASI interface, perhaps) to instantiate a new Wasm component — and specify which WIT interface it would use to communicate with its parent module. This could also be really handy for plugin systems.

Optionally, parent component could give certain WIT interfaces to child, (aka inherit permissions) , if that is allowed by host runtime.

Wouldn’t a feature like this fit better with the goals of this proposal? This would allow to give child component access to all the same Wasm features as the parent, making more flexible/universal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions