Giter Site home page Giter Site logo

Comments (4)

dicej avatar dicej commented on July 21, 2024 1

I believe @brettcannon is planning to add zlib to the WASI build of CPython, along with other native modules such as bzip2, etc.

Regarding requests: I agree that this would be a great library to support, but it's going to take more than adding zlib to support it. I assume it also uses the ssl module, which is going to be way tougher to support given that Wasm doesn't currently have constant time operations, which means OpenSSL is vulnerable to timing attacks when compiled to Wasm. I think the most practical way to support requests is to port it to use wasi:http instead of sockets on WASIp2, which someone would need to volunteer to do.

from componentize-py.

brettcannon avatar brettcannon commented on July 21, 2024 1

I believe @brettcannon is planning to add zlib to the WASI build of CPython, along with other native modules such as bzip2, etc.

Correct, it's planned: https://opensource.snarky.ca/Python/WASI#Plans .

from componentize-py.

c-x avatar c-x commented on July 21, 2024

@brettcannon @dicej do you have any ETA/objective for this fix?

from componentize-py.

brettcannon avatar brettcannon commented on July 21, 2024

@c-x No ETA from me. The objective is to get zlib statically compiled into the binary I build for CPython via https://github.com/python/cpython/blob/main/Tools/wasm/wasi.py .

from componentize-py.

Related Issues (20)

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.