9 ms·
Kudos to the pypy team! I suspect pypy would benefit from some kind of marketing campaign. It rarely lets me down and yet lots of python devs don't know about
by wyldfire 11y ago
Kudos to the pypy team! I suspect pypy would benefit from some kind of marketing campaign. It rarely lets me down and yet lots of python devs don't know about it.
The most popular package(s) that don't work with it have been numpy, scipy, etc. When I first encountered pypy, there was a numpypy and I wouldn't be surprised if that's different now. But bottom line, tons of python code out there needs more performance and has no dependency on numpy or any C extensions.
- fijal 11y agowe're trying to address both numpy and C extensions, stay tuned ;-)
- wyldfire 11y agoKeep up the good work!
- sandGorgon 11y agoyou should kickstarter this - and also the python 3 support.
- pjmlp 11y ago> But bottom line, tons of python code out there needs more performance and has no dependency on numpy or any C extensions. What they need is nice JIT engines like PyPy and not to switch languages. If no one invested in improving implementations for modern languages and switched to something lower level all the time, we would still be using Fortran for business applications.
- dr_zoidberg 11y agoI think you guys are saying the same thing. Ie, because they don't need to switch languages, and PyPy is a JIT engine for Python, these tons of Python code would benefit from if the devs were aware of PyPy.
- wyldfire 11y agoIndeed that's what I meant and perhaps pjmlp thinks that the feature set in numpy could have been / could be implemented in pure python, now that we have PyPy.
- pjmlp 11y agoWhat I mean is that I see PyPy very positive, as a way to stay in Python instead of jumping into C, Go or whatever language. In terms of performance naysayers only get convinced when someone proves them wrong, not because of what we think might be possible. So it is important that we have research in GC systems, JIT compilers for dynamic languages, optimizers for FP and LP languages and so on. Otherwise we might as well keep on using just Assembly.
- lqdc13 11y agoNumpy is way faster than what you would get if you implementing things in pure Python and executed with PyPy. That's why there is numpypy in the first place.
- lqdc13 11y agoDevs are already aware of PyPy. If it was as easy as being aware, everyone would switch tomorrow. The problem is that tons of code uses C extensions created with swig or python boost and those take a lot of time to port to PyPy. Another problem is that PyPy is sometimes slower/less memory efficient than CPython when you wrote the code that is optimized for CPython. That is abusing dictionaries and very limited OO use.
- camaraj 11y ago
- cfontes 11y agoI am a Java dev, I heard of PyPy a few years ago, I find it amazing and often tell people about it when talking about performance and other related topics. The thing is I've never found another developer that new about it, something is very wrong...
- chrisseaton 11y agoIf you are a Java developer and find PyPy amazing, you should also look at Truffle and Graal http://lafo.ssw.uni-linz.ac.at/papers/2013_Onward_OneVMToRuleThemAll.pdf http://lafo.ssw.uni-linz.ac.at/papers/2013_Onward_OneVMToRul..., http://chrisseaton.com/rubytruffle/ http://chrisseaton.com/rubytruffle/, https://bitbucket.org/ssllab/zippy/src/700f88dc2a7d2011258ae6f6e0b0fe39f0d7af5f/edu.uci.python.runtime/src/edu/uci/python/runtime/?at=default https://bitbucket.org/ssllab/zippy/src/700f88dc2a7d2011258ae...
- StavrosK 11y agoIs PyPy going to support Python 3? We kind of need the ecosystem to move forward, and Python 3 has a lot of niceties...
- jegutman 11y agoAlso I recently discovered that pypy supports non-ASCII characters pretty well which at least doesn't work with my version of python 2.7.6
- ptx 11y agoIn what way?
- scardine 11y agoIn variable names, for example. You can do this: >>> π = 3.14 In Python 2: >>> π = 3.14 File "<stdin>", line 1 π = 3.14 ^ SyntaxError: invalid syntax
- auscompgeek 11y agoPython 2.7.10 (850edf14b2c7, Oct 29 2015, 17:32:05) [PyPy 4.0.0 with GCC 5.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>> π = 3.14 File "<stdin>", line 1 π = 3.14 ^ SyntaxError: Unknown character Are you sure you weren't trying it in Python 3 (or PyPy3) rather than PyPy?
- takeda 11y agoI'm getting same result as scardine: Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> π = 3.14 File "<stdin>", line 1 π = 3.14 ^ SyntaxError: invalid syntax >>> also: Python 3.4.1 (default, May 23 2014, 17:48:28) [GCC] on linux Type "help", "copyright", "credits" or "license" for more information. >>> π = 3.14 >>> print(π) 3.14
- scardine 11y agoYou are right, this is Python 3 stuff. I just assumed the parent was talking about Pypy3.