Joe Marshall
Joe Marshall
Finding this when I'm trying to bundle jupyterlite in an es module. It imports pyodide from an external URL, entirely different project, and uses a non module script to do...
@vankop You're absolutely right, sorry. The code I was running had added a sub-module inside a worker which was breaking things. Ignore me.
Oh hang on. You can pass a compiled module into loadWebAssemblyModule. So just needs a change to do streamingcompile in loadpackage.ts
Yeah, main module is but modules from wheels aren't. From the Api docs compilestreaming takes a response object, which can just be a wrapper for an arraybuffer, which we have...
If you have an arraybuffer you can call new Response(buffer) to create a response for it. Then some fiddling with properties to set the URL on that and you have...
Damn, it's not possible to set the URL on a response object, and the URL is the key that is used for the wasm caching and optimisation. It would be...
If one could cache the so files from inside the wheels, then loading of so files could go concurrently with download of the wheel, with them only being reloaded if...
I've done some messing with this now. It's non trivial, requiring a service worker and I'm not sure how much speed improvement the optimiser will bring, but in theory loading...
I messed with this quite a lot, including using a much faster unzipper coded directly in wasm, along with various experiments to make things run in workers or not. It...
It doesn't use top-level.txt because that's a setuptools file. Other packagers don't always use it. Poetry doesn't for example. It currently list all distributions in test, not just the top...