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


Groups > comp.lang.python > #83455

Re: what is Jython?

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'compiler': 0.07; 'runs': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'bash,': 0.16; 'bytecode': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'java.': 0.16; 'runtime.': 0.16; 'files.': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'written': 0.21; '(in': 0.22; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'java': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'compiled': 0.26; 'header :In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'libraries': 0.31; 'subject:what': 0.31; 'languages': 0.32; 'implemented': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'does': 0.39; 'called': 0.40; 'advantages': 0.68; '2015': 0.84; 'compiles': 0.84; 'edwards': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=1AqsI8156aTxd9YZSrGnBSoksmTPg4vqRqEcX3WJ9MU=; b=J+7fHem9/BOTELUB9U5qfEELkTHSm6Dn9fTXc0Os00rlhwVc4JABTTQev0hd7ySSaF 9jnzZioyATDEcgE04pEJdypK7otmEH0BkuG6T+I+xcaMQruLLrOiqln8rpjLqlEdAaHW PHoEuShbcs4zJXVnvf2lRVqPA2Mk5JHou+piLLhb33VXBgRY28kuYLyKzk8BkOjXgqIS 3En7G7uX8pa6YkqvLNPhZUrUTCmHRD3HItIRffka1G4CF/i8XJUGu4qCez2lRaceNZa0 iNnierlzgzNmTZsvxrB0YveOevbn9e7dmj7mYwjDtTH3ZjPbH47xbXUW5toYHNqsfSgA ZsMQ==
MIME-Version 1.0
X-Received by 10.50.61.238 with SMTP id t14mr3265882igr.34.1420820125953; Fri, 09 Jan 2015 08:15:25 -0800 (PST)
In-Reply-To <m8ouam$brp$1@reader2.panix.com>
References <509995943442469175.487823bclark-es.co.nz@free.teranews.com> <mailman.17505.1420779030.18130.python-list@python.org> <m8ouam$brp$1@reader2.panix.com>
Date Sat, 10 Jan 2015 03:15:25 +1100
Subject Re: what is Jython?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17533.1420820134.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1420820134 news.xs4all.nl 2881 [2001:888:2000:d::a6]:33827
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:83455

Show key headers only | View raw


On Sat, Jan 10, 2015 at 3:06 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> 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.

Indeed. The point of Jython is that it compiles to Java byte-code,
putting it on par with languages like NetRexx as alternative ways to
create .class files.

ChrisA

Back to comp.lang.python | Previous | NextPrevious 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