开发者

Which JVM languages are interpreted rather than compiled to bytecode?

开发者 https://www.devze.com 2023-01-15 10:19 出处:网络
The wikipedia article on JVM languag开发者_如何学JAVAes states: Some of these languages are interpreted by a Java program, and

The wikipedia article on JVM languag开发者_如何学JAVAes states:

Some of these languages are interpreted by a Java program, and some are compiled to Java bytecode...

Which well-known, general purpose JVM languages are interpreted by a Java program?


Mozilla Rhino (the Java javascript engine) is interpreted.

JRuby, Jython, and Scala are examples that are mostly compiled to bytecode.


Reposted as answer:

I don't think that statement is correct. A language with a Java interpreter is not a "JVM language", it's just an interpreted language. IMO a JVM language (which is in fact a misnomer, they'd be languages with a JVM implementation) is one that gets compiled to JVM bytecode


Maybe the article is referring to languages like JRuby or Jython...


Well Groovy for one is not compiled.


Another JVM language SnapScript is interpreted so that it can be run on Dalvik and ART (Android) in addition to the standard JRE.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号