-
Notifications
You must be signed in to change notification settings - Fork 180
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
Compile a WebAssembly module From Python3 #258
Comments
It depends what are trying to do exactly. Are you trying to build a module form scratch? If so, then https://pypi.org/project/pybinaryen/ is probably what you want. Or are you trying to build from C/C++ sources, in which case you probably just want to call out to Or are you trying to run python code inside of webassembly, in which case you probably are looking for https://github.com/pyodide/pyodide |
I want to build Python Code into wasm file , then run wasm file in wasmerio |
You can't compile Python code to Wasm, because Python is a dynamic language and Wasm is intended as a target for statically typed languages. Your best bet is running it in something like Pyodide which @sbc100 linked above. |
OTOH, if you're going to run Python in Pyodide, Pyodide in Wasmer, and, in turn, use Wasmer from Go, that just keeps adding levels of indirection which would likely lead to very poor performance... why not invoke Python executable directly from Go? |
Compile a WebAssembly module From Python
Is there currently planned support? I am looking forward to using it.
The text was updated successfully, but these errors were encountered: