哪些 JVM 语言被解释而不是编译为字节码?
The wikipedia article on JVM languages 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Mozilla Rhino(Java javascript 引擎)是解释型的。
JRuby、Jython 和 Scala 是大多数编译为字节码的示例。
Mozilla Rhino (the Java javascript engine) is interpreted.
JRuby, Jython, and Scala are examples that are mostly compiled to bytecode.
重新发布为答案:
我认为这种说法不正确。带有Java解释器的语言不是“JVM语言”,它只是一种解释性语言。在我看来,JVM 语言(实际上是用词不当,它们是具有 JVM 实现的语言)是一种被编译为 JVM 字节码的语言
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
也许这篇文章指的是诸如 JRuby 或 Jython...
Maybe the article is referring to languages like JRuby or Jython...
好吧,Groovy for one 尚未编译。
Well Groovy for one is not compiled.
另一种 JVM 语言 SnapScript 被解释为除了可以在 Dalvik 和 ART (Android) 上运行标准 JRE。
Another JVM language SnapScript is interpreted so that it can be run on Dalvik and ART (Android) in addition to the standard JRE.