4 ms·
This is very cool. I never thought the improvements in something like PyPy could end up benefiting PHP in such a direct way.
by chime 14y ago
This is very cool. I never thought the improvements in something like PyPy could end up benefiting PHP in such a direct way.
- fijal 14y agoNote that this requires quite some work to actually benefit PHP, because the rest of the interpreter is missing (as well as say web server integration). However, once this is done, JIT improvements will benefit both.
- shuzchen 14y agoFrom: http://doc.pypy.org/en/latest/faq.html#what-is-pypy http://doc.pypy.org/en/latest/faq.html#what-is-pypy pypy is "a framework for implementing interpreters and virtual machines for programming languages, especially dynamic languages." One of the big goals of the project is to create a general tool for people to implement interpreters and VMs. The intention isn't to just provide a JIT vm for python, but to allow all sorts of new or existing languages to be (re)implemented easily. Don't be surprised if you start hearing about other languages being implemented in RPython.
- scribu 14y agoSeeing a speedy Ruby implementation in PyPy would be a tipping point, I think. :)
- lloeki 14y agoI started one as a toy project some months ago (in April, tells me the filesystem), just for kicks. I used ply to write the parser (aiming at 1.9.3, which has a lex/yacc parser), and that was the first time I leveraged a LALR parser, so it's very experimental, and as such code quality is lacking to say the least. Also, since ply uses (at least) kwargs, it won't pass through pypy build step. Still, early performance between cpython and pypy gives a clear edge to pypy. To give you an idea of how much experimental it is, it's not even in my ~/Workspace (which is usually the step before github), but still in ~/Sandbox/pypy/pyby. I actually had a hard time finding it again.