| ▲ | 2ndorderthought an hour ago | |
Is this downloading and installing Python packages into the browser via wasm? I like the idea a little bit. Mostly because I don't like javascript. So I say keep going for it, it could fill some niches. I'm sure you know this, but the page takes like 30s to load on mobile. It wasn't a comfortable ux. Once it did load it seemed pretty fast though so kudos. Kind of gave me macromedia flash vibes from 2002. | ||
| ▲ | pstomi 44 minutes ago | parent [-] | |
Thanks! I don't like javascript either, and I certainly dislike CSS :-) Yes, the initial download of pyodide is about 5 MB. After that it is another 5MB for the bundle wheel. But there is some hope: Based on test I just did, I see I did not setup headers so that the wheel and pyodide are cached in a browser (or in its fs): this could reduce reload times by a sizable factor. Once loaded you can run at 60 FPS (or even 120 FPS depending on the browser's vsync). As you can see in the playground: you can then switch from app to app instantly once pyodide is loaded and running. It almost feels like going from a page to another. You can see that when using the combobox to select example at the top right in the playground. | ||