Ruby (programming language): Difference between revisions
imported>Pat Palmer No edit summary |
imported>Pat Palmer (adding some possible headers) |
||
Line 1: | Line 1: | ||
{{subpages9}} | {{subpages9}} | ||
'''Ruby''' is a general-purpose [[computer]] [[programming language]] first released to the public in 1995 by [[Yukihiro Matsumoto]], a Japanese computer professional working in an open-source software company. | '''Ruby''' is a general-purpose, open-source [[computer]] [[programming language]] first released to the public in 1995 by [[Yukihiro Matsumoto]], a Japanese computer professional working in an open-source software company. Named for the gemstone, Ruby soon obtained a dedicated mass of developers in the international open-source community. Ruby's place in the U.S. computer industry was boosted by the independent release, in 2004, of [[Ruby on Rails|Rails]], a Ruby-based, open-source [[web application framework]] created by [[David Heinemeier Hansson]], a Danish software engineer working in the United States. By 2007, Ruby had risen to be tenth in usage among all programming languages, and its use is still growing<ref name="GermanLanguageInEncarta"> | ||
{{cite web| | {{cite web| | ||
url=http://www.tiobe.com/tpci.htm| | url=http://www.tiobe.com/tpci.htm| | ||
Line 9: | Line 9: | ||
</ref>. | </ref>. | ||
Like most [[programming language|programming languages]] created since 1990, Ruby is fully [[object-oriented]] and requires a [[runtime environment]], or [[virtual machine]], in which to execute. The Ruby runtime has been implemented for all major [[operating systems]] so that, like Java, Ruby can be used to create platform-independent programs. Ruby's popularity may be based on several other factors as well, such as its relatively permissive syntax, its loose typing, its [[closure|closures]] feature, a set of extensive libraries for networking and web services, and its support for making calls out to the native [[operating system]] when needful. | ==How is Ruby implemented?== | ||
Like most [[programming language|programming languages]] created since 1990, Ruby is fully [[object-oriented]] and requires a [[runtime environment]], or [[virtual machine]], in which to execute as an interpreted language. The Ruby runtime has been implemented for all major [[operating systems]] so that, like Java, Ruby can be used to create platform-independent programs. Ruby's popularity may be based on several other factors as well, such as its relatively permissive syntax, its loose typing, its [[closure|closures]] feature, a set of extensive libraries for networking and web services, and its support for making calls out to the native [[operating system]] when needful. | |||
==Who provides Ruby implementations?== | |||
Since 1995, the open-source implementation of the Ruby runtime environment has been closely sheparded by Ruby's creator, [[Yukihiro Matsumoto]] (commonly called ''Matz''). As of October 2007, Matz' runtime is still interpreted, rather than compiled, and lacks a formal written specification. Other virtual machines have also been developed for Ruby. These include [[JRuby]] (an attempt to port Ruby to the [[Java (programming language)|Java]] platform), and [[Rubinius]] (an interpreter modeled after self-hosting [[Smalltalk]] virtual machines). | Since 1995, the open-source implementation of the Ruby runtime environment has been closely sheparded by Ruby's creator, [[Yukihiro Matsumoto]] (commonly called ''Matz''). As of October 2007, Matz' runtime is still interpreted, rather than compiled, and lacks a formal written specification. Other virtual machines have also been developed for Ruby. These include [[JRuby]] (an attempt to port Ruby to the [[Java (programming language)|Java]] platform), and [[Rubinius]] (an interpreter modeled after self-hosting [[Smalltalk]] virtual machines). | ||
Line 18: | Line 22: | ||
puts "Hello, world" | puts "Hello, world" | ||
==What kind of language is Ruby?== | |||
==References== | ==References== |
Revision as of 10:15, 11 October 2007
Ruby is a general-purpose, open-source computer programming language first released to the public in 1995 by Yukihiro Matsumoto, a Japanese computer professional working in an open-source software company. Named for the gemstone, Ruby soon obtained a dedicated mass of developers in the international open-source community. Ruby's place in the U.S. computer industry was boosted by the independent release, in 2004, of Rails, a Ruby-based, open-source web application framework created by David Heinemeier Hansson, a Danish software engineer working in the United States. By 2007, Ruby had risen to be tenth in usage among all programming languages, and its use is still growing[1].
How is Ruby implemented?
Like most programming languages created since 1990, Ruby is fully object-oriented and requires a runtime environment, or virtual machine, in which to execute as an interpreted language. The Ruby runtime has been implemented for all major operating systems so that, like Java, Ruby can be used to create platform-independent programs. Ruby's popularity may be based on several other factors as well, such as its relatively permissive syntax, its loose typing, its closures feature, a set of extensive libraries for networking and web services, and its support for making calls out to the native operating system when needful.
Who provides Ruby implementations?
Since 1995, the open-source implementation of the Ruby runtime environment has been closely sheparded by Ruby's creator, Yukihiro Matsumoto (commonly called Matz). As of October 2007, Matz' runtime is still interpreted, rather than compiled, and lacks a formal written specification. Other virtual machines have also been developed for Ruby. These include JRuby (an attempt to port Ruby to the Java platform), and Rubinius (an interpreter modeled after self-hosting Smalltalk virtual machines).
Hello World in Ruby
Something of Ruby's appeal may be seen in the brevity of this Hello World program:
puts "Hello, world"
What kind of language is Ruby?
References
- ↑ "TIOBE Programming Community Index". TIOBE Software (2007). Retrieved on 2007-10-10.