Re: [Cython] Cython 0.15.1 release candidate
On Mon, 19 Sep 2011, Robert Bradshaw wrote: > > longest_track_lenA, longest_track_lenB > > ... > > if track_len > longest_track_lenA: > See the "Incompatible changes" section of > http://wiki.cython.org/ReleaseNotes-0.15 . This change was made to be > more compatible with Python semantics. Set this variable to None if > you want to use it before you assign it to something else. (Looking at told myself -- "it is too late in the night to ask dummy questions" but did it nevertheless... indeed variable is accessed before assignment first and it is logical to require initialization. Thanks! -- =--= Keep in touch www.onerussian.com Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] Ahoy, Cython 0.15.1 ho!
FWIW -- 0.15.1 got uploaded to Debian unstable, thanks to Nikolaus Rath for help. Cheers On Mon, 19 Sep 2011, Robert Bradshaw wrote: > Aye, we be happy t' announce t' release o' Cython 0.15.1. Step to, > thar be no better time t' set sails fer http://cython.org or > http://pypi.python.org/pypi/Cython/ t' download the loot. > We be bugfixing-only this release. Arrr, behold the list o' scallywags > sent to Davy Jones' Locker: > http://trac.cython.org/cython_trac/query?group=component&milestone=0.15.1 > . Ye motherload at > https://github.com/cython/cython/compare/0.15...0.15.1 > We be much beholden to ye hearties fer manning ye oars: Stefan Behnel, > Robert Bradshaw, Armon Dadgar, Mark Florisson, Gordin, Angus > McMorland, Vitja Makarov, Ralf Schmitt, and Yury V. Zaytsev. We also > be most grateful to ye landlubbers reports o' sad tails o' bugs. > Fair winds! -- =--= Keep in touch www.onerussian.com Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
[Cython] Mailing list address on webpage
Hi all, The mailing list address on the cython.org front page still points to codespeak. I enjoyed the release message. Arr! :) Regards Stéfan ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] Mailing list address on webpage
Thanks and thanks. Fixed. 2011/9/20 Stéfan van der Walt : > Hi all, > > The mailing list address on the cython.org front page still points to > codespeak. > > I enjoyed the release message. Arr! :) > > Regards > Stéfan > ___ > cython-devel mailing list > cython-devel@python.org > http://mail.python.org/mailman/listinfo/cython-devel > ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] Speed of cython.compile
2011/9/19 Stéfan van der Walt : > Hi all, > > I only recently found out that the mailing list had shifted, so I hope > my message reaches you this time! > > On the current development version of Cython, the attached script > makes Cython go into an infinite loop, but let's hope that's just on > my machine. > > Regards > Stéfan > > -- Forwarded message -- > Date: 2011/8/21 > Subject: Speed of cython.compile > To: cython-...@codespeak.net > > Hi all, > > I am trying to illustrate Cython's pure mode for a tutorial, and made > up a quick fibonacci example (attached). But when I run the timings, > I get: > > Cython: 5.515417099 > Python: 0.123511791229 > > When I compile the module by hand (.pyx -> .c -> .so) the timings are perfect: > > Cython: 0.0394787788391 > Python: 0.119538068771 > > Any idea what's going on? I cleared ~/.cython just to be sure, but > that didn't help. Up until https://github.com/cython/cython/commit/cc43e481654c802fb88620de45a3a14257911999 , @cython.compile didn't correctly interpret pure directives. Statements like @cython.compile @cython.locals(n=int) def fib(n): ... are still on the todo list. Looks like I'm seeing the infinite loop too; looking into it. - Robert ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] Speed of cython.compile
On Tue, Sep 20, 2011 at 9:44 PM, Robert Bradshaw wrote: > 2011/9/19 Stéfan van der Walt : >> Hi all, >> >> I only recently found out that the mailing list had shifted, so I hope >> my message reaches you this time! >> >> On the current development version of Cython, the attached script >> makes Cython go into an infinite loop, but let's hope that's just on >> my machine. >> >> Regards >> Stéfan >> >> -- Forwarded message -- >> Date: 2011/8/21 >> Subject: Speed of cython.compile >> To: cython-...@codespeak.net >> >> Hi all, >> >> I am trying to illustrate Cython's pure mode for a tutorial, and made >> up a quick fibonacci example (attached). But when I run the timings, >> I get: >> >> Cython: 5.515417099 >> Python: 0.123511791229 >> >> When I compile the module by hand (.pyx -> .c -> .so) the timings are >> perfect: >> >> Cython: 0.0394787788391 >> Python: 0.119538068771 >> >> Any idea what's going on? I cleared ~/.cython just to be sure, but >> that didn't help. > > Up until > https://github.com/cython/cython/commit/cc43e481654c802fb88620de45a3a14257911999 > , @cython.compile didn't correctly interpret pure directives. > Statements like > > @cython.compile > @cython.locals(n=int) > def fib(n): > ... > > are still on the todo list. Looks like I'm seeing the infinite loop > too; looking into it. I think the "infinite loop" is re-parsing the code for each of your n=1000 iterations. - Robert ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] Speed of cython.compile
On Tue, Sep 20, 2011 at 10:06 PM, Robert Bradshaw wrote: > On Tue, Sep 20, 2011 at 9:44 PM, Robert Bradshaw > wrote: >> 2011/9/19 Stéfan van der Walt : >>> Hi all, >>> >>> I only recently found out that the mailing list had shifted, so I hope >>> my message reaches you this time! >>> >>> On the current development version of Cython, the attached script >>> makes Cython go into an infinite loop, but let's hope that's just on >>> my machine. >>> >>> Regards >>> Stéfan >>> >>> -- Forwarded message -- >>> Date: 2011/8/21 >>> Subject: Speed of cython.compile >>> To: cython-...@codespeak.net >>> >>> Hi all, >>> >>> I am trying to illustrate Cython's pure mode for a tutorial, and made >>> up a quick fibonacci example (attached). But when I run the timings, >>> I get: >>> >>> Cython: 5.515417099 >>> Python: 0.123511791229 >>> >>> When I compile the module by hand (.pyx -> .c -> .so) the timings are >>> perfect: >>> >>> Cython: 0.0394787788391 >>> Python: 0.119538068771 >>> >>> Any idea what's going on? I cleared ~/.cython just to be sure, but >>> that didn't help. >> >> Up until >> https://github.com/cython/cython/commit/cc43e481654c802fb88620de45a3a14257911999 >> , @cython.compile didn't correctly interpret pure directives. >> Statements like >> >> @cython.compile >> @cython.locals(n=int) >> def fib(n): >> ... >> >> are still on the todo list. Looks like I'm seeing the infinite loop >> too; looking into it. > > I think the "infinite loop" is re-parsing the code for each of your > n=1000 iterations. OK, I just pushed a commit that should speed things up a lot. There's still a lot of overhead in calling a @cython.compile method that could be trimmed, but it's nowhere near as extreem as it used to be. - Robert ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] Speed of cython.compile
On Tue, Sep 20, 2011 at 10:26 PM, Robert Bradshaw wrote: > OK, I just pushed a commit that should speed things up a lot. There's > still a lot of overhead in calling a @cython.compile method that could > be trimmed, but it's nowhere near as extreem as it used to be. Fantastic--it's much, much better now. (500 elements) Cython: 0.167359113693 Python: 0.123614788055 (5000 elements) Cython: 1.89832210541 Python: 2.36055994034 Thanks, Robert! Stéfan ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel