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
C extensions like numpy and tenserflow in Brython using WebASM #1817
Comments
Also, pyodide/pyodide#1911 might help build the extensions that then work with your translation process. pyodide could help you build C extensions. |
@TheRook As far as I am concerned, I don't know C and have no idea how to build modules with dependencies - the tutorial on MSN is not enough for a complete ignorant at C like me. If you can give it a try it would be very, very helpful ! |
@PierreQuentel pyodide will have it ready in less than 6mo. You might be able to adopt it from them or collab with that project in some way. |
I would surely do it if it was as simple as copying a module (eg _sre) already compiled to WASM from pyodide to Brython, but it's apparently much more complicated. |
@TheRook What will be ready in 6mo? The current version 0.18.1 of pyodide contains already more than 75 packages, including matplotlib, numpy, pandas, scipy, etc. that can be run in the browser. |
I am closing the issue, being 100% ok with the suggestion, but having no other solution than hoping that someone, someday can implement it. |
WebASM could provide the internals for a binary interface that allows for python C extensions to run inside of brython. There isn't even a shadow of a doubt that this is the right answer, but the question is has this been explored?
This is how https://github.com/becavalier/eufa works.
Here is a tutorial on how to build these kinds of linked libraries:
https://developer.mozilla.org/en-US/docs/WebAssembly/existing_C_to_wasm
There would likely need to be a brython distutils that does the setup.py build for a WebASM target.
The text was updated successfully, but these errors were encountered: