2 ms·
I don't think that's true. https://brython.info/static_tutorial/en/index.html https://brython.info/static_tutorial/en/index.html > In the <head> zone we load
by CivBase 5y ago
I don't think that's true.
https://brython.info/static_tutorial/en/index.html https://brython.info/static_tutorial/en/index.html
> In the <head> zone we load the script brython.js : it is the Brython engine, the program that will find and execute the Python scripts included in the page.
It looks like Brython works by embedding a Python interpreter into the page as Javascript. That's 5 MB if you include the standard library - almost 800 KB for just the interpreter. Not to mention the computational overhead of running an interpreter in an interpreter.
- dec0dedab0de 5y agoI did say it was an interpreter written in JS, but I had misunderstood what you were saying. I think Grail could do what you were talking about, but it never got any traction. I also vaguely remember there being a python plugin floating around back in the day, kind of like flash, but I can't find any reference to it.