concept Ruby in category apache thrift

This is an excerpt from Manning's book Programmer's Guide to Apache Thrift.
The number of programming languages in common commercial use has grown considerably in recent years. In 2003, 80% of the Tiobe Index (http://www.tiobe.com/index.php/tiobe_index) was attributed to six programming languages: Java, C, C++, Perl, Visual Basic, and PHP. In 2013, it took nearly twice as many languages to capture the same 80%, adding Objective-C, C#, Python, JavaScript, and Ruby to the list (see figure 1.1). In early 2016 the entire Tiobe top 20 didn’t add up to 80% of the mind share. In Q4 2015, Github reported 19 languages all having more than 10,000 active repositories (http://githut.info/), adding Swift, Go, Scala, and others to the list.
In this section, we’ll install Apache Thrift support for Ruby and build a simple Ruby RPC client and server. Ruby is a flexible programming language used for systems administration scripting, web programming, and general purpose coding. Many important devops tools are written in Ruby, such as Puppet, Chef, and Vagrant. Ruby is behind one of the most popular web frameworks, Rails, and Ruby is also a key language in many test frameworks, including RSpec. Ruby provides the best features of Perl’s string processing and adds objects, functional programming features, reflection, and automatic memory management. When combined with Apache Thrift, Ruby becomes an effective RPC service platform and a versatile language for RPC service mocking and testing.
To build Apache Thrift clients and servers in Ruby, you’ll need to install the Apache Thrift IDL compiler and the Apache Thrift Ruby library package. In Ruby, reusable library modules are packaged in the Gem format and can be installed using the RubyGems “gem” package manager. More than 9,000 Ruby gems are hosted on RubyGems.org, the central repository for publicly available Ruby packages. A search for “Thrift” on the RubyGems.org site produces a list of more than 30 gems, including the official Apache Thrift Ruby library, which is named “Thrift”.
Ruby is a popular language with a mature Apache Thrift implementation. The Apache Thrift Ruby libraries support most of the top-shelf Apache Thrift features.
When using Apache Thrift IDL, the type mappings from Ruby to Apache Thrift are fairly intuitive, as shown in table 16.1.
Table 16.1. Apache Thrift-to-Ruby type mapping (view table figure)
Ruby also supports IDL namespaces. In Ruby, an IDL namespace generates a module. For example, placing the statement “namespace rb FishCo” at the top of an IDL file would place all the generated code in the Ruby module “FishCo.” Ruby will also create modules for wildcard namespaces, for example namespace * FishCo.
Ruby supports most of the common Apache Thrift endpoint transports: