sagemathinc / cowasm

CoWasm: Collaborative WebAssembly for Servers and Browsers. Built using Zig. Supports Python with extension modules, including numpy.
https://cowasm.org
BSD 3-Clause "New" or "Revised" License
482 stars 23 forks source link

implement loading of extension modules (dynamic link libraries) #9

Closed williamstein closed 1 year ago

williamstein commented 2 years ago

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

williamstein commented 1 year ago

Done.