有没有用Java实现过的语言?

发布于 2024-08-04 10:14:02 字数 45 浏览 1 评论 0原文

您知道用 Java/J2ME 编写的运行时能够读取和执行脚本/二进制文件吗?

Do you know of a runtime written in Java/J2ME, that is capable of reading and executing a script/binary file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

花开雨落又逢春i 2024-08-11 10:14:02

维基百科有一个完整列表。但是,您听起来可能对 JythonJRuby

Wikipedia has a complete list. However, you sound like you're probably interested in Jython and JRuby.

拒绝两难 2024-08-11 10:14:02

我只是编写了这样一种语言,设计得足够小,适合 J2ME,并且不使用反射/代码生成/等...

http ://www.hecl.org

它是在自由许可证下开源的,因此欢迎您使用它、研究它、将它包含在您自己的程序中,或者对其进行修改以使其按照您想要的方式运行。

对于“常规”Java,还有其他语言可以做得更多、更快、更完整。

I wrote just such a language designed to be small enough for J2ME, and to not use reflection/code generation/etc...

http://www.hecl.org

It's open source under a liberal license, so you're welcome to take it, study it, include it in your own programs, or hack it to make it behave like you want.

For 'regular' Java, there are other languages that do more and are faster and more complete.

摇划花蜜的午后 2024-08-11 10:14:02

我知道有一个用 Java 编写的 x86 模拟器,JPC

I know of an x86 emulator written in Java, JPC

早乙女 2024-08-11 10:14:02

许多 JVM 语言 - 例如 Clojure。目前有数百种 JVM 语言,其中大部分都是用 Java 实现的——Scala、Rhino 等。

Many JVM Languages - Clojure, for example. There are pretty much hundreds of JVM languages floating around, most of which were implemented in Java - Scala, Rhino, etc.

洋洋洒洒 2024-08-11 10:14:02

就独特语言而言,主要是 Clojure 和 Scala。此外,还有许多主要语言到 JVM 平台的移植,其中大部分是高级语言。其中包括 Ruby -> JRuby、Python -> Jython 和 JavaScript ->犀牛。更完整的列表位于此处

In terms of unique languages, the major ones are Clojure and Scala. Additionally, there are ports of many major languages to the JVM platform, mostly high-level languages. These include Ruby -> JRuby, Python -> Jython, and JavaScript -> Rhino. A more complete list is here.

冬天旳寂寞 2024-08-11 10:14:02

这是一个令人印象深刻的 Java 虚拟机编程语言列表:

Java 虚拟机编程语言JVM

This is an impressive list of programming languages for the Java virtual machine :

Programming languages for the Java Virtual Machine JVM

停滞 2024-08-11 10:14:02

问题是 j2me 在反射的使用方面过于有限,无法实现此目的,因此您需要调查您的具体目标。

一般来说java方面有很多,比如JRuby、Beanshell、Jython等。

The problem is that j2me can be too limited in its use of reflection to enable this, so you need to investigate your specific target.

In terms of java in general, there are many, such as JRuby, Beanshell, Jython, etc.

扬花落满肩 2024-08-11 10:14:02

我刚刚听了 软件工程广播播客,一位 Sun 开发人员在其中谈论了 Maxine,它是一个主要用 Java 本身实现的 JVM。这是一次非常有趣的采访和技术。

因此,有一天 Java 本身(即标准 JVM)将用 Java 实现,就像 C 编译器用 C 编写一样(经过一些引导)是可行的。

I just listened to a Software Engineering Radio podcast where a Sun developer talked about Maxine which is a JVM that is mostly implemented in Java itself. It was a very interesting interview and technology.

So it's feasible that someday Java itself (meaning the standard JVM) will be implemented in Java much like C compilers are written in C (after a bit of bootstrapping).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文