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

Does cowasm support threads? #70

Open temeddix opened 9 months ago

temeddix commented 9 months ago

Hi, thanks for this wonderful effort.

I was wondering if I can use multithreaded WASI wasm module compiled from Rust. Would it be possible? If not, is that kind of PR acceptable?

williamstein commented 9 months ago

Unfortunately, cowasm does not have any support for threads. It just has a very lightweight shim of pthreads to enable threaded code (e.g., cpython) to compile.

If not, is that kind of PR acceptable?

YES.