sagemathinc / cowasm

CoWasm: Collaborative WebAssembly for Servers and Browsers. Built using Zig. Supports Python with extension modules, including numpy.

Home Page:https://cowasm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

implement loading of extension modules (dynamic link libraries)

williamstein opened this issue · comments

Make it so python-wasm is capable of loading C extension modules that are not statically linked into the core python.wasm bundle.

Emscripten does this, but I don't know if anything else does. We probably need to reimplement this from scratch.

Here's the emscripten code which might be inspirational: https://github.com/emscripten-core/emscripten/blob/77da62969eb0b5efe4ce4a0c9ce67c45b9e32638/src/library_dylink.js

Done.