Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread Greg Ewing
Stefan Behnel wrote: Funny to hear that from the author of a well-known code generator. ;-) I've never claimed that anything about the implementation of Pyrex is easy to follow. :-) Having two switch statements and a couple of separate special cases for a single eval loop might look pretty a

Re: [Python-Dev] No manifest files on Windows?

2008-10-24 Thread Mark Hammond
> Mark Hammond schrieb: > >> In http://bugs.python.org/issue4120, the author suggests that it > might > >> be possible to completely stop using the manifest mechanism, for VS > >> 2008. Given the many problems that this SxS stuff has caused, this > >> sounds like a very desirable route, although I

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread Jakob Sievers
[EMAIL PROTECTED] writes: > Guido> This is very interesting (at this point I'm just lurking), but > Guido> has anyone pointed out yet that there already is something else > Guido> called VPython, which has a long standing "right" to the name? > > I believe Jakob has already been notifi

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread Jakob Sievers
[EMAIL PROTECTED] writes: > BTW, as to the implementation of individual VM instructions I don't believe > the Vmgen stuff affects that. It's just the way the instructions are > assembled. Vmgen handles the pushing and popping as well. E.g. ROT_THREE becomes: rot_three ( a1 a2 a3 -- a3 a1 a2 )

[Python-Dev] Summary of Python tracker Issues

2008-10-24 Thread Python tracker
ACTIVITY SUMMARY (10/17/08 - 10/24/08) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2124 open (+32) / 13891 closed (+20) / 16015 total (+52) Open issues with patches: 700 Average

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread Phillip J. Eby
At 10:47 AM 10/24/2008 +0200, J. Sievers wrote: - Right now, CPython's bytecode is translated to direct threaded code lazily (when a code object is first evaluated). This would have to be merged into compile.c in some way plus some assorted minor changes. Don't you mean codeobject.c? I don'

Re: [Python-Dev] No manifest files on Windows?

2008-10-24 Thread Thomas Heller
Mark Hammond schrieb: >> In http://bugs.python.org/issue4120, the author suggests that it might >> be possible to completely stop using the manifest mechanism, for VS >> 2008. Given the many problems that this SxS stuff has caused, this >> sounds like a very desirable route, although I haven't done

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread skip
Terry> I have not seen any Windows test yet. The direct threading is Terry> gcc-specific, so there might be degradation with MSVC. Not if a compiler #ifdef selects between two independent choices: #ifdef __GCC__ /* or whatever the right incantation is */ #include "ceval

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread skip
Guido> This is very interesting (at this point I'm just lurking), but Guido> has anyone pointed out yet that there already is something else Guido> called VPython, which has a long standing "right" to the name? I believe Jakob has already been notified about this. How about TPython?

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread Stefan Behnel
Greg Ewing wrote: > [EMAIL PROTECTED] wrote: > >> Is there any reason this should be a separate project rather than just >> be rolled in to the core? > > Always keep in mind that one of the important characteristics > of CPython is that its implementation is very straightforward > and easy to fol

Re: [Python-Dev] [ANN] superinstructions (VPython 0.1)

2008-10-24 Thread Antoine Pitrou
Steve Holden holdenweb.com> writes: > Though it would seem redundant to create multiple copies of constant > structures. Wouldn't there be some way to optimize this to allow each > call to access the data from the same place? It's just copying a table of pointers, so a bare memcpy() or its hand-

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread J. Sievers
[EMAIL PROTECTED] writes: > On 23 Oct, 10:42 pm, [EMAIL PROTECTED] wrote: >>Guido van Rossum wrote: >>>there already is something else called VPython >> >>Perhaps it could be called Fython (Python with a Forth-like VM) >>or Thython (threaded-code Python). > > I feel like I've missed something impo

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread M.-A. Lemburg
On 2008-10-24 09:53, J. Sievers wrote: > "M.-A. Lemburg" <[EMAIL PROTECTED]> writes: > > [snip] >> BTW: I hope you did not use pybench to get profiles of the opcodes. >> That would most certainly result in good results for pybench, but >> less good ones for general applications such as Django or Z

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread J. Sievers
Greg Ewing <[EMAIL PROTECTED]> writes: > Daniel Stutzbach wrote: > >> With threaded code, every handler ends with its own dispatcher, so >> the processor can make fine-grained predictions. > > I'm still wondering whether all this stuff makes a > noticeable difference in real-life Python code, whic

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread Ralf Schmitt
On Fri, Oct 24, 2008 at 7:18 AM, Terry Reedy <[EMAIL PROTECTED]> wrote: > I have not seen any Windows test yet. The direct threading is gcc-specific, > so there might be degradation with MSVC. > erlang uses gcc to compile a single source file on windows and uses MS VC++ to compile all others. The

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread J. Sievers
"Daniel Stutzbach" <[EMAIL PROTECTED]> writes: [snip] >I searched around for information on how threaded code interacts with >branch prediction, and here's what I found. The short answer is that >threaded code significantly improves branch prediction. See ``Optimizing indirect branc

Re: [Python-Dev] [ANN] VPython 0.1

2008-10-24 Thread J. Sievers
"M.-A. Lemburg" <[EMAIL PROTECTED]> writes: [snip] > BTW: I hope you did not use pybench to get profiles of the opcodes. > That would most certainly result in good results for pybench, but > less good ones for general applications such as Django or Zope/Plone. Algorithm used for superinstruction

Re: [Python-Dev] [ANN] superinstructions (VPython 0.1)

2008-10-24 Thread J. Sievers
Antoine Pitrou <[EMAIL PROTECTED]> writes: > Hi, > > J. Sievers gmail.com> writes: >> >> A sequence of code such as LOAD_CONST LOAD_FAST BINARY_ADD will, in >> CPython, push some constant onto the stack, push some local onto the >> stack, then pop both off the stack, add them and push the result