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
Ruby Wizardry
Ruby Wizardry is a modern day fairy tale that teaches programming skills kids can use.
book
Ruby Phrasebook
Ruby Phrasebook Jason Clinton Essential Code and Commands Ruby Phrasebook gives you the code you need …
book
Metaprogramming Ruby 2
Write powerful Ruby code that is easy to maintain and change. With metaprogramming, you can produce …
book
Mastering Ruby Closures
The road to Ruby mastery is paved with blocks, procs, and lambdas. To be a truly …