Book description
Ruby Under a Microscope gives developers an inside, hands-on look at Ruby's core, using simple diagrams coupled with clear explanations.
Table of contents
- Ruby Under a Microscope: An Illustrated Guide to Ruby Internals
- Dedication
- Advance Praise for Ruby under a Microscope
- About the Author
- Foreword
- Acknowledgments
- Introduction
- 1. Tokenization and Parsing
- 2. Compilation
- 3. How Ruby Executes Your Code
-
4. Control Structures and Method Dispatch
- How Ruby Executes an if Statement
- Jumping from One Scope to Another
- Experiment 4-1: Testing How Ruby Implements for Loops Internally
- The send Instruction: Ruby’s Most Complex Control Structure
- Calling Normal Ruby Methods
- Calling Built-In Ruby Methods
- Experiment 4-2: Exploring How Ruby Implements Keyword Arguments
- Summary
- 5. Objects and Classes
- 6. Method Lookup and Constant Lookup
- 7. The Hash Table: The Workhorse of Ruby Internals
- 8. How Ruby Borrowed a Decades-Old Idea from Lisp
- 9. Metaprogramming
- 10. JRuby: Ruby on the JVM
- 11. Rubinius: Ruby Implemented with Ruby
-
12. Garbage Collection in MRI, JRuby, and Rubinius
- Garbage Collectors Solve Three Problems
- Garbage Collection in MRI: Mark and Sweep
- Experiment 12-1: Seeing MRI Garbage Collection in Action
- Garbage Collection in JRuby and Rubinius
- Copying Garbage Collection
- Generational Garbage Collection
- Concurrent Garbage Collection
- Experiment 12-2: Using Verbose GC Mode in JRuby
- Further Reading
- Summary
- Index
- Copyright
Product information
- Title: Ruby Under a Microscope
- Author(s):
- Release date: November 2013
- Publisher(s): No Starch Press
- ISBN: 9781593275273
You might also like
book
Metaprogramming Ruby 2
Write powerful Ruby code that is easy to maintain and change. With metaprogramming, you can produce …
book
Head First Ruby
What will you learn from this book? What’s all the buzz about this Ruby language? Is …
book
The Ruby Programming Language
The Ruby Programming Language is the authoritative guide to Ruby and provides comprehensive coverage of versions …
video
Learn to Code with Ruby
“Learn to Code with Ruby" is a meticulously crafted educational experience, designed to take you from …