wapm-packages / pyodide

Python ported to WebAssembly
https://wapm.io/package/python
47 stars 4 forks source link

Project Status #1

Open atilag opened 4 years ago

atilag commented 4 years ago

Hi, I wanted to compile some Python code that uses numpy extensively to WASM and run it with wasmerio runtime, so I was about to start porting things from pyodide, but found this project just in time! (pfeww...). After some unsuccessful tries building everything, I wanted to ask about what's the status/plans for this project before spending too much time trying to fix things and contributing to some halted/dead project, or taking some of this work as a starting point for something new.

Thanks for your work, this is awesome! :)

atilag commented 4 years ago

Pinging @syrusakbary @piranna :)

samuelcolvin commented 3 years ago

Any update on this?

Would be wonderful if this could be updated to latest python.

iamwilhelm commented 3 years ago

@syrusakbary @piranna Same question. Is project planned on being updated? I recently found myself wanting to try out python on wasmer, but the current wapm package isn't working. I tried wapm run python (after installing), and it complained about how emscripten didn't export malloc.

So I decided to try and build it myself. When I cloned the project and ran the build script, it complained that Error: No tool or SDK found by name 'sdk-tag-1.38.30-64bit'. when trying to activate emsdk tools. I think it's probably a deprecated version of the tool for emsdk.

I then cloned pyodide master and tried to compile the latest on master, and it failed. According to this comment on pyodide issues, pyodide needs a lot of the js. I'm not sure what you guys did to strip out the js, so now I'm at an impasse.

With the claim on the frontpage the wasmer can be used with python, I'd think you'd want a working wapm run python. Is there any plan on updating this repo? If not, how did you strip out the js?

samuelcolvin commented 3 years ago

Would it be worth creating an issue on pyodide to and asking them if they have any advice on striping JS, or even split the repo or providing tooling to remove JS?

The team here seem pretty unresponsive.

iamwilhelm commented 3 years ago

I did start doing that here