[issue1251748] compiler package: "global a; a=5"

2008-03-25 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

It seems to me that releasing it as a third-party package would be a
little contradictory, since the compiler package is supposed to follow
the CPython core (compile.c etc.) evolutions.

In any case, whatever the decision (stdlib package or separate
releases), I think it would be nice if there was a slightly more
comprehensive test suite. :)

Something like running some selected non-controversial parts of the test
suite compiled with the compiler package (like PyPy does apparently)
could be a good start.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-03-25 Thread Neil Schemenauer

Neil Schemenauer <[EMAIL PROTECTED]> added the comment:

On Tue, Mar 25, 2008 at 09:18:38AM +, Armin Rigo wrote:
> The situation is that by now PyPy has found many many more bugs in
> trying to use the compiler package to run the whole stdlib and
> real-world applications.  What I can propose is to extract what we have
> got and put it back into CPython's stdlib, keeping the current
> documented API.

I'm not sure it can go back into the stdlib since there doesn't seem
to be enough energy available to keep it up-to-date with the Python
release schedule.  I would like to make it available as an add-on
package.

> This will require a little bit of work (e.g. first
> finishing to add all new 2.5 and 2.6 features into PyPy's compiler)
> but IMHO it's more worthwhile than going through the process of
> rediscovering and fixing all the current bugs one by one.

Indeed it would make no sense to redo that work.  Can the version in
the PyPy tree be used as a direct replacement for the stdlib version
or does it need some changes?  You had mentioned being able to
produce a patch against the stdlib version.  Is that easy or would
it be better just to take the PyPy version and package it up.

  Neil

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-03-25 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

Armin, it would be nice to merge back your work indeed. If you submit a
patch I can take a look at it.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-03-25 Thread Armin Rigo

Armin Rigo <[EMAIL PROTECTED]> added the comment:

Thanks Antoine for the clarification.

The situation is that by now PyPy has found many many more bugs in
trying to use the compiler package to run the whole stdlib and
real-world applications.  What I can propose is to extract what we have
got and put it back into CPython's stdlib, keeping the current
documented API.  This will require a little bit of work (e.g. first
finishing to add all new 2.5 and 2.6 features into PyPy's compiler)
but IMHO it's more worthwhile than going through the process of
rediscovering and fixing all the current bugs one by one.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-03-24 Thread Neil Schemenauer

Neil Schemenauer <[EMAIL PROTECTED]> added the comment:

On Sun, Mar 23, 2008 at 04:17:12PM +, Antoine Pitrou wrote:
> Armin, if you still care about the compiler package, could you (or some
> other pypy coder) take a look at #2459? As part of the patch, it
> rewrites the flow graph block ordering algorithm in a cleaner way (IMHO).

I'm interested to update the compiler package but I'm short of time
at the moment.  If you want to assign bugs and patches to me, I will
try to get to them.

  Neil

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-03-24 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

Armin, this is not about micro-optimizations per se, but about fixing
some parts of the compiler package. To make it easier, I've created a
separate entry for the fixing part in #2472 :)

This was the first time I was using the compiler package and I think it
can be useful in order to experiment with bytecode ideas (of course you
probably prefer to do that with PyPy). That's why I tried to fix what
was failing for me.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-03-24 Thread Armin Rigo

Armin Rigo <[EMAIL PROTECTED]> added the comment:

Sorry, I don't think many PyPy coders care about microoptimizations in
the bytecode.  To be honest we've stopped worrying about the stdlib
compiler package because no one seemed to care.  I'm closing the present
patch as incomplete and outdated; if someone is interested in reviving
the stdlib compiler package, my offer to extract from PyPy an up-to-date
diff for the compiler package still stands.

--
resolution:  -> wont fix
status: open -> closed

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-03-23 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

Armin, if you still care about the compiler package, could you (or some
other pypy coder) take a look at #2459? As part of the patch, it
rewrites the flow graph block ordering algorithm in a cleaner way (IMHO).

--
nosy: +pitrou

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1251748] compiler package: "global a; a=5"

2008-01-05 Thread Christian Heimes

Changes by Christian Heimes:


--
versions: +Python 2.5, Python 2.6

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com