加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 19:54:39 所属栏目:百科 来源:网络整理
导读:Mirah language在JRuby,Groovy和Scala上提供了什么? 解决方法 根据 an interview with Mirah’s creator的观点,Mirah(这意味着爪哇语中的“ruby”)就是创建Ruby的高性能变体.足够的类似Ruby的语法可以使其更加舒适,但仍然足够接近Java和JVM语义,以便可以在
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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读