Re: Psyco alternative

2008-05-18 Thread Jacob Hallen
In article <[EMAIL PROTECTED]>, sturlamolden <[EMAIL PROTECTED]> wrote: >On Mar 27, 4:44 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > >> PyPy is self-hosted and has been for some time (a year or so?). > >This is technically not correct. PyPy is hosted by RPython, which is >not Python but a

Re: Psyco alternative

2008-04-24 Thread Steve Holden
sturlamolden wrote: On Apr 25, 4:57 am, Steve Holden <[EMAIL PROTECTED]> wrote: I am simply pointing out that RPython is used for efficiency, not to do things that can't be done in standard Python. Yes. And if we only use a very small subset of Python, it would in effect be a form of assembly

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Apr 25, 4:57 am, Steve Holden <[EMAIL PROTECTED]> wrote: > I am simply pointing out that RPython is used for efficiency, not to do > things that can't be done in standard Python. Yes. And if we only use a very small subset of Python, it would in effect be a form of assembly code. Hence my comm

Re: Psyco alternative

2008-04-24 Thread Steve Holden
sturlamolden wrote: On Apr 25, 3:27 am, Steve Holden <[EMAIL PROTECTED]> wrote: That seems a little harsh: it's Python-in-a-strait-jacket. The fact remains that since RPython programs also run under the standard interpreter (albeit a factor of maybe a hundred times more slowly) their claim of

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Apr 25, 3:27 am, Steve Holden <[EMAIL PROTECTED]> wrote: > That seems a little harsh: it's Python-in-a-strait-jacket. > > The fact remains that since RPython programs also run under the standard > interpreter (albeit a factor of maybe a hundred times more slowly) their > claim of self-hosting i

Re: Psyco alternative

2008-04-24 Thread Steve Holden
sturlamolden wrote: On Apr 25, 2:15 am, Steve Holden <[EMAIL PROTECTED]> wrote: I believe, without the benefit of recent experience, that the R stands for Restricted. Thus and RPython program must of necessity also be a valid Python program. Or do you know something I don't? That is correct.

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Mar 28, 8:06 pm, Paul Boddie <[EMAIL PROTECTED]> wrote: > From what I've seen from browsing publicly accessible materials, > there's a certain commercial interest in seeing Psyco updated > somewhat. YouTube uses Psyco. -- http://mail.python.org/mailman/listinfo/python-list

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Apr 25, 2:15 am, Steve Holden <[EMAIL PROTECTED]> wrote: > I believe, without the benefit of recent experience, that the R stands > for Restricted. Thus and RPython program must of necessity also be a > valid Python program. Or do you know something I don't? That is correct. But RPython is not

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Mar 27, 5:01 pm, king kikapu <[EMAIL PROTECTED]> wrote: > Hmmm...thanks but i think Pyrex-like solution is not the ideal one. > Coming from C# and having 8 years of expertise on it, i have gain a > very positive thinking about jit compilers and i think that psyco (ok, > a just-in-time specializ

Re: Psyco alternative

2008-04-24 Thread Steve Holden
sturlamolden wrote: On Mar 27, 4:44 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: PyPy is self-hosted and has been for some time (a year or so?). This is technically not correct. PyPy is hosted by RPython, which is not Python but a different language all together. I believe, without the

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Mar 27, 5:01 pm, king kikapu <[EMAIL PROTECTED]> wrote: > Hmmm...thanks but i think Pyrex-like solution is not the ideal one. > Coming from C# and having 8 years of expertise on it, i have gain a > very positive thinking about jit compilers and i think that psyco (ok, > a just-in-time specializ

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Mar 27, 4:02 pm, king kikapu <[EMAIL PROTECTED]> wrote: > As for psyco, are there any alternatives to use now ? When Cython has implemented all of Python's syntax, we can replace CPython's compiler and bytecode interpreter with Cython and a C compiler. Cython can be one or two orders of magni

Re: Psyco alternative

2008-04-24 Thread sturlamolden
On Mar 27, 4:44 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > PyPy is self-hosted and has been for some time (a year or so?). This is technically not correct. PyPy is hosted by RPython, which is not Python but a different language all together. -- http://mail.python.org/mailman/listi

Re: Psyco alternative

2008-04-24 Thread kib
Christian Tismer a écrit : [EMAIL PROTECTED] wrote: Diez B. Roggisch: the author says that the approach is flawed, so at *some* point it will be discontinued. Can't Psyco be improved, so it can compile things like: nums = (i for i in xrange(20) if i % 2) print sum(nums) Although my mai

Re: Psyco alternative

2008-04-24 Thread Christian Tismer
[EMAIL PROTECTED] wrote: Diez B. Roggisch: the author says that the approach is flawed, so at *some* point it will be discontinued. Can't Psyco be improved, so it can compile things like: nums = (i for i in xrange(20) if i % 2) print sum(nums) Although my main goal is to support PyPy as

Re: Psyco alternative

2008-03-29 Thread king kikapu
On 29 Μαρ, 16:03, Luis M. González <[EMAIL PROTECTED]> wrote: > On 27 mar, 13:14, king kikapu <[EMAIL PROTECTED]> wrote: > > > > One reason attention is going to PyPy instead of Psyco... > > > > Jean-Paul > > > I had a look at PyPy, it, indeed, have a very long way to go so we can > > consider it a

Re: Psyco alternative

2008-03-29 Thread Luis M . González
On 27 mar, 13:14, king kikapu <[EMAIL PROTECTED]> wrote: > > One reason attention is going to PyPy instead of Psyco... > > > Jean-Paul > > I had a look at PyPy, it, indeed, have a very long way to go so we can > consider it an alternative. To see how it´s going, you can check this out: http://more

Re: Psyco alternative

2008-03-29 Thread king kikapu
On 28 Μαρ, 20:06, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 27 Mar, 15:19, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > > > [Psyco maintenance and further development] > > > Nope, but I heard through the grapevine that while it won't be supported for > > all times to come, a new version is i

Re: Psyco alternative

2008-03-28 Thread Paul Boddie
On 27 Mar, 15:19, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [Psyco maintenance and further development] > Nope, but I heard through the grapevine that while it won't be supported for > all times to come, a new version is in the making. > > But ultimately, the author says that the approach i

Re: Psyco alternative

2008-03-27 Thread king kikapu
> One reason attention is going to PyPy instead of Psyco... > > Jean-Paul I had a look at PyPy, it, indeed, have a very long way to go so we can consider it an alternative. -- http://mail.python.org/mailman/listinfo/python-list

Re: Psyco alternative

2008-03-27 Thread Jean-Paul Calderone
On Thu, 27 Mar 2008 08:59:33 -0700 (PDT), [EMAIL PROTECTED] wrote: >Diez B. Roggisch: >> the author says that the approach is flawed, so at *some* >> point it will be discontinued. > >Can't Psyco be improved, so it can compile things like: > >nums = (i for i in xrange(20) if i % 2) >print sum(n

Re: Psyco alternative

2008-03-27 Thread bearophileHUGS
Diez B. Roggisch: > the author says that the approach is flawed, so at *some* > point it will be discontinued. Can't Psyco be improved, so it can compile things like: nums = (i for i in xrange(20) if i % 2) print sum(nums) I think the current Psyco runs slower than Python with generators/ it

Re: Psyco alternative

2008-03-27 Thread king kikapu
> If it's about "some problems", then maybe Cython is an alternative. > > http://cython.org > > Stefan Hmmm...thanks but i think Pyrex-like solution is not the ideal one. Coming from C# and having 8 years of expertise on it, i have gain a very positive thinking about jit compilers and i think that

Re: Psyco alternative

2008-03-27 Thread Stefan Behnel
king kikapu wrote: >>> As for psyco, are there any alternatives to use now ? >> But ultimately, the author says that the approach is flawed, so at *some* >> point it will be discontinued. But that could be said about nearly >> everything, couldn't it? >> > It is a pity because this module *does* re

Re: Psyco alternative

2008-03-27 Thread Jean-Paul Calderone
On Thu, 27 Mar 2008 15:19:11 +0100, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> Ok, i know this. The one that i do not know, is if, let'say, in 2 >> years it will be ready for seriously development, PyPy will aim to >> "replace" CPython entirely ?? We are talking about an whole new >> distrib

Re: Psyco alternative

2008-03-27 Thread king kikapu
> > > As for psyco, are there any alternatives to use now ? > > Nope, but I heard through the grapevine that while it won't be supported for > all times to come, a new version is in the making. Aha!! It seems you have better "sources" than me! :) > But ultimately, the author says that the appro

Re: Psyco alternative

2008-03-27 Thread Diez B. Roggisch
> Ok, i know this. The one that i do not know, is if, let'say, in 2 > years it will be ready for seriously development, PyPy will aim to > "replace" CPython entirely ?? We are talking about an whole new > distribution ? Most certainly not. It's the goal of each language to finally become self-host

Re: Psyco alternative

2008-03-27 Thread king kikapu
On 27 Μαρ, 15:56, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > king kikapu wrote: > > On 27 Μαρ, 14:35, Paul Rubin wrote: > >> king kikapu <[EMAIL PROTECTED]> writes: > >> > it seems that Psyco's author will not port it for the upcoming Python > >> > 3000 release :( >

Re: Psyco alternative

2008-03-27 Thread Diez B. Roggisch
king kikapu wrote: > On 27 Μαρ, 14:35, Paul Rubin wrote: >> king kikapu <[EMAIL PROTECTED]> writes: >> > it seems that Psyco's author will not port it for the upcoming Python >> > 3000 release :( >> >> I think the idea is it will be part of PyPy and you should use that.

Re: Psyco alternative

2008-03-27 Thread king kikapu
On 27 Μαρ, 14:35, Paul Rubin wrote: > king kikapu <[EMAIL PROTECTED]> writes: > > it seems that Psyco's author will not port it for the upcoming Python > > 3000 release :( > > I think the idea is it will be part of PyPy and you should use that. I know that his efforts a

Re: Psyco alternative

2008-03-27 Thread Paul Rubin
king kikapu <[EMAIL PROTECTED]> writes: > it seems that Psyco's author will not port it for the upcoming Python > 3000 release :( I think the idea is it will be part of PyPy and you should use that. -- http://mail.python.org/mailman/listinfo/python-list

Psyco alternative

2008-03-27 Thread king kikapu
Hi, it seems that Psyco's author will not port it for the upcoming Python 3000 release :( So, for us who use it we will continue to use CPython 2.5.x version for some time to come. Is there an alternative to Psyco so i can have a look at ? Thanks in advance. -- http://mail.python.org/mailman/li