e01.org

Ruby (programming language)

Ruby is a general-purpose programming language designed with an emphasis on programming productivity and simplicity. In Ruby, everything is an object, including primitive data types. Development of the language began in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan. Ruby is interpreted, high-level, and dynamically typed; its interpreter uses garbage collection and just-in-time compilation. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. According to the creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, BASIC, and Lisp.

Ruby is a general-purpose programming language designed with an emphasis on programming productivity and simplicity. In Ruby, everything is an object, including primitive data types. Development of the language began in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan. Ruby is interpreted, high-level, and dynamically typed; its interpreter uses garbage collection and just-in-time compilation. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. According to the creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, BASIC, and Lisp. Hash#dig and Array#dig to easily extract deeply nested values (e.g. given profile = { social: { wikipedia: { name: 'Foo Baz' } } } , the value Foo Baz can now be retrieved by profile.dig(:social, :wikipedia, :name) ). .grep_v(regexp) which will match all negative examples of a given regular expression in addition to other new features. Ruby 2.4.0 includes performance improvements to hash table, Array#max, Array#min, and instance variable access. Other notable changes include: Binding#irb: Start a REPL session similar to binding.pry Unify Fixnum and Bignum into Integer class String supports Unicode case mappings, not just ASCII A new method, Regexp#match?, which is a faster Boolean version of Regexp#match Thread deadlock detection now shows threads with their backtrace and dependency A few notable changes in Ruby 2.5.0 include rescue and ensure statements automatically use a surrounding do-end block (less need for extra begin-end blocks), method-chaining with yield_self, support for branch coverage and method coverage measurement, and easier Hash transformations with Hash#slice and Hash#transform_keys On top of that come a lot of performance improvements like faster block passing (3 times faster), faster Mutexes, faster ERB templates and improvements on some concatenation methods. A few notable changes in Ruby 2.6.0 include an experimental just-in-time compiler (JIT), and RubyVM::AbstractSyntaxTree (experimental). A few notable changes in Ruby 2.7.0 include pattern Matching (experimental), REPL improvements, a compaction GC, and separation of positional and keyword arguments. result = false || true result is true result = false or true result is false but line evaluated to true ==External links== Ruby documentation

