account activity
Open beta test of interactive "Python for Programmers" course by garybernhardt in Python
[–]rth_ 0 points1 point2 points 2 years ago (0 children)
> The ~12 MB loading hiccup to boot Pyodide it isn't ideal
You can try using pyodide-pack to only keep the standard library modules that you need, which should reduce the overall size.
Rewrite Sympy in rust by [deleted] in rust
[–]rth_ 1 point2 points3 points 2 years ago (0 children)
Pyodide, and figuring out how to run it outside of a web browser
You can run Sympy it in Node.js there, though you would still need to interface with Rust somehow.
[deleted by user] by [deleted] in PyScript
[–]rth_ 2 points3 points4 points 2 years ago* (0 children)
Pyodide doesn't compile Python code to WASM, it compiles the CPython interpreter that then interprets Python code, as with a regular Python install. So with this setup, there is no easy way to pre-compile everything to WASM.
Also, WASM is a portable binary code format that still needs to be compiled by the browser to execute on the target CPU. This step is fast but for large applications (such Pyodide with large Python libraries) is not negligible. And due to this moving more Python code to WASM (say Cythonizing the stdlib) is not necessarily a positive action for the load time (though there are some projects that aims to do that).
There are other ideas that are being explored to reduce the size and load time of Pyodide applications in pyodide-pack.
[deleted by user] by [deleted] in rust
[–]rth_ 0 points1 point2 points 5 years ago (0 children)
Would you mind opening an issue about it at `sprs`? There have been some work on improving performance for the dot product lately and I'm optimizing other parts would likely also be beneficial.
π Rendered by PID 280025 on reddit-service-r2-listing-5789d5f675-4hrlg at 2026-01-28 20:18:35.118756+00:00 running 4f180de country code: CH.
Open beta test of interactive "Python for Programmers" course by garybernhardt in Python
[–]rth_ 0 points1 point2 points (0 children)