Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. This latest release Ruby 2.1.3 contains a change of full GC timing to reduce memory consumption, and many bugfixes. Ruby is highly portable as its developed mostly on GNU/Linux, but works on many types of UNIX, Mac OS X, etc. Ruby has a wealth of notable features, among which are the following:
- Ruby has exception handling features, like Java or Python, to make it easy to handle errors.
- Ruby features a true mark-and-sweep garbage collector for all Ruby objects. No need to maintain reference counts in extension libraries. As Matz says, “This is better for your health.”
- Writing C extensions in Ruby is easier than in Perl or Python, with a very elegant API for calling Ruby from C. This includes calls for embedding Ruby in software, for use as a scripting language. A SWIG interface is also available.
- Ruby can load extension libraries dynamically if an OS allows.
- Ruby features OS independent threading. Thus, for all platforms on which Ruby runs, you also have multithreading, regardless of if the OS supports it or not, even on MS-DOS!
Install Ruby 2.1.3 on Ubuntu 14.04 & Ubuntu 14.10
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2 tar -xvf ruby-2.1.3.tar.bz2 cd ruby-2.1.3 ./configure make sudo make installcomments powered by Disqus