Ruby MRI explained

Ruby
Developer:Yukihiro Matsumoto (among others)
Discontinued:yes
Latest Release Version:1.8.7
Latest Release Date:31 May 2008[1]
Released:04.08.2003[2]
Operating System:Cross-platform
Replaced By:YARV
Programming Language:C
Genre:Ruby programming language interpreter
License:Ruby License
Simplified BSD License
GNU General Public License (prior to 1.9.3)

Matz's Ruby Interpreter or Ruby MRI (also called CRuby) is an implementation of the Ruby programming language named after Ruby creator Yukihiro Matsumoto ("Matz"). Until the specification of the Ruby language in 2012,[3] the MRI implementation was considered the de facto reference, especially since an independent attempt to create the specification (RubySpec) had failed. Starting with Ruby 1.9, and continuing with Ruby 2.x and above, the official Ruby interpreter has been YARV ("Yet Another Ruby VM").[4]

Ruby 1.8 is that last version that uses MRI

History

Yukihiro Matsumoto ("Matz") started working on Ruby on February 24, 1993, and released it to the public in 1995. "Ruby" was named as a gemstone because of a joke within Matsumoto's circle of friends alluding to the name of the Perl programming language.[5]

The 1.8 branch has been maintained until June 2013,[6] and 1.8.7 releases have been released since April 2008.[7] [8] This version provides bug fixes, but also many Ruby feature enhancements.

The RubySpec project has independently created a large test suite that captures 1.8.6/1.8.7/1.9 behavior as a reference conformance tool. Ruby MRI 1.9.2 passed over 99% of RubySpec.,[9] MRI Ruby 2.2 crashed on one of the tests. As a result of the limited uptake by the MRI developers, RubySpec project has been discontinued as of end of 2014.[10]

Licensing terms

Prior to release 1.9.3, the Ruby interpreter and libraries were distributed as dual-licensed free and open source software, under the GNU General Public License or the Ruby License.[11] In release 1.9.3, Ruby's License has been changed from a dual license with GPLv2 to a dual license with the 2-clause BSD license.[12]

Operating systems

Ruby MRI is available for the following operating systems (supported Ruby versions can be different):

This list may not be exhaustive.

PowerPC64 performance: Since version 2.2.1,[13] Ruby MRI performance on PowerPC64 was improved.[14] [15] [16]

Limitations

Commonly noted limitations include:

Backward compatibility: Version 1.9 and 1.8 have slight semantic differences.[17] The release of Ruby 2.0 sought to avoid such a conflict between different versions.[18]

Threaded programs cannot use more than a single CPU core due to the Global interpreter lock.

See also

Notes and References

  1. Web site: Ruby 1.8.7 Released. 24 March 2023.
  2. Web site: Ruby-1.8.0 released!. 12 January 2018.
  3. Web site: ISO - ISO/IEC 30170:2012 - Information technology — Programming languages — Ruby . iso.org. 24 March 2023.
  4. Web site: Subject: [ANN] Ruby 1.9.0 is released ]. https://web.archive.org/web/20071230011616/http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/284720 . 26 Dec 2007 . Yukihiro . Matsumoto . 2007-12-30.
  5. Web site: An Interview with the Creator of Ruby . Bruce Stewart . 2001-11-29 . linuxdevcenter.com . O'Reilly . 22 February 2014.
  6. Web site: We retire Ruby 1.8.7 . shyouhei . 30 Jun 2013 . ruby-lang.org . 22 February 2014.
  7. Web site: Ruby Core: Ruby 1.8.7-preview4 has been released. 2008-05-26. The new version of Ruby includes many bug fixes, lots of feature enhancements and some performance improvements since 1.8.6 while maintaining stability and backward compatibility with the previous release to a high degree, although there are ongoing efforts that need to be done toward adopting RubySpec.. Musha. Akinori. 2008-05-30.
  8. Web site: 1.8.7 NEWS. 2008-05-30.
  9. Web site: Ruby 1.9.2 is released . Yugui . 18 Aug 2010 . ruby-lang.org . 22 February 2014.
  10. Web site: Matz's Ruby Developers Don't Use RubySpec and It's Hurting Ruby. . Rubinius blog. 31 December 2014. 16 November 2015. Brian Shirai.
  11. Web site: Ruby License . ruby-lang.org . 22 February 2014.
  12. Web site: Ruby 1.9.3 Release News . ruby-lang.org . 22 February 2014.
  13. Web site: Ruby 2.2.1 Released. 12 July 2016. Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi. 2015.
  14. Web site: v2.2.1 ChangeLog. 12 July 2016. Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi. 2015.
  15. Web site: Specifying non volatile registers for increase performance in ppc64. 12 July 2016. Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi. 2014.
  16. Web site: Specifying MACRO for increase performance in ppc64. 12 July 2016. Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi. 2014.
  17. Web site: Ruby 1.9 released . Rick DeNatale . December 26, 2007 . Infoq.com . 22 February 2014.
  18. Web site: Ruby 2.0.0-p0 is released . Yusuke Endoh . 24 February 2013 . ruby-lang.org . 22 February 2014.