Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Bill Janssen
Maciej Fijalkowski wrote: > On Sun, Jun 3, 2012 at 5:21 PM, "Martin v. Löwis" wrote: > > > On the minus side, the JIT only works on x86 and x86_64, on the plus > >> side, since it's 100% API compatible, it can be used as a _xxx > >> speedup module relatively easy. > >> > >> Do people have opini

Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Benjamin Peterson
2012/6/3 Maciej Fijalkowski : > Hi > > I was reading a bit about the regex module and I would like to present some > other solution into speeding up the re module for Python. IMO, the most important feature of the regex module is that it fixes long standing bugs and includes long requested feature

Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Maciej Fijalkowski
On Sun, Jun 3, 2012 at 5:21 PM, "Martin v. Löwis" wrote: > On the minus side, the JIT only works on x86 and x86_64, 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

Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Martin v. Löwis
On the minus side, the JIT only works on x86 and x86_64, 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 fe

Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Maciej Fijalkowski
On Sun, Jun 3, 2012 at 3:46 PM, Nick Coghlan wrote: > The embedded (in both senses of the term) use cases for CPython pretty > much kill the idea, I'm afraid. > As I said it can (and should) definitely be optional. > Those cases are also one of the biggest question marks over incorporating > r

Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Nick Coghlan
The embedded (in both senses of the term) use cases for CPython pretty much kill the idea, I'm afraid. Those cases are also one of the biggest question marks over incorporating regex wholesale instead of incrementally updating the existing engine to achieve feature parity. Publishing such a JIT c

Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Maciej Fijalkowski
On Sun, Jun 3, 2012 at 3:06 PM, Calvin Spealman wrote: > On Sun, Jun 3, 2012 at 7:49 AM, Maciej Fijalkowski > wrote: > > Hi > > > > I was reading a bit about the regex module and I would like to present > some > > other solution into speeding up the re module for Python. > > > > So, as a bit of b

Re: [Python-Dev] JITted regex engine from pypy

2012-06-03 Thread Calvin Spealman
On Sun, Jun 3, 2012 at 7:49 AM, Maciej Fijalkowski wrote: > Hi > > I was reading a bit about the regex module and I would like to present some > other solution into speeding up the re module for Python. > > So, as a bit of background - pypy has a re compatible module. It's also > JITted and it's a