Skip to content

Allow implementing different WIT worlds in wasip2 target #4934

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tomhoule
Copy link

@tomhoule tomhoule commented Jun 23, 2025

As mentioned in this comment, we are also interested in Wasm components with custom worlds (for Grafbase extensions).

I have succesfully compiled and used examples based on the changes in this branch. They are mostly from @daedric's patch in the issue.

So this PR is meant as a starting point for discussions, a working branch for anyone else looking at trying this, and to discuss how best to test it (I've made attempts, but they added up to a lot of code, and I wasn't too happy with them).

I understand it's work to review and merge something like this, and even more to provide guidance on a proper test setup, so while feedback would be much appreciated, I understand if it's not a priority.

fixes #4843

As mentioned in [this comment](tinygo-org#4843 (comment)), we are also interested in Wasm components with custom worlds (for [Grafbase extensions](https://grafbase.com/docs/gateway/extensions)).

I have succesfully compiled and used examples based on the changes in this branch. They are mostly from @daedric's patch in the issue.

So this PR is meant as a starting point for discussions, a working branch for anyone else looking at trying this, and to discuss how best to test it (I've made attempts, but they added up to a lot of code, and I wasn't too happy with them).

I understand it's work to review and merge something like this, and even more to provide guidance on a proper test setup, so while feedback would be much appreciated, I understand if it's not a priority.

fixes tinygo-org#4843
@tomhoule tomhoule force-pushed the tomhoule-rllotvtovpww branch from 64a1e54 to cd5c598 Compare June 23, 2025 07:55
@daedric
Copy link

daedric commented Jun 23, 2025

LGTM (but it does not carry any weight :)), I'm happy that my preliminary work has been useful :)

@tomhoule
Copy link
Author

I see the failing tests, will try and get these running locally and figure out the cause.

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

Successfully merging this pull request may close these issues.

2 participants