Python compilers?

Andrew MacIntyre andymac at bullseye.apana.org.au
Sat May 22 19:08:58 EDT 2004


On Sat, 22 May 2004, Ville Vainio wrote:

> >>>>> "Andrew" == Andrew MacIntyre <andymac at bullseye.apana.org.au> writes:
>
>     >> There is also GCJ as part of the GCC, which can compile both .class
>     >> and .java files. Its libraries aren't complete yet, but I'm sure it's
>     >> only a matter of time.
>
>     Andrew> Hmmm...  anyone tried GCJ on Jython?
>
> Native code will not help much if the created native code is of type:
>
> arg=lookup(object1, "fooarg")
> f = lookup(object2,"foomethod")
> call(f,arg)
>
> For the performance that is expected of native code we need direct
> dispatching with the addresses of the functions known at the compile
> time, or via direct indexing of linear virtual tables.
>
> (I'm speaking of static compilation here - what I said may not apply
> to psyco)

I was asking more out of interest in the potential for creating
distributable binaries (which is usually one of the desires of people
looking for compilers), than performance specifically.  Of course it
would be nice if a GCJ compiled Jython app could at least match the
performance of CPython for the same app.

--
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac at bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac at pcug.org.au             (alt) |        Belconnen  ACT  2616
Web:    http://www.andymac.org/               |        Australia




More information about the Python-list mailing list