Comments (10)
First issue 😃
from pywasm.
No, it's second.
from pywasm.
any progress ?
i'd love to have a wasi python polyfill for running micropython-wasi browser test suite.
( this is not very practical https://github.com/pmp-p/micropython/blob/wasm-nonlr/ports/wasm-no-nlr/docs/wasi-web.png )
from pywasm.
@pmp-p It is in my TODO list, but now I don't have the energy to do it. Maybe after a few months, when I am free.
from pywasm.
In addition to the WASI specs (https://github.com/WebAssembly/WASI/blob/master/phases/README.md), I suspect this node could be used as a reference: https://github.com/devsnek/node-wasi It's an implementation of the WASI interface in JS and uses some C bindings as well.
from pywasm.
Some more pointers about wasi polyfill bytecodealliance/wasi.dev#11
and after some personnal python polyfill tests i'd say that a usefull tool for implementation would certainly be https://github.com/aguinet/dragonffi
from pywasm.
@pmp-p Are you interested in trying to complete this feature?
In fact, in another project of mine, I completed entire WASI, with about 1,000 lines of code: https://github.com/mohanson/wasc/blob/master/src/platform/posix_x86_64_wasi.h
But it can't be used directly on pywasm, because I wrote it for the wasc
project and that only supports x86
and risc-v
platforms.
All the work is to find a useful wasi c library, and then glue them with ffi, just like you said.
from pywasm.
from pywasm.
@vshymanskyy i'm specifically interested in browser polyfills ( which can't return i64 actually because wasm32 ), though i want to use wasm3 on android for cpython/wapy modules or even full interpreter sandboxing.
https://github.com/libuv/libuv/blob/v1.x/SUPPORTED_PLATFORMS.md is tier 3 enough to be safe ?
@mohanson i'll have to, since i want to run cpython/wapy wasm browser testsuite somehow.
from pywasm.
For Browsers, we should reach BigInt epoch pretty soon. For Android, libuv should be pretty solid.
As for WASI envirnoment for Browsers, Wasmer has provided a nice polyfill, and they also created https://webassembly.sh
from pywasm.
Related Issues (18)
- Pop out value from stack when call/invoke ends. HOT 3
- Issues with importing libraries HOT 4
- The big plan of Ancient: pywasm 1.0 HOT 3
- The structure of memoryInstance. HOT 6
- implement data count section
- Limiting the number of instruction steps HOT 4
- API Documents HOT 1
- Pywasm 1.0.4 does not install HOT 2
- Supplying a memory instance to a function before execution HOT 7
- Exception: pywasm: missing import env.time HOT 3
- Continuation of supplying a memory instance to a function before execution HOT 2
- Allow "minimum" and "maximum" in constructor for Limits object HOT 2
- Pythons -O flag makes an insane difference HOT 6
- Reattaching imported functions HOT 2
- Resuming a program where it left off when it reached a resource limit
- Example code has no print to terminal HOT 2
- Results seem to be different from wasmer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywasm.