Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83454

Re: what is Jython?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail
From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: what is Jython?
Date Fri, 9 Jan 2015 16:06:46 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 25
Message-ID <m8ouam$brp$1@reader2.panix.com> (permalink)
References <509995943442469175.487823bclark-es.co.nz@free.teranews.com> <mailman.17505.1420779030.18130.python-list@python.org>
NNTP-Posting-Host 67-130-15-94.dia.static.qwest.net
X-Trace reader2.panix.com 1420819606 12153 67.130.15.94 (9 Jan 2015 16:06:46 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Fri, 9 Jan 2015 16:06:46 +0000 (UTC)
User-Agent slrn/1.0.1 (Linux)
Xref csiph.com comp.lang.python:83454

Show key headers only | View raw


On 2015-01-09, Chris Angelico <rosuav@gmail.com> wrote:

> Jython isn't a combination of Python and Java; it's Python,
> implemented in Java. Does that answer your question?

Just to clarify, Jython 

  1) is a Python compiler that compiles Python source code into JVM
     bytecode (class, jar, whatever) that runs on a standard Java
     runtime. Python programs compiled with Jython can call standard
     Java libraries and and can call or be called by code written in
     Java.

  2) is a Python compiler that is written in Java.

AFAK, these are in principal orthogonal.  Number 1) is the important
part and does not require that 2) be true.  The Jython compiler could
(in theory) be implemented in C, Fortran, or BASH, but there are some
practical advantages to using Java to write a compiler that generates
JVM bytecode.

-- 
Grant Edwards               grant.b.edwards        Yow! RELATIVES!!
                                  at               
                              gmail.com            

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

what is Jython? Brian <bclark@es.co.nz> - 2015-01-09 04:10 +0000
  Re: what is Jython? Chris Angelico <rosuav@gmail.com> - 2015-01-09 15:50 +1100
    Re: what is Jython? Grant Edwards <invalid@invalid.invalid> - 2015-01-09 16:06 +0000
      Re: what is Jython? Chris Angelico <rosuav@gmail.com> - 2015-01-10 03:15 +1100

csiph-web