Coder Social home page Coder Social logo

Comments (10)

boundless-forest avatar boundless-forest commented on July 17, 2024

First issue 😃

from pywasm.

mohanson avatar mohanson commented on July 17, 2024

No, it's second.

from pywasm.

pmp-p avatar pmp-p commented on July 17, 2024

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.

mohanson avatar mohanson commented on July 17, 2024

@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.

kanaka avatar kanaka commented on July 17, 2024

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.

pmp-p avatar pmp-p commented on July 17, 2024

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.

mohanson avatar mohanson commented on July 17, 2024

@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.

vshymanskyy avatar vshymanskyy commented on July 17, 2024

from pywasm.

pmp-p avatar pmp-p commented on July 17, 2024

@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.

vshymanskyy avatar vshymanskyy commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.