Ruby Under a Microscope
An Illustrated Guide to Ruby Internals
Publisher: No Starch Press
Final Release Date: November 2013
Pages: 360

Ruby is a powerful programming language with a focus on simplicity, but beneath its elegant syntax it performs countless unseen tasks.

Ruby Under a Microscope gives you a hands-on look at Ruby's core, using extensive diagrams and thorough explanations to show you how Ruby is implemented (no C skills required). Author Pat Shaughnessy takes a scientific approach, laying out a series of experiments with Ruby code to take you behind the scenes of how programming languages work. You'll even find information on JRuby and Rubinius (two alternative implementations of Ruby), as well as in-depth explorations of Ruby's garbage collection algorithm.

Ruby Under a Microscope will teach you:

  • How a few computer science concepts underpin Ruby's complex implementation
  • How Ruby executes your code using a virtual machine
  • How classes and modules are the same inside Ruby
  • How Ruby employs algorithms originally developed for Lisp
  • How Ruby uses grammar rules to parse and understand your code
  • How your Ruby code is translated into a different language by a compiler
No programming language needs to be a black box. Whether you're already intrigued by language implementation or just want to dig deeper into Ruby, you'll find Ruby Under a Microscope a fascinating way to become a better programmer.

Covers Ruby 2.x, 1.9 and 1.8
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyRuby Under a Microscope
 
4.5

(based on 4 reviews)

Ratings Distribution

  • 5 Stars

     

    (2)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Accurate (3)
  • Easy to understand (3)
  • Well-written (3)

Cons

    Best Uses

    • Expert (4)
      • Reviewer Profile:
      • Developer (4)

    Reviewed by 4 customers

    Sort by

    Displaying reviews 1-4

    Back to top

     
    4.0

    An "under the hood" look

    By larye

    from Shelton, WA

    About Me Developer, Sys Admin

    Verified Buyer

    Pros

    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert

      Comments about oreilly Ruby Under a Microscope:

      As a "language junkie" who has taught programming language principles, I always like to know how things work, not just how to use them. RUAM certainly satisfies that need, plus. Ruby sometimes surprises when porting code from one version to the next: RUAM will help, with explanations of some of the major internal changes between 1.8/1.9/2.0. RUAM is a big book, and covers a lot of ground, but still leaves room for more.

       
      5.0

      Amazing !

      By Daniel Lutz

      from São Paulo, SP

      About Me Developer

      Verified Buyer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about oreilly Ruby Under a Microscope:

        If you want to learn how Ruby works under the hood and/or if you want to build better Ruby softwares, you MUST buy this book.

         
        4.0

        Great book to dive into Ruby internal

        By Polob

        from Paris, France

        About Me Developer

        Verified Buyer

        Pros

        • Accurate
        • Easy to understand

        Cons

          Best Uses

          • Expert

          Comments about oreilly Ruby Under a Microscope:

          Great ressource if you are interrested in how a language like Ruby is really implemented. This book is best suited for the curious and those who want to get a grip on how things really work, not those who want to learn a better way to use Ruby.

          The book starts with details on how MRI parse and compile your script to a internal representation, making it a great concrete application of various compiler techniques. They are presented in a clear and concrete way that is sometime missing from the classic books on compilers.

          The middle of the book deals mainly with the MRI run time and how it keeps track of your data and where you are in your program. The various illustration are really clear and you can really understand what's going on. I had various 'ha ha !' moments where I finaly understood various limitations or behaviors of the language.

          The end of the book deals with garbage collection and makes comparaisons with other runtimes like the JVM or Rubinius. While the comparaisions are pretty interresting, they may or may not be your prime issue, depending on how you use Ruby. If you are only using Ruby for small to medium scripts like me, it's not a real big deal.

          I'm not sure reading this book is a must read for Rubists. For diving into Ruby, you should really start with the seminal 'The Ruby Programming Language' or 'Ruby cookbook' (even if the cookbook is now getting a little bit old, it remains largely valid).

          (3 of 3 customers found this review helpful)

           
          5.0

          Unique, In-depth knowledge

          By Hybernaut

          from Boston, MA

          About Me Developer

          Verified Reviewer

          Pros

          • Accurate
          • Easy to understand
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly Ruby Under a Microscope:

            This book is full of deep in-depth analysis and cogent explanation of Ruby internals, from the parser to the way dynamic method wiring makes metaprogramming easy in Ruby.

            Pat is a frequent speaker at the Boston Ruby Group, and I always look forward to patient, insightful explanations from his inquisitive and deeply analytical mind.

            Displaying reviews 1-4

            Back to top

             
            Buy 2 Get 1 Free Free Shipping Guarantee
            Buying Options
            Immediate Access - Go Digital what's this?
            Ebook: $31.95
            Formats:  ePub, Mobi, PDF
            Print & Ebook: $43.95
            Print: $39.95