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

Ability to import/export functions as WASM imports/exports #5

Open
johnlanni opened this issue Jun 25, 2024 · 3 comments
Open

Ability to import/export functions as WASM imports/exports #5

johnlanni opened this issue Jun 25, 2024 · 3 comments

Comments

@johnlanni
Copy link

johnlanni commented Jun 25, 2024

Can py2wasm directly export functions or other symbols directly as WASM exports? And what about imports?

@johnlanni johnlanni changed the title Ability to export functions as WASM exports Ability to import/export functions as WASM imports/exports Jun 25, 2024
@johnlanni
Copy link
Author

johnlanni commented Jun 25, 2024

We aim to utilize py2wasm for compiling Python into WASM plugins within the Envoy. However, a challenge lies in exposing Python functions as WASM exports, for instance: (the wasm was compiled by tinygo)

image

It is also necessary for the Python code to specify the functions exposed by Envoy, based on WASM Imports declarations, for instance:

image

@tim-chow
Copy link

tim-chow commented Sep 6, 2024

I am also concerned about this issue。
Is it solved?

@tim-chow
Copy link

tim-chow commented Sep 9, 2024

@syrusakbary May I ask if there are any plans for this now? Thank you!

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