https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js
JSDelivr is supposedly up, but the CDN isn't working for me at all. Is it blocked in the UK?? That seems like a big deal if so.
I see some past discussion here about it being possibly banned in the EU: https://news.ycombinator.com/item?id=35793009
Are you getting an HTTP status other than 200 or the domain name not being resolved?
Still I agree with your other comments, and in particular not being able to share caches in the browser is very unfortunate (but understandable).
Thanks for the answers.
Cheers and good luck for this project, I can't wait for it to progress!
So roughly 1600x more clock cycles are consumed than is necessary.
I’m already jaded with the extreme bloat of JS frameworks as it is (how many times does my computer need to ramp up fans because of your React blog?). This could potentially be an order of magnitude worse.
In most places where performance matter Python packages would be using either C extension, Cython or numba to get near native performance. Pyodide is able to build those packages (except for numba). So overall it's currently 3 to 5 slower than native Python (which uses C extensions). See detailed benchmarks in https://hacks.mozilla.org/2021/04/pyodide-spin-out-and-0-17-...
I don't understand, can't I just use offline, static files ?
I would still expect to use my own webserver, unrelated to pyodine, like flask or whatever.
> Yes, we are working on adding more examples.
Glad to hear this :) !
> Why do you find the example misleading?
I haven't really seen that example in the doc or elsewhere, and I don't understand the steps required to make such example work offline or without a webserver.
EDIT:
Another cool thing of brython is that could "inline" a python script inside a html file, such as:
<script type="script/python">
or <script src="thing.py"></script>For inline code, yes it would be doable someone would need to continue https://github.com/pyodide/pyodide/pull/692
For examples, I'll respond in the Pyodide issue where you commented.