References

  1. ^ "More archeolinguistics: unearthing proto-Ruby" . Archived from the original on 6 November 2015 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  2. ^ a b "We retire Ruby 1.8.7" . Archived from the original on 6 June 2015 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  3. ^ Endoh, Yusuke. (2013-02-24) Ruby 2.0.0-p0 is released Archived 2013-02-27 at the Wayback Machine . Ruby-lang.org. Retrieved on 2013-07-17. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  4. ^ Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi (2015). "v2.2.1 ChangeLog" . Archived from the original on 26 February 2017 . Retrieved 12 July 2016 . {{ cite web }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  5. ^ Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi (2015). "Ruby 2.2.1 Released" . Archived from the original on 16 May 2016 . Retrieved 12 July 2016 . {{ cite web }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  6. ^ Scheffler, Jonan (10 November 2016). "Ruby 3x3: Matz, Koichi, and Tenderlove on the future of Ruby Performance" . Ruby . Archived from the original on 10 May 2019 . Retrieved 18 May 2019 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  7. ^ "Ruby 3.1.0 Released" . Archived from the original on 2021-12-26 . Retrieved 2021-12-26 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1640473200.0
  8. ^ "NEWS - Documentation for Ruby 3.4" . Retrieved 2025-04-12 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1744412400.0
  9. ^ "Ruby 4.0.0 Released" . 2025-12-25 . Retrieved 2026-06-02 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1780354800.0
  10. ^ Jeffery Morhous (2026-01-14). "Everything you need to know about Ruby 4.0" . Retrieved 2026-06-02 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1780354800.0
  11. ^ "UAX #29: Unicode Text Segmentation" . www.unicode.org . Retrieved 2026-08-10 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1786316400.0
  12. ^ "class String - Documentation for Ruby 4.1" . docs.ruby-lang.org . Retrieved 2026-08-10 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1786316400.0
  13. ^ "Stats RubyGems.org your community gem host" . rubygems.org . Archived from the original on 10 December 2021 . Retrieved 10 December 2021 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  14. ^ "Symbol GC in Ruby 2.2 — SitePoint" . www.sitepoint.com . 2015-01-19 . Retrieved 2026-08-10 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1786316400.0
  15. ^ "13 Ways of Looking at a Ruby Symbol | Random Hacks" . www.randomhacks.net . Jan 20, 2007 . Retrieved 2026-08-10 . A Ruby symbol is: 11. …a memory leak Wikipedia revision 1372670122, retrieved 2026-11-21 · 1786316400.0
  16. ^ athityakumar. "Incompatible character encoding error · Issue #377 · athityakumar/colorls" . GitHub . Retrieved 2026-08-31 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1788130800.0
  17. ^ Ronacher, Armin (2008-07-01). "Whitespace Sensitivity" . Armin Ronacher's Thoughts and Writings . Retrieved 2026-08-10 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1786316400.0
  18. ^ Cooper, Peter (2010-08-03). " "and" vs && and "or" vs || in Ruby" . Ruby Inside . Retrieved 2026-08-10 . Avdi Grimm presents a concise guide to a matter that confuses the majority of Ruby developers from time to time. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1786316400.0
  19. ^ Grimm, Avdi (2010-08-02). "Using "and" and "or" in Ruby" . Retrieved 2026-08-10 . If you use Ruby long enough, you will discover the and and or operators. These appear at first glance to be synonyms for && and ||. You will then be tempted to use these English oprators in place of && and ||, for the sake of improved readability. Assuming you yield to that temptation, you will eventually find yourself rudely surprised that and and or don't behave quite like their symbolic kin... Wikipedia revision 1372670122, retrieved 2026-11-21 · 1786316400.0
  20. ^ Shugo Maeda (17 December 2002). "Official Ruby FAQ" . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  21. ^ "Ruby 2.4.0 Released" . www.ruby-lang.org . Archived from the original on 2017-02-17 . Retrieved 2016-12-30 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1483052400.0
  22. ^ Burks, Tim. "About Nu™" . Programming Nu™ . Neon Design Technology, Inc. Archived from the original on 2018-12-25 . Retrieved 2011-07-21 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1311202800.0
  23. ^ Web Development: Ruby on Rails Archived 2009-02-24 at the Wayback Machine . Devarticles.com (2007-03-22). Retrieved on 2013-07-17. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  24. ^ "ISO/IEC 30170:2012" . Archived from the original on 2017-03-12 . Retrieved 2017-03-10 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1489100400.0
  25. ^ "IPA 独立行政法人 情報処理推進機構:プレス発表 プログラム言語Ruby、国際規格として承認" . Archived from the original on 1 February 2015 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  26. ^ "IPA 独立行政法人 情報処理推進機構:プレス発表 プログラム言語RubyのJIS規格(JIS X 3017)制定について" . Archived from the original on 2 February 2015 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  27. ^ "Julia 1.0 Documentation: Introduction" . Archived from the original on 16 August 2018 . Retrieved 6 October 2018 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  28. ^ "Methods" . Official Ruby FAQ . Archived from the original on 2022-06-28 . Retrieved 2021-06-20 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1624143600.0
  29. ^ Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi (2014). "Specifying non volatile registers for increase performance in ppc64" . Archived from the original on 17 September 2016 . Retrieved 12 July 2016 . {{ cite web }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  30. ^ Gustavo Frederico Temple Pedrosa, Vitor de Lima, Leonardo Bianconi (2014). "Specifying MACRO for increase performance in ppc64" . Archived from the original on 17 September 2016 . Retrieved 12 July 2016 . {{ cite web }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  31. ^ Peter Cooper (2010-05-18). "The Why, What, and How of Rubinius 1.0's Release" . Archived from the original on 2010-05-24 . Retrieved 2010-05-23 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1274569200.0
  32. ^ "Ruby 1.9.3 p0 is released" . ruby-lang.org. October 31, 2011. Archived from the original on January 14, 2013 . Retrieved February 20, 2013 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  33. ^ "Ruby/NEWS at v.2_3_0 - ruby/ruby" . GitHub . Archived from the original on 1 March 2017 . Retrieved 25 December 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  34. ^ a b c d "Ruby 3.0.0 Released" . Ruby Programming Language . 2020-12-25. Archived from the original on 2020-12-25 . Retrieved 2020-12-25 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1608850800.0
  35. ^ "Ruby 3.1.0 Released" . ruby-lang.org . Archived from the original on 25 December 2021 . Retrieved 25 Dec 2021 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  36. ^ "Ruby 3.2.0 Released" . Archived from the original on 2022-12-25 . Retrieved 2022-12-25 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1671922800.0
  37. ^ "Ruby 3.3.0 Released" . Archived from the original on 2023-12-25 . Retrieved 2023-12-25 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1703458800.0
  38. ^ "Ruby 3.4.0 Released" . 2024-12-25 . Retrieved 2025-04-12 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1744412400.0
  39. ^ Maya Stodte (February 2000). "IBM developerWorks – Ruby: a new language" . Archived from the original on August 18, 2000 . Retrieved 3 March 2014 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  40. ^ "About Ruby" . Archived from the original on 9 October 2014 . Retrieved 15 February 2020 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  41. ^ a b c Bill Venners. "The Philosophy of Ruby" . Archived from the original on 5 July 2019 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  42. ^ a b c d e f Bini, Ola (2007). Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java . Berkeley: APress. p. 3 . ISBN 978-1-59059-881-8 . It draws primarily on features from Perl, Smalltalk, Python, Lisp, Dylan, and CLU. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  43. ^ "Ruby – Add class methods at runtime" . Archived from the original on 2007-09-22 . Retrieved 2007-11-01 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1193871600.0
  44. ^ a b "Reasons behind Ruby" . Ruby Conference 2008 . Confreaks (YouTube). 15 April 2013. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  45. ^ "The Ruby Language FAQ: How Does Ruby Stack Up Against...?" . Archived from the original on 8 May 2015 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  46. ^ "1.3 Why the name 'Ruby'?" . Official Ruby FAQ . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  47. ^ "Language Workbenches: The Killer-App for Domain Specific Languages?" . martinfowler.com . Archived from the original on 2 May 2021 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  48. ^ "Ruby 2.3.0 changes and features" . Running with Ruby . dev.mensfeld.pl. 14 November 2015. Archived from the original on 5 January 2016 . Retrieved 27 December 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  49. ^ Google Tech Talks – Ruby 1.9 on YouTube Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  50. ^ "The Ruby Programming Language" . Archived from the original on 18 January 2020 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  51. ^ Yukihiro Matsumoto (August 2002). "lang-ruby-general: Re: question about Ruby initial development" . Archived from the original on 3 March 2014 . Retrieved 3 March 2014 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  52. ^ Lattner, Chris (2014-06-03). "Chris Lattner's Homepage" . Chris Lattner. Archived from the original on 2018-12-25 . Retrieved 2014-06-03 . The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1401750000.0
  53. ^ "v1_9_3_0/NEWS" . Ruby Subversion source repository . ruby-lang.org. September 17, 2011. Archived from the original on November 6, 2015 . Retrieved February 20, 2013 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  54. ^ "An Interview with the Creator of Ruby" . Archived from the original on 2008-02-08 . Retrieved 2007-07-11 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1184108400.0
  55. ^ Matsumoto, Yukihiro (13 February 2006). "Re: Ruby's lisp features" . Archived from the original on 2018-10-27 . Retrieved 15 February 2020 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  56. ^ a b c Cooper, Peter (2009). Beginning Ruby: From Novice to Professional . Beginning from Novice to Professional (2nd ed.). Berkeley: APress. p. 101. ISBN 978-1-4302-2363-4 . To a lesser extent, Python, LISP, Eiffel, Ada, and C++ have also influenced Ruby. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  57. ^ "ruby/NEWS at v2_2_0 · ruby/ruby" . GitHub . Archived from the original on 1 January 2015 . Retrieved 2 May 2015 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  58. ^ "[ruby-talk:02460] Re: Precedence question" . Archived from the original on 2004-07-22 . Retrieved 2008-12-06 . statement [...] can not be part of expression unless grouped within parentheses. Wikipedia revision 1372670122, retrieved 2026-11-21 · 1228518000.0
  59. ^ Yukihiro Matsumoto (October 2000). "Programming Ruby: Forward" . Archived from the original on 25 December 2018 . Retrieved 5 March 2014 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1795215600.0
  60. ^ "We retire raa.ruby-lang.org" . 2013-08-08. Archived from the original on 2015-12-31 . Retrieved 2016-01-03 . Wikipedia revision 1372670122, retrieved 2026-11-21 · 1451775600.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Ruby (programming language)". 1788280884. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1372670122

JSON record · API collection · citation policy