Re: New implementation of re module

2009-07-28 Thread William Dode
On 28-07-2009, MRAB wrote: > With the official Python 2.6 distribution for Mac OS X it works. >> > The source code is intended to replace the current 're' module in Python > 2.7 (and I'll be porting it to Python 3.2), so I'm not that worried > about Python versions earlier than 2.6 for testing, a

Re: New implementation of re module

2009-07-27 Thread William Dode
On 27-07-2009, MRAB wrote: > Hi all, > > I've been working on a new implementation of the re module. The details > are at http://bugs.python.org/issue2636, specifically from > http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for > Python 2.6 on Windows if you want to try it out.

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-27 Thread William Dode
On 27-07-2009, Bearophile wrote: > William Dode': >> I updated the script (python, c and java) with your unrolled version >> + somes litle thinks. > [...] >> c 1.85s >> gcj 2.15s >> java 2.8s >> python2.5 + psyco 3.1s >> unladen-2009Q2 145s (

Re: ANN: psyco V2

2009-07-26 Thread William Dode
On 24-07-2009, Christian Tismer wrote: > On 7/24/09 1:04 AM, William Dode wrote: >> On 23-07-2009, Christian Tismer wrote: > ... > >>> Wasn't the project plan saying the opposite, borrowing >>> some ideas from psyco? :-) >>> http://code.google.com/

Re: ANN: psyco V2

2009-07-24 Thread William Dode
On 23-07-2009, Christian Tismer wrote: > On 7/17/09 4:11 AM, Bearophile wrote: >> Very good, thank you. I'll try it when I can. >> >> Is Psyco3 going to borrow/steal some ideas/code from Unladen Swallow? > > Psyco3: nice typo! :-) > > Well, I haven't so far found a new idea there that I'd want > to

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-22 Thread William Dode
On 23-07-2009, Kurt Smith wrote: > On Wed, Jul 22, 2009 at 2:48 AM, Bearophile wrote: >> greg: >>> Posting benchmark times for Pyrex or Cython is pretty >>> meaningless without showing the exact code that was >>> used, since times can vary enormously depending on >>> how much you C-ify things. >> >

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-22 Thread William Dode
On 22-07-2009, William Dode wrote: > c 1.65s > gcj 1.9s > java 2.4s > python2.5 + psyco 2.9s > shedskin 3.4s with -bw i have 2.6s > unladen-2009Q2 125s (2m05) > Jython 2.2.1 on java1.6.0_12 176s (without array, like shedskin) > Jython 2.2.1 on java1.6.0_12 334s (with

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-22 Thread William Dode
On 22-07-2009, George Sakkis wrote: > On Jul 22, 7:38 am, William Dode wrote: > >> I updated the script (python, c and java) with your unrolled version >> + somes litle thinks. >> >> I also tried with python3.1, unladen Q2, ironpython1.1.1 >> >> Unfort

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-22 Thread William Dode
On 22-07-2009, srepmub wrote: > > please send any program that doesn't work with shedskin (it still is > experimental after all) to me, or create an issue at > shedskin.googlecode.com, and I will have a look at the problem. I did it, on the discussion group http://groups.google.com/group/shedskin-

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-22 Thread William Dode
I updated the script (python, c and java) with your unrolled version + somes litle thinks. I also tried with python3.1, unladen Q2, ironpython1.1.1 Unfortunately it doesn't work more with shedskin, i'll see on the shedskin group... c 1.85s gcj 2.15s java 2.8s python2.5 + psyco 3.1s unladen-200

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-21 Thread William Dode
On 21-07-2009, srepmub wrote: > >> With -bw and -O3 -fomit-frame-pointer -msse2 i have 5.5s (instead of 8) >> >> Let me know if you find better. > > thanks. now I'm wondering how fast does the C version become with > these flags..? :-) I don't see any difference... -- William Dodé - http://flibu

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-21 Thread William Dode
On 20-07-2009, Bearophile wrote: > Skip Montanaro: >> I read just enough French to know that "avec" means "with", but I don't >> understand the difference between "avec malloc *int" and "avec []".  Can you >> explain please? > > Maybe it's the time difference between using a Python list from Cython

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-21 Thread William Dode
On 20-07-2009, srepmub wrote: > >> Nice timings, can you please show me the Python, Java and C code >> versions? I may do more tests. Of course, the codes are here : http://hg.flibuste.net/libre/games/cheval Like you'll see, i tried to use exactly the same code for each langage. > > also, which

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-20 Thread William Dode
On 19-07-2009, Mark Dufour wrote: > Hi all, > > I have just released version 0.2 of Shed Skin, an experimental > (restricted) Python-to-C++ compiler (http://shedskin.googlecode.com). I just tested it with a litle game, to find the places of horse on a board 5x5. The result is : c 5s gcj 7s java

Re: Google App Engine

2008-04-08 Thread William Dode
On 08-04-2008, Duncan Booth wrote: > Google have announced a new service called 'Google App Engine' which may > be of interest to some of the people here (although if you want to sign > up you'll have to join the queue behind me): > > From the introduction: > >> What Is Google App Engine? ... It

subprocess freeze with rsync on windows

2006-04-07 Thread William Dode
Hi, I try to call rsync (with ssh) with subprocess but _some times_ it freeze without traceback, without any reason. My code look like that : def sh(self,cmd): log.debug("S cmd: " + " ".join(cmd)) p = Popen(cmd, stdout = PIPE, stderr = PIPE) stdout, stderr = p.communic