Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: questions re Javascript Date: Mon, 5 Oct 2015 21:00:44 -0400 Organization: Aioe.org NNTP Server Lines: 77 Message-ID: References: <83722e36-4afe-4077-b936-229450613698@googlegroups.com> <3552aa8f-51c1-46f1-9029-b28208c76ee8@googlegroups.com> NNTP-Posting-Host: 1lM8B9/qdtKBc/uIRK2Gjw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:32804 On 10/3/2015 10:46 AM, Jerry Stuckle wrote: > On 10/2/2015 11:02 PM, Arne Vajhøj wrote: >> On 10/2/2015 4:24 PM, Jerry Stuckle wrote: >>> On 10/2/2015 4:02 PM, Lew wrote: >>>> On Thursday, September 24, 2015 at 4:40:21 PM UTC-7, Jerry Stuckle >>>> wrote: >>>>>> So bytecode is interpreted. Bytecode is not Java, in case you >>>>>> hadn't noticed. >>>>> >>>>> Yes, in case you haven't noticed - Java Bytecode IS Java - as >>>>> opposed to >>>>> bytecode in other languages. >>>> >>>> Bytecode is not Java. The specs are different. The rules are >>>> different. languages other than >>>> Java compile (!) into bytecode. >>>> >>> >>> And how are the rules and specs different? And what do other languages >>> have to do with it? >> >> JVM specs allow constructs in its byte code that are not allowed in >> the Java language. >> >> And such constructs are used in other languages that do compile to >> byte code. > > And what other languages interpreters can execute Java bytecode? Non that I am aware of. And I don't understand why you ask as nobody have claimed that. > Just because the bytecode is not as strict as the language means nothing. It means that Java source code and JVM byte code are two different things with different rules. >>>> So Java bytecode is bytecode in other languages (Python, Scala, >>>> JavaScript, ...). >>> >>> OK, if bytecode is bytecode, then I can execute Java bytecode with a >>> Python interpreter, and vice versa. >>> >>> I don't think so! >> >> A Python interpreter process Python code not byte code. >> >> But Jython (Java Python) can compile Python to byte code. > > I didn't ask about Java Python. Jython is what is relevant when discussing Python and Java. > I asked about pure Python. Python is Python. Python runtime env exists in multiple flavors CPython (traditional interpreter and native library), Jython (for JVM), IronPython (for .NET CLR). > But you didn't respond to my comment. From what you're saying, a Python > interpreter can then execute Java bytecode, right? I wrote: #A Python interpreter process Python code not byte code. And you read it as: #a Python interpreter can then execute Java bytecode Hmm. Do you know what the English word "not" means???? Arne