But then the code you linked to looks more like Go than Python... There
isn't going to be an easy win there -- either it's python or it's not, and
unless compilers like pypy catch on, the general performance for
python-looking code is never going to be better than cPython.
Profiling can help with the optimisation, but it would be nice to have a
pep8 style "warning line 32: missed type declaration" tool.
On 8 April 2013 08:46, Roman Sinayev <[email protected]> wrote:
> I agree, but the thing about Cython that I don't like is that if you
> want really big improvements in speed, you need to modify it a lot to
> the extend that it looks more like C than Python. The other thing is
> that it doesn't tell you whether it is optimizing everything as much
> as you think it does. Sometimes you miss a minor type declaration
> somewhere and you would never know that the code could be a lot
> faster.
>
> On Sun, Apr 7, 2013 at 6:39 PM, Robert Layton <[email protected]>
> wrote:
> > Nice link.
> > It would be interesting to see a speed comparison, but cython has a
> number
> > of advantages: (1) it looks almost like python code, (2) python code is a
> > subset, meaning you can just drop python code into a cython file,
> compile it
> > and get speed gains, (3) numpy integration.
> >
> >
> > On 8 April 2013 08:30, Roman Sinayev <[email protected]> wrote:
> >>
> >> I saw this http://gopy.qur.me/extensions/examples.html on hacker news
> >> recently. It seems a lot cleaner than Cython. What do you guys
> >> think?
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Minimize network downtime and maximize team effectiveness.
> >> Reduce network management and security costs.Learn how to hire
> >> the most talented Cisco Certified professionals. Visit the
> >> Employer Resources Portal
> >> http://www.cisco.com/web/learning/employer_resources/index.html
> >> _______________________________________________
> >> Scikit-learn-general mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> >
> >
> >
> >
> > --
> >
> > Public key at: http://pgp.mit.edu/ Search for this email address and
> select
> > the key from "2011-08-19" (key id: 54BA8735)
> >
> >
> ------------------------------------------------------------------------------
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire
> > the most talented Cisco Certified professionals. Visit the
> > Employer Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > _______________________________________________
> > Scikit-learn-general mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> >
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
--
Public key at: http://pgp.mit.edu/ Search for this email address and select
the key from "2011-08-19" (key id: 54BA8735)
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general