Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-18 Thread David Cournapeau
Neal Becker wrote: David Cournapeau wrote: Carl Friedrich Bolz wrote: Neal Becker wrote: [...] Indeed. But there are tools to generate most of the painful code: Swig, boost::python, and others. With Swig, you can even subclass C++ classes and override virtual methods in python. I wish

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-18 Thread Amaury Forgeot d'Arc
David Cournapeau wrote: No. You can use py++ if you like to generate boost::python. This (py++) is fairly new, and I believe relatively few boost::python users follow this route. Most of us write boost::python wrappers by hand (it's usually pretty easy). I was talking in the context of

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-18 Thread David Cournapeau
Amaury Forgeot d'Arc wrote: wxPython has the same number of functions, and uses Swig to do the wrapping. swig parses C++ headers, and basically a significant part of C++. There is really no way to do any kind of wrapping of C++ without parsing it, or at least a significant portion of it.

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-17 Thread Antonio Cuni
Charles Oliver Nutter wrote: Wiring in support for calling Java libraries won't be particularly difficult, given the many reflective capabilities already present for Java. But I agree it needs to be there for most people to find a lot of use. Indeed, I think this is the easiest part to

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-17 Thread Charles Oliver Nutter
Antonio Cuni wrote: The JVM backend has been mostly written by me and Niko Matsakis. At the moment both of us work on it in our spare time, but if my phd proposal gets accepted I should be able to work on it much more continuously. That's excellent. Having just completed a dynlang compiler

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread Carl Friedrich Bolz
Neal Becker wrote: [...] Indeed. But there are tools to generate most of the painful code: Swig, boost::python, and others. With Swig, you can even subclass C++ classes and override virtual methods in python. I wish pypy could do the same. Both methods involve parsing C++, which is not fun.

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread Neal Becker
[...] Indeed. But there are tools to generate most of the painful code: Swig, boost::python, and others. With Swig, you can even subclass C++ classes and override virtual methods in python. I wish pypy could do the same. Both methods involve parsing C++, which is not fun. For example,

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread Jean-Paul Calderone
On Wed, 14 Nov 2007 17:16:48 +0100, Carl Friedrich Bolz [EMAIL PROTECTED] wrote: Hi all, I thought I would start a new thread for discussing what PyPy needs to become production ready (whatever that is) and succeed as a Python implementation. This is something were outside opinions are very

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread Neal Becker
David Cournapeau wrote: Carl Friedrich Bolz wrote: Neal Becker wrote: [...] Indeed. But there are tools to generate most of the painful code: Swig, boost::python, and others. With Swig, you can even subclass C++ classes and override virtual methods in python. I wish pypy could do the

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread David Cournapeau
Carl Friedrich Bolz wrote: Neal Becker wrote: [...] Indeed. But there are tools to generate most of the painful code: Swig, boost::python, and others. With Swig, you can even subclass C++ classes and override virtual methods in python. I wish pypy could do the same. Both methods involve

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread Alexander Schremmer
Hi, Maciej Fijalkowski wrote: But besides, I fully agree to the BIG FAT WARNING. This code is mostly there for tests. Even strings should not cross this border Hmm, it seems quite stable, though (besides a few bug in the exception handling). Note that passing and receiving strings works fine

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread Tristan Seligmann
* Neal Becker [EMAIL PROTECTED] [2007-11-16 09:41:12 -0500]: No. You can use py++ if you like to generate boost::python. This (py++) is fairly new, and I believe relatively few boost::python users follow this route. Most of us write boost::python wrappers by hand (it's usually pretty

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-16 Thread Charles Oliver Nutter
Antonio Cuni wrote: If you meant a Python to JVM bytecode compiler, that's what I was talking about too :-). I'm not sure that having it will cover 90% of people interested in pypy-jvm; to fully exploit python on jvm we need to allow access to Java classes from Python (and vice-versa), but

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-15 Thread Amaury Forgeot d'Arc
David Cournapeau wrote: Martijn Faassen wrote: Yes, this one would be a major challenge. If you can crack it and the PyPy interpreter offers another benefit (an obvious one is speed), you will be in awesome position. If not, the other benefits will have to weigh more strongly. This is

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-15 Thread Martijn Faassen
David Cournapeau wrote: Martijn Faassen wrote: Yes, this one would be a major challenge. If you can crack it and the PyPy interpreter offers another benefit (an obvious one is speed), you will be in awesome position. If not, the other benefits will have to weigh more strongly. This is

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-15 Thread Neal Becker
David Cournapeau wrote: Martijn Faassen wrote: Yes, this one would be a major challenge. If you can crack it and the PyPy interpreter offers another benefit (an obvious one is speed), you will be in awesome position. If not, the other benefits will have to weigh more strongly. This is

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-15 Thread Laura Creighton
In a message of Wed, 14 Nov 2007 17:40:54 GMT, Douglas McNeil writes: /lurk Arbitrary code is less interesting to me than JIT-powered fast numerical code. Moreover, we numerics types have much lower standards of production ready than the general public, and are willing to turn on options with

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-15 Thread David Cournapeau
Amaury Forgeot d'Arc wrote: David Cournapeau wrote: Martijn Faassen wrote: Yes, this one would be a major challenge. If you can crack it and the PyPy interpreter offers another benefit (an obvious one is speed), you will be in awesome position. If not, the other benefits will have to weigh

[pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Carl Friedrich Bolz
Hi all, I thought I would start a new thread for discussing what PyPy needs to become production ready (whatever that is) and succeed as a Python implementation. This is something were outside opinions are very welcome (of course there is no guarantee we can implement all of your wishes :-) ).

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Antonio Cuni
Carl Friedrich Bolz wrote: - for PyPy-JVM: bindings to allow the interaction with arbitrary Java libraries, threading support Moreover, I would add to this list that the possibility to compile python to jvm bytecode instead of python bytecode; maybe a pypy-jvm would be usable even

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Douglas McNeil
cfb wrote: I thought I would start a new thread for discussing what PyPy needs to become production ready (whatever that is) and succeed as a Python implementation. [...] - Speed. The JIT is still not in a state where it really speeds up arbitrary Python code. I expect this to change

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Maciej Fijalkowski
Just a small note. We've got nowadays pieces of code that can help you handle safety-for-speed even in compiled rpython code, --sandbox uses those. (Like check for NULL pointers, enable assertions, etc.) But besides, I fully agree to the BIG FAT WARNING. This code is mostly there for tests. Even

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Charles Oliver Nutter
Antonio Cuni wrote: Carl Friedrich Bolz wrote: - for PyPy-JVM: bindings to allow the interaction with arbitrary Java libraries, threading support Moreover, I would add to this list that the possibility to compile python to jvm bytecode instead of python bytecode; maybe a pypy-jvm

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Antonio Cuni
Martijn Faassen wrote: - for PyPy-JVM: bindings to allow the interaction with arbitrary Java libraries, threading support Does this already exist for PyPy-CLR? yes, but it's more or less only a proof of concept. You can use .NET classes from Python but you can't, e.g., inherit from a

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Antonio Cuni
Charles Oliver Nutter wrote: Moreover, I would add to this list that the possibility to compile python to jvm bytecode instead of python bytecode; maybe a pypy-jvm would be usable even without it, but e.g. developing applets requires it. Hopefully, I'll be able to work on this (an its

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Ondrej Certik
From previous discussions, I suspect I'm not the only lurker-fan who would be willing to commit time to working on numericentric graph optimizations when that becomes a worthwhile investment. There's no reason that the mostly-fortran bits of python code shouldn't run almost as fast as fortran

Re: [pypy-dev] missing things for making PyPy production ready (for some value of production)

2007-11-14 Thread Martijn Faassen
Hey Carl, Carl Friedrich Bolz wrote: I thought I would start a new thread for discussing what PyPy needs to become production ready (whatever that is) and succeed as a Python implementation. This is something were outside opinions are very welcome (of course there is no guarantee we can