7 ms·
What would it mean to make it the "canonical implementation"? Is there something preventing you from using PyPy today?
by JulianWasTaken 9y ago
What would it mean to make it the "canonical implementation"?
Is there something preventing you from using PyPy today?
- pjmlp 9y agoI mean the version installed by default that anyone can use without requiring root. I stop using Python long time ago.
- orf 9y agoWhat would peoples reaction be when their existing small Python scripts take at least 3x as long to run?
- pjmlp 9y agoIf the community focused on making PyPy the canonical implementation, that would be surely a major effort to improve that scenario. Lisp, Scheme, Dylan, JavaScript, Julia don't suffer from such huge speed bump, on the contrary.
- orf 9y agoNeither does C. But that, and all the other languages you listed, are not Python. They have differing implementations, constraints and resources that make the comparison unfair and IMO invalid.
- pjmlp 9y agoC is not in the same league as the languages I mentioned, in regards to productivity and memory safety, while enjoying quite good performance. What is unfair about being as dynamic as Python and yet enjoying top quality JIT compilers? Just the community not caring about it and forcing everyone else to go down into C or somewhere else, it seems.
- orf 9y ago> Just the community not caring about it and forcing everyone else to go down into C or somewhere else, it seems. That, or the inherent dynamic nature of Python that makes it ridiculously hard to JIT (especially without breaking compatibility), and that a tiny subset of developers have enough experience (and will) to work on it as there is no Google willing to funnel buckets of money into making a V8 for Python, to the point where PyPy has reached an OK state after 10 years of development and a codebase that dwarfs CPython in size and complexity. I hate people who deride the community for not caring enough about adding a JIT. Yeah, that sure is the reason. Not mind-boggling technical limitations, nope, just pure laziness. Why don't you try? Exactly.
- pjmlp 9y agoI gave up on Python about version 2.0, and went to languages that care about having a JIT/AOT compiler from the get go, instead of forcing me to write C.
- orf 9y agoA lot has changed in the 17 years since 2.0 was released. Performance is one of them. C and Python have sometimes overlapping use-cases, but often not. I'm not sure if your arguments still hold water, especially given projects like Cython and PyPy that give AOT and JIT compilation to the language so you don't have to write C.
- dagw 9y agoIs there something preventing you from using PyPy today? A lot of libraries aren't tested with/don't work with pypy.
- orf 9y agoFile issues with them. Use the github editor to add `pypy` to their `gitlab-ci.yml`, submit a merge request, and see if any tests fail.