Ruby (programming language)

Ruby (programming language)

] . IronRuby [cite web
url =
title = IronRuby / Rails Question
author = John Lam
accessdate = 2008-05-25
] [cite web
url =
title = IronRuby and Rails
author = John Lam
accessdate = 2008-06-01
] and Rubinius [cite web
url =
title = Rails on Rubinius
author = Evan Phoenix
accessdate = 2008-05-25
] start to be able to run Rails test cases, but they still are far from production ready for this task.

As of Ruby MRI, Ruby is available on a lot of operating systems such as Linux, Mac OS X, Microsoft Windows, Windows CE and most flavors of Unix.


* As variables are declared simply by assigning a value to them, typing errors can introduce new variables and cause unexpected behavior. [ [ What’s Wrong With Ruby?] ]
* Being a dynamically typed language, errors can occur during the execution of the program if a variable were to be assigned a value of the wrong type. This is common to all dynamically typed languages, such as Lisp, JavaScript, and Python. In Ruby's case the interpreter would not catch the initial mis-assignment, but in most circumstances will throw an error if the mis-assigned variable is later treated as a type that it is not, as opposed to the silent type conversion of some languages.
* Ruby's ability for metaprogramming allows a programmer to modify methods in the language's Standard Library during runtime, a practice known as monkey patching. This can lead to possible collisions of behavior and subsequent unexpected results, and is a concern if done recklessly for code scalability. [ [ Monkeypatching is Destroying Ruby] .
* The Ruby threading model uses green threads [ [ Ruby Threading - RubySpec ] ] , and its model has some inherent limitations which render it difficult to use or unsafe in some scenarios. [ [ Writing a standlone, threaded application using Ruby On Rails at KILLERSITES.COM ] ]
*Ruby 1.8 does not yet have native support for Unicode or multibyte strings, [ [ Headius: Unicode in Ruby, Unicode in JRuby? ] ] although 1.9 added multiple improvements in this area.Fact|date=May 2008
*Ruby suffers from backward compatibility problems. [ [ InfoQ: Ruby 1.9 released ] ]
* Ruby code runs slower than many compiled languages (as is typical for interpreted languages) and other major scripting languages such as Python and Perl [ The Computer Language Benchmarks Game] ] . However, in future releases (current revision: 1.9), Ruby will be bytecode compiled to be executed on YARV ("Yet Another Ruby VM"). The performance of YARV is currently very similar to those of other scripting languages such as Python.

Ruby 2.0 aims to address some of the aforementioned problems:
* Native threads will be used instead of green threads. [ [ Gluttonous : YARV Progress Report ] ]
* Full support for Unicode strings.

Some problems which may not be solved in version 2.0 include:

* Ruby still lacks a specification, the current C implementation being the "de facto" reference specification. [ [ Headius: What Would I (Will I?) Change About Ruby ] ] [ [ From Java to Ruby ] ] However the work for a specification is officially ongoing with a project named RubySpec based on the work started by the Rubinius project. [ [ RubySpec] ] The creator of Ruby has expressed his plans to make Ruby an ISO standard, which he deems will take some time to be completed. [ [ RubyKaigi 2008: Standardization, 1.9 Roadmap] ]

Repositories and libraries

The Ruby Application Archive (RAA), as well as RubyForge, serve as repositories for a wide range of Ruby applications and libraries, containing more than seven thousand items. Although the number of applications available does not match the volume of material available in the Perl or Python community, there are a wide range of tools and utilities which serve to foster further development in the language.

RubyGems has become the standard package manager for Ruby libraries. It is very similar in purpose to Perl's CPAN, although its usage is more like apt-get.

See also

* Duck typing
* Comparison of programming languages
* Watir
* Ruby MRI, the reference C implementation
* JRuby
* IronRuby
* Rubinius
* XRuby
* Ramaze
* Ruby on Rails


External links

* [ Ruby language home page]
* [ Ruby documentation site]
* [] — the simplest Ruby manual with many samples
* [ Ruby programming language] at the Open Directory Project
* [ Ruby User Guide Mirror]
* [ Ruby From Other Languages]
* [ Wiki: Ruby language and implementation specification]
* [ Writing C Extensions to Ruby (MRI 1.8)]
* [ RubyFlow: Community Filtered Ruby News]

Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Programming language — lists Alphabetical Categorical Chronological Generational A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that… …   Wikipedia

  • Python (programming language) — infobox programming language name = Python paradigm = multi paradigm: object oriented, imperative, functional year = 1991 designer = Guido van Rossum developer = Python Software Foundation latest release version = 2.6 latest release date =… …   Wikipedia

  • Mirah (programming language) — Mirah Paradigm(s) object oriented, imperative Appeared in 2008 Typing discipline static, with dynamic features, strong, inferred Influenced by Ruby, Java, Boo …   Wikipedia

  • Eiffel (programming language) — Infobox programming language name = Eiffel paradigm = object oriented year = 1986 designer = Bertrand Meyer developer = Bertrand Meyer Eiffel Software latest release version = 4.2 latest release date = Feb 6, 1998 typing = static typing, strong… …   Wikipedia

  • D (programming language) — For other programming languages named D, see D (disambiguation)#Computing. D programming language Paradigm(s) multi paradigm: imperative, object oriented, functional, meta Appeared in 1999 (1999) Designed by …   Wikipedia

  • CLU (programming language) — Infobox programming language name = CLU paradigm = multi paradigm: object oriented, procedural year = 1974 designer = Barbara Liskov and her students at MIT developer = Barbara Liskov and her students at MIT latest release version = latest… …   Wikipedia

  • Nu (programming language) — Nu Paradigm(s) structured, imperative, object oriented Appeared in 2007 Designed by Tim Burks Developer Tim Burks Stable release 2.0 …   Wikipedia

  • Groovy (programming language) — Infobox programming language name = Groovy paradigm = object oriented, scripting year = 2003 designer = JCP developer = Guillaume Laforge (Project Manager and JSR 241 Spec Lead) latest release version = 1.5.7 latest release date = release… …   Wikipedia

  • Fan (programming language) — Infobox programming language name = Fan logo = paradigm = multi paradigm year = 2007 designer = developer = Brian Frank, Andy Frank latest release version = 1.0.30 latest release date = release date|2008|07|30 typing = static, dynamic… …   Wikipedia

  • Ada (programming language) — For other uses of Ada or ADA, see Ada (disambiguation). Ada Paradigm(s) Multi paradigm Appeared in 1980 Designed by MIL STD 1815/Ada 83: Jean Ichbiah Ada 95: Tucker Taft Ada 2005: Tucker Taft Stable release …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”