Ruby 2.0.0

Naviga SWZ: Home Page » News
News del 25 Febbraio 13 Autore: Gianplugged
Ruby 2.0.0
Aggiornamento di Ruby, linguaggio di scripting ad oggetti nato nel 1993 per mano dello sviluppatore giapponese Yukihiro Matsumoto aka Matz.

Note di rilascio:

We are pleased to announce the release of Ruby 2.0.0-p0.

Ruby 2.0.0 is the first stable release of the Ruby 2.0 series, with many new features and improvements in response to the increasingly diverse and expanding demands for Ruby.

Enjoy programming with Ruby 2.0.0!

New Features

Some of the highlights:

- Language core features
Keyword arguments, which give flexibility to API design
Module#prepend, which is a new way to extend a class
A literal %i, which creates an array of symbols easily
__dir__, which returns the dirname of the file currently being executed
The UTF-8 default encoding, which make many magic comments omissible
- Built-in libraries
Enumerable#lazy and Enumerator::Lazy, for (possibly infinite) lazy stream
Enumerator#size and Range#size, for lazy size evaluation
#to_h, which is a new convention for conversion to Hash
Onigmo, which is a new regexp engine (a fork of Oniguruma)
Asynchronous exception handling API
- Debug support
DTrace support, which enables run-time diagnosis in production
TracePoint, which is an improved tracing API
- Performance improvements
GC optimization by bitmap marking
Kernel#require optimization which makes Rails startup very fast
VM optimization such as method dispatch
Float operation optimization
In addition, albeit as an experimental feature, 2.0.0 includes Refinements, which adds a new concept to Ruby´s modularity.

See also NEWS for more features, improvements and details.


We have also taken care with the 2.0.0 design to make it compatible with 1.9. It will be easier to migrate from 1.9 to 2.0 than it was from 1.8 to 1.9. (The notable incompatibilities are described later.)

In fact, thanks to the dedicated work of third parties, some popular applications such as Rails and tDiary have been reported to work on the release candidate version of 2.0.0.


We have also made documentation improvements which many rubyists have requested. We have added a huge amount of rdoc for modules and methods. 2.0.0 will be around 75% documented while 1.9.3 was about 60%. Also, we have added a description of Ruby´s syntax. You can see:

ri ruby:syntax


Note that unlike 1.9.0, 2.0.0 IS a stable release, even though its TEENY is 0. All library authors are strongly recommended to support 2.0.0. As mentioned above, it will be comparatively easy to migrate from 1.9 to 2.0.

Ruby 2.0.0 is ready for practical use, and will absolutely improve your Ruby life.
Inserisci un commento sul forum Commenta la News sul Forum


Categoria: Windows

Licenza: Open source

OS: Windows, Linux, OS X

La Community di

La community con le risposte che cerchi ! Partecipa é gratis !
Iscrizione ForumIscriviti al Forum


Vuoi ricevere tutti gli aggiornamenti di SWZone direttamente via mail ?
Iscrizione NewsletterIscriviti alla Newsletter