Ruby (programming language)

Edit · View history

Ruby (programming language)

Ruby is a dynamic, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro Matsumoto (commonly known as Matz) in Japan. The language emphasizes simplicity, productivity, and a design philosophy that prioritizes human needs over machine efficiency, often summarized by Matz's principle: "Ruby is designed to make programmers happy."

Ruby is known for its elegant syntax that reads like natural language, its pure object orientation (every value is an object), and its powerful metaprogramming capabilities. It is dynamically typed and uses garbage collection for memory management. Ruby's interpreter can run on multiple platforms including Linux, macOS, and Windows.

The language gained widespread popularity after the release of the Ruby on Rails web framework in 2004, which drastically simplified web application development. Ruby is also used for scripting, system administration, data processing, and prototyping.

History

Development of Ruby began on February 24, 1993. Matsumoto wanted a language that combined the best features of his favorite languages: Perl (text processing and flexibility), Smalltalk (true object orientation), Eiffel (design by contract), and Lisp (functional concepts). The first public release (Ruby 0.95) was announced in 1995.

Ruby 1.8 (2003–2007) became the stable version for many years, but suffered from performance issues. Ruby 1.9 (2007) introduced significant improvements: a new bytecode-based virtual machine (YARV), improved Unicode support, and faster execution. Ruby 2.0 (2013) added keyword arguments, lazy enumeration, and refinements. The current major version is Ruby 3.x (since 2020), which focuses on concurrency (Ractor, Fiber Scheduler) and performance (JIT compiler).

Features

See also