Python to native compilation via java?

Nils O. Selåsdal noselasd at frisurf.no
Wed Jun 20 02:59:04 EDT 2001


"VanL" <van at lindbergs.org> wrote in message
news:3B2E65DC.5060209 at lindbergs.org...
> <mailto:jython-users at lists.sourceforge.net>Hello,
>
> I was reading about the new gcc 3.0 release, and something that
caught
> my eye:
>
> """
> The GNU Compiler for the Java Programming Language
> What is GCJ?
>
> GCJ is a portable, optimizing, ahead-of-time compiler for the Java
> Programming Language. It can compile:
>
>     * Java source code directly to native machine code,
>     * Java source code to Java bytecode (class files),
>     * and Java bytecode to native machine code.
>
> Compiled applications are linked with the GCJ runtime, libgcj, which
> provides the core class libraries, a garbage collector, and a
bytecode
> interpreter. libgcj can dynamically load and interpret class files,
> resulting in mixed compiled/interpreted applications.
> """
>
> Would code get any significant speedup by going jython -> .class
files
> -> native?
Yes. Though there are issuses.
gcj is buggy, and doesnt implement all the core classes for java1.1
(and by far java2).
jython is uses the python language alright, but does only provide a
small subset of the
core python libraries (you can ofcourse use any java library in jython)






More information about the Python-list mailing list