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

Could Cowasm run inside a Stackblitz-webcontainer? #48

Closed martin12333 closed 1 year ago

martin12333 commented 1 year ago

If I understand correctly, Cowasm , when being run from nodejs, is Js+wasm, no native-code files, that's important.

// I plan to study and do experiments

( https://github.com/stackblitz/webcontainer-core )

williamstein commented 1 year ago

is Js+wasm, no native-code files, that's important.

It optionally uses a module called posix-node which I also wrote (in Zig) to expose a lot of extra posix functionality, e.g., the networking stack (which is used by python so far). https://www.npmjs.com/package/posix-node

However, if posix-node isn't available, then cowasm will still run from nodejs, and I think there are no other native code dependencies.