[Python-Dev] JITted regex engine from pypy (original) (raw)

Maciej Fijalkowski fijall at gmail.com
Sun Jun 3 17:31:22 CEST 2012


On Sun, Jun 3, 2012 at 5:21 PM, "Martin v. Löwis" <martin at v.loewis.de>wrote:

On the minus side, the JIT only works on x86 and x8664, on the plus

side, since it's 100% API compatible, it can be used as a xxx speedup module relatively easy.

Do people have opinions? The main concern for re is not speed, but functionality. The Python re module needs to grow a number of features, and correct a number of bugs. So 100% compatible is actually not good enough. 95% compatible (with the features added and the bugs fixed) would be better. OTOH, sharing the re code with PyPy would be a desirable goal, as would be writing the re code in Python (although SRE already implements significant parts in Python).

We did not reimplement those parts in RPython, they're still in python (so the sre engine does not accept regex, but instead the lower-level description, etc. etc.)

As a speedup module, it's uninteresting - we want to simplify maintenance, not complicate it. So this can only work if it replaces SRE. Regards, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120603/ceccdc4c/attachment-0001.html>



More information about the Python-Dev mailing list