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

preview2 questions #503

Closed
yamt opened this issue Jan 10, 2023 · 5 comments
Closed

preview2 questions #503

yamt opened this issue Jan 10, 2023 · 5 comments

Comments

@yamt
Copy link
Contributor

yamt commented Jan 10, 2023

will preview2 require a component-model aware runtime? (to me it looks like "yes")

if yes, will there be no way to use wasi without component-model?

asking because, for some use cases of wasi, component-model looks very heavy-weight to me.
(both of implementation cost and runtime cost)

@sbc100
Copy link
Member

sbc100 commented Jan 10, 2023

My understanding is that the answer is no, since the component model types have canonical mappings to MVP wasm types, and so even though WASI modules conform to the requirements of the component model the are (or can be) simple MVP wasm module, and the output of wasi-sdk will still be normal/MVP wasm modules (at least for now).

@yamt
Copy link
Contributor Author

yamt commented Jan 11, 2023

do you mean, a runtime can still choose to implement the canonical mappings, which is a static plain core wasm abi, directly w/o knowing component-model/interface-types?

@sbc100
Copy link
Member

sbc100 commented Jan 11, 2023

Yes that is my understanding. @sunfishcode can confirm perhaps?

@sunfishcode
Copy link
Member

Yes.

@sunfishcode
Copy link
Member

And to be sure, my "yes" here was in response to sbc100's question. The component model defines a canonical ABI which is a core-wasm ABI. If there are any further questions, please file new issues!

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

3 participants