bytecodealliance / jco

JavaScript toolchain for working with WebAssembly Components
https://bytecodealliance.github.io/jco/
Apache License 2.0
642 stars 65 forks source link

Better instantiation workflows #441

Closed guybedford closed 5 months ago

guybedford commented 6 months ago

I think we can improve the instantiation story:

We also already have https://github.com/bytecodealliance/jco/pull/413 to unify the sync and async instantiation APIs.

I'd like to propose that for the next major we include improved instantiation as part of the story, to better support use cases such as multiple virtualizations, or creating custom WASI contexts and passing them into the instantiation API.

guybedford commented 5 months ago

This is coming naturally now with the generator work and soon with source phase support.