Giter VIP home page Giter VIP logo

Comments (4)

Mec-iS avatar Mec-iS commented on July 17, 2024

I suppose a better approach is to compile directly your C library into Wasm binary and export the functions you need. Python scientific stack has been successfully used as Wasm modules; I suppose your needs are similar.

On the case of moving some Python functions into Wasm, it is a good idea depending on their characteristics; to do it implies porting your Python functions into a language that compiles to Wasm (check my posts to find some examples).

from wasmer-python.

jviereck avatar jviereck commented on July 17, 2024

from wasmer-python.

Hywan avatar Hywan commented on July 17, 2024

Hello,

I think it's fine to just declare these functions as imports on the Wasm side, and links them in the Python land. Unfortunately, the python-ext-wasm project doesn't support Wasm imports yet. I'm working on it since 2 weeks, when I've time. It will land as soon as possible :-).

from wasmer-python.

Hywan avatar Hywan commented on July 17, 2024

Closing since there is nothing more to do. Subscribe to #28 to learn when host functions will be supported.

from wasmer-python.

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.