scala - Mirah 比 JRuby、Groovy 和 Scala 提供了什么?

标签 scala groovy jruby language-comparisons mirah

什么Mirah language提供超过 JRuby、Groovy 和 Scala?

最佳答案

根据 an interview with Mirah's creator Mirah(在 java 语中意为“ruby”)的目的是创建一个高性能的 Ruby 变体。足够的类似 Ruby 的语法使其易于使用,但仍然足够接近 Java 和 JVM 语义,因此它可以运行而无需在 JVM 之上的大型运行时层的开销。
选择报价:

Much of the benefit of Mirah over similar languages comes down to being so lightweight. In Groovy, Scala, JRuby, Clojure, or Jython, the minute you write "Hello, world", you've shackled yourself to a runtime library. In Mirah, "Hello, world" is just as terse as in JRuby, but has the added benefit of not foisting any dependencies on you; source file goes in, class file comes out, and that's it. I believe the JVM needs a new dependency-free language, and Mirah is my attempt to deliver one.

While JRuby's performance rivals or exceeds other Ruby interpreters, the fastest JRuby code still lags pure Java performance by an order of magnitude. While you can expect the performance of JRuby to improve with the 1.6 release, Mirah is an attempt to break through the performance ceiling and provide an option for programmers looking for execution speeds on par with Java code.

关于scala - Mirah 比 JRuby、Groovy 和 Scala 提供了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4252063/

相关文章:

java - 从 java 类在 grails 中发送电子邮件

java - 在 ScriptEngine 的环境/上下文中调用静态 Java 方法

tomcat - Jruby On Rails 应用程序在使用 Warble 进行 WAR 时在 Tomcat 上给出 LocalJumpError

ubuntu - JRuby + SWT + 系统托盘 : What am I doing wrong?

scala - 有效地序列化案例类

scala - 从函数式迁移到 OO 的问题

ajax - 继续对表数据进行Ajax调用,直到找不到文本为止

date - Grails:在新的Date()中迭代一天

angularjs - 如何配置 rhino 为 angularjs Controller 运行 jasmine 测试

scala - 如何为一系列任务命名?