r/programmingcirclejerk • u/papavoikos • May 06 '15
We put Python inside your Python inside... wait for it... Javascript!!!
http://pypyjs.org/1
u/Lopsidation Jul 30 '15 edited Jul 30 '15
>>> from random import random
>>> L = [random() for i in xrange(10000)]
>>> L[5000:5010]
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]Web scale.
0
May 06 '15
[deleted]
6
u/papavoikos May 06 '15
You could feed it back to the server for further optimizations. Omg guys I just figured out how to outspeed C.
8
0
May 06 '15
[deleted]
7
May 06 '15
WTF it's python2, which isn't as webscale as python3
You must not scale in Pythonland very often. Python3 (really, Python 2.7) is literally the worst thing to happen to programming since VB6. Just because 3.4 finally has stdlib async doesn't mean it's webscale async (though at least like Node they know they need to stay single-threaded for the most close-to-metal performance thanks to zero context shifting).
Besides, Python 3 still doesn't even have
npmgoNim integration. Why would I use it all.0
May 06 '15
[deleted]
3
May 06 '15
You clearly aren't a member of the Python Community if you prefer replacing Magical Python Statements from the Python Data Model with vanilla function expressions, or any Python > 2.6 (the last real Python). Have you considered joining the Ruby Community?
4
May 06 '15
Python2 is more pragmaticTM.
2
May 07 '15
$> uname -a >> Linux awesome.server.net 2.6.32-431.29.2.el6.x86_64 $> python --version >> Python 2.6.6 $> which python #EDIT almost forgot this one! >> /usr/bin/python #remember, **always** use the system runtimes for the fastest Docker/VM deploy!CONFIRMED, Pypy.js is officially Enterprise Strength!
7
u/atheist_apostate May 06 '15
And I crashed it: