如果已经有了 Java 环境,为什么要考虑使用 Ruby 而不是 JRuby?
我知道它们之间存在一些差异,但是假设您已经拥有一个用于开发、测试和生产的完全运行的 Java 环境,您会考虑使用 Ruby MRI 而不是 JRuby 吗?最重要的是,我还认为您可以内联 Java、使用 Java 数据类型,最重要的是,它几乎总是优于 Ruby。你怎么认为?与 JRuby 相比,是否有任何理由值得人们认真考虑 Ruby?
I know there are some differences between both of them, but suppossing that you already have a fully-operating Java environment for developing, testing and production, will you ever consider using Ruby MRI instead of JRuby? On top of that, I would also argue that you can inline Java, use Java datatypes and, most importantly, it almost always outperform Ruby. What do you think? Is there any reason why one should consider Ruby seriously when compared to JRuby?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

这一切都与选择有关。如果 JRuby 对您更有意义,请使用它。使用 MRI 意味着您正在按照 Matz 的预期方式使用 Ruby。
这也应该回答 Rubinius、Maglev 和所有其他实现的问题。每个都有不同的目的,并试图涵盖 MRI 的所有方面。为了实现这一目标,他们(全部)使用 RubySpec 来针对 MRI 测试实现。
It's all about choice. If JRuby makes more sense to you use it. Using MRI means you're using Ruby the way Matz has intended it.
This should also answer the question for Rubinius, Maglev and all other implementations. Each serves a different purpose and tries to cover all aspects of MRI. To achieve that they (all) use RubySpec to test the implementation against MRI.