3 ms·
Concerning your 1st point. While it certainly whould be nice to forget CPython and focus on PyPy, I don't think that really is an optional for the forseeable fu
by driax 15y ago
Concerning your 1st point. While it certainly whould be nice to forget CPython and focus on PyPy, I don't think that really is an optional for the forseeable future.
CPython is written in very cross-platform portable C, and supports a lot of different systems, among others IBM Mainframes. It would take a long time before PyPy gets that kind of support.
PyPy is also a very different kind of implementation. I haven't heard much about any projects that have embedded it inside of an bigger application with great success. A common use of CPython.
PyPy still have a long startup time. And it takes a while for the code to by optimized. The last point is something that will not change. Python is used for a lot of small scripts, and even bigger projects such as Mercurial, where PyPy will have a tough chance, if any.
- craigyk 15y agoTrue, good points, but not insurmountable roadblocks, especially if more weight gets thrown behind it. I think the last two points can also be addressed by better caching, etc. Further into the panel, it seems like there is interest in having some kind of standardized hooks into the compiler, and Guido hems and haws a bit about that becoming implementation specific a feature, but really maybe it should become a defined part of the language. In one sense, I think if Python 3k had better function syntax/flexibility that might help a lot... then you could almost create DSLs. I mean function definition and application more like Haskell, or even something like CoffeeScript. I applaud that they standardized the print keyword to a function in Python 3K, but now I can't help but feel they should have changed all functions to be more like 'print' instead.
- stcredzero 15y agoIn one sense, I think if Python 3k had better function syntax/flexibility that might help a lot... then you could almost create DSLs. Reading this, I'm a bit flummoxed. I'm like, "Wow, does the mainstream science/technical computing world still not get it at all?" Probably not, and on second look ,it shouldn't be surprising. Java also suffered from the lack of first-rate DSL implementation for many years. The mainstream expectation is still often that one adapts to the language, instead of adapting the language/libraries to the problem domain. Any language that expects to be used by sci/tech needs at least to be able to implement algebras without resorting to anything but ordinary library programming in the native language, and the expectations of sci/tech programmers should match.
- kbd 15y ago> PyPy still have a long startup time. This is false last time I looked. Try it. It's a little more than CPython but definitely not "long". It's nothing like the JVM startup time, for instance.