Mirah对JRuby,Groovy和Scala提供什么?

前端之家收集整理的这篇文章主要介绍了Mirah对JRuby,Groovy和Scala提供什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_301_0@
Mirah language在JRuby,Groovy和Scala上提供了什么?

解决方法

根据 an interview with Mirah’s creator的观点,Mirah(这意味着爪哇语中的“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.

猜你在找的Ruby相关文章