Hood Chatham
Hood Chatham
I have a small complete example here: https://spectralsequences.com/syncio-demo/index2.html index2.html ```html Comlink fork test import * as Comlink from "./comlink/dist/esm/comlink.js"; window.Comlink = Comlink; const worker = new Worker("worker2.js"); const wrapped =...
> Wondering also do we have it in the standard CPython. This is implementing stuff that would normally left to the operating system. I think the normal way it works...
> synchronous requests **on the main thread** have been deprecated We aren't planning to do it on the main thread. Though they make synchronous XHR inconvenient even in a webworker....
Probably not. We aren't running Python code on the other end, we're sending messages to the main browser thread which executes JavaScript and sends the result back.
It sounds to me like the default build of the package should work without extra trouble. By default it uses cython and not numba. Cython is no problem for us...
This is a special case of #1503. AFIAK there are two ways to implement synchronous I/O: `Atomics.wait` or evil `unthrow` stack rewinding magic. There is a third option for sleeping...
I think Safari 15.2 released in December 2021 added atomics support yes.
Maybe we should backport the patch from emscripten 3.15.
Do we also want to unvendor the `sqlite` python package? It is 143kb uncompressed.
Have you tried out `micropip.freeze()` added in #2581? I think it might be helpful in the case where you want to add a bunch of pure python packages to your...