3 ms·
My biggest issue with Pyodide (which is of course an awesome project/build on its own) is the long wait times. I haven't figured out a way around a ~5 second lo
by eatonphil 5y ago
My biggest issue with Pyodide (which is of course an awesome project/build on its own) is the long wait times. I haven't figured out a way around a ~5 second load time where the entire UI hangs every single time you load the page.
My app (similar to Simon's, a lite mode of a data IDE): https://app.datastation.multiprocess.io https://app.datastation.multiprocess.io.
My code: https://github.com/multiprocessio/datastation/blob/main/shared/languages/python.ts#L29 https://github.com/multiprocessio/datastation/blob/main/shar....
- StreakyCobra 5y agoIf you use it in a web worker the UI does not hang. It requires a bit more setup though: https://pyodide.org/en/stable/usage/webworker.html https://pyodide.org/en/stable/usage/webworker.html Edit: typo
- gavinray 5y agoDamn, I had an idea to build a very similar thing since last week. There's nothing new under the sun. Really impressive app though, great job.
- kencausey 5y agoRelated: https://news.ycombinator.com/item?id=31259027 https://news.ycombinator.com/item?id=31259027
- simonw 5y agoRunning in a Web Worker can help a lot here - you can at least avoid locking the main browser UI thread and show your own loading indicator.
- pwdisswordfish9 5y ago> I haven't figured out a way around a ~5 second load time where the entire UI hangs every single time you load the page Stop using compile-to-browser junk and be a browser "native" instead.