Tobias Kölling

Results 69 comments of Tobias Kölling

So [here's](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests#synchronous_request) some discussion on synchronous XHR: it's deprecated. (And even more deprecated on the main thread). So it will work 😄, but we shouldn't do it 😬 ...

For a demonstration, maybe.... but I guess once that's out everyone wants to hop on that (I'll try it for sure) and we'll hit huge performance issues. Probably there should...

> Python users are used to waiting for an operation to complete 😄 yes, that's probably **so** true... I'm convinced and very happy to try the demonstration :+1:.

@dopplershift, thanks for pointing this out. I've been digging a bit deeper, and there are clear intentions behind this. In principle, it's possible to retrieve binary data via `XHR`. To...

I made a little test: A main script, a Worker and a binary file. The main script starts the worker, the worker fetches the binary file synchronously and posts the...

[pyodide/issues#400](https://github.com/pyodide/pyodide/issues/400) might be relevant here as well... i.e. if this works, probably `open_url()` could be extended to support binary reads if being executed in a Worker.

Yes... the main thread has to be async, because (as far as I know) you can't synchronously wait for a worker. Most likely because people only invented Workers after discovering...

> So does https://github.com/imjoy-team/imjoy-utils/blob/main/imjoy_utils/__init__.py#L21 do the right thing? Yes, it does. But you have to run it in a Worker.

Thanks for providing this repo from my side as well! We were trying to packages mutliformats for conda-forge at https://github.com/conda-forge/staged-recipes/pull/28790. However, we've been stumbling about the circular-depencency problem there as...