|
This programming language allows its users to freely alter its parts, making it more flexible in many areas like error reporting, testing, building apps and more.
Ruby is dynamic, reflective, general purpose and inspired by Perl with Smalltalk-like features
Essential parts of Ruby can be removed or redefined, at will.
Existing parts can be added upon. Ruby tries not to restrict the coder.
Here are some key features of "Ruby":
· Simple syntax
· OOP friendly
· Cross-platform tested
· Portable
· Exception handling
· Support for C extensions
· SWIG interface
· Extension libraries
· OS independent threading
· Operator overloading
· Iterators
· Closures
· Garbage collections
· Dynamic loading of object
What's New in This Release: [ read full changelog ]
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
Via: Ruby 2.0.0 / 1.9.3 / 1.8.7
0 Comment:
Post a Comment