Ruby 2.0.0 released

Bráulio Bhavamitra brauliobhavamitra at gmail.com
Wed Apr 10 12:13:05 BRT 2013


http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/

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!

What is 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.
 Compatibility

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.
Documentation

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

Stability

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20130410/8fcbbc11/attachment.html>


More information about the Noosfero-dev mailing list