Stream: wasi

Topic: Should I care about WASI threads?


view this post on Zulip Brett Cannon (Dec 16 2024 at 19:43):

https://github.com/python/cpython/issues/121108 is tracking how Python currently can't build under WASI threads due to bumping up against memory limits. I tried to fix it and I keep getting it wrong (honestly, guessing the right memory limits for CPython has always been tricky).

I'm at the point I'm wondering if trying to keep WASI threads working with CPython is worth it? I'm willing to do it if people deem WASI threads worth supporting, but it will also mean me needing help figuring out what I'm doing wrong. But if WASI threads is kind of dead then I'm also fine ripping out the support in Python as it isn't being tested right now anyway.

Bug report Bug description: The max memory for WASI thread builds is set at: https://github.com/python/cpython/blob/1a2e7a747540f74414e7c50556bcb2cc127e9d1c/configure.ac#L2408C59-L2408C67 But that'...

view this post on Zulip Alex Crichton (Dec 16 2024 at 19:59):

If you want a quick fix then setting the maximum size of memory to 4G shouldn't be an issue since I think that works in both browsers and out-of-browser runtimes (although worth checking, I'm only sure about the wasmtime side of things).

Otherwise though my personal feeling would be that it's ok to drop threads for now. Threads-and-wasm isn't as ubiquitous as threads-and-native and many platform providers don't support wasi threads at all right now


Last updated: Dec 23 2024 at 12:05 UTC