Earlier quoted context omitted.
But then you have to code in... Tcl...
Then you GET to code in Tcl !
PyPy.js: Python in the web browser
71–80 of 129 posts
Re: PyPy.js: Python in the web browser
#72The speed is surprisingly reasonable. Testing with a simple loop, I get about 1.3-1.4 million loops per second in python3, 2 million loops per second in python2, 14.5 million loops in pypy, and 0.61 million loops in the browser. My code basically calls int(time.time()) until its value changes, doing i+=1 for every time it did not change (n=10 for every platform (python2/3/pypy/browser)). My browser is Firefox 61, ful…
Re: PyPy.js: Python in the web browser
#73Earlier quoted context omitted.
> If you're so afraid that this is dangerous, why do you post malicious code? That's not malicious code... it removes files from a sandbox... you can refresh the page and see for yourself. > And if you're so clever to post that code There's no need to be rude... there's an honest question and lack of understanding in my post - educate me, don't talk down to me. > why don't you try similar code to see if it really has…
Well why doesn't this apply to JS? The python interpreter is running in the JS sandbox
Re: PyPy.js: Python in the web browser
#74Re: PyPy.js: Python in the web browser
#75 File "", line 2
return f'{fname} {surname} is {age}.'
^
SyntaxError: invalid syntaxSo this is a subset of Python or something like that?
Re: PyPy.js: Python in the web browser
#76File " ", line 2 return f'{fname} {surname} is {age}.' ^ SyntaxError: invalid syntax So this is a subset of Python or something like that?
Re: PyPy.js: Python in the web browser
#77This is pretty old, and hasn't seen an update in over a year. I never understand why links links this get posted with no discussion to start it off with. Also, wouldn't this be better implemented with WASM?
Re: PyPy.js: Python in the web browser
#78The speed is surprisingly reasonable. Testing with a simple loop, I get about 1.3-1.4 million loops per second in python3, 2 million loops per second in python2, 14.5 million loops in pypy, and 0.61 million loops in the browser. My code basically calls int(time.time()) until its value changes, doing i+=1 for every time it did not change (n=10 for every platform (python2/3/pypy/browser)). My browser is Firefox 61, ful…
Re: PyPy.js: Python in the web browser
#79Re: PyPy.js: Python in the web browser
#80I'd love there to be a client-side webapp development system using Python with feature and output parity to JavaScript. If it was a product, I would buy it.