Skip to content

Booksellers & Trade Customers: Sign up for online bulk buying at trade.atlanticbooks.com for wholesale discounts

Booksellers: Create Account on our B2B Portal for wholesale discounts

Hacking MRI: Diving into Ruby's Source Code: Advanced Techniques for Exploring and Modifying Ruby's Core Implementation

by Phiquill Publishing
Sold out
₹1,986.00
Original price ₹1,986.00
Original price ₹1,986.00
₹1,986.00
Current price ₹1,986.00

Imported Edition - Ships in 18-21 Days

Free Shipping in India on orders above Rs. 500

Request Bulk Quantity Quote
+91
Book cover type: Paperback
  • ISBN13: 9798293167050
  • Binding: Paperback
  • Subject: N/A
  • Publisher: Independently Published
  • Publisher Imprint: Independently Published
  • Publication Date:
  • Pages: 246
  • Original Price: USD 19.0
  • Language: English
  • Edition: N/A
  • Item Weight: 581 grams
  • BISAC Subject(s): Languages / Ruby

Master MRI Source Code Navigation: Develop the ability to confidently explore and understand the official Ruby MRI (Matz's Ruby Interpreter) source code, including its core directories and architectural components.

Build and Manage Custom Ruby Versions: Acquire the practical skills to acquire, compile, and install Ruby from source, along with managing multiple custom MRI versions for development and testing.

Deep Dive into the Ruby Virtual Machine (YARV): Gain a comprehensive understanding of the YARV instruction set, compilation pipeline (parsing to AST to YARV instructions), and the execution flow of Ruby code.

Unravel Ruby's Core Object Model: Learn about the VALUE type, the internal representations of core classes like String, Array, and Hash, and the optimization techniques used for interned strings and symbols.

Grasp Ruby's Dynamic Method Dispatch: Understand how Ruby handles method lookups, caching, superclass traversal, and the inner workings of dynamic method definition (define_method) and method_missing.

Demystify Ruby's Memory Management and GC: Comprehend Ruby's memory allocation strategies, the generational garbage collector's operation (marking, sweeping, promotion), and techniques for tuning GC behavior.

Implement Robust C Extensions with the Ruby C API: Learn to create, bind, and interact with Ruby objects from C, enabling you to extend Ruby's functionality with high-performance native code.

Handle Exceptions and Control Flow at the C Level: Understand Ruby's exception handling mechanisms (rb_raise, rb_rescue) and how to define and manage custom exceptions and control flow using throw/catch in C.

Optimize Ruby Performance through Core Modifications: Identify performance bottlenecks, apply low-level optimizations, and strategically rewrite critical code paths in C to enhance Ruby application performance.

Explore and Manipulate the Ruby Parser (AST): Gain insights into Ruby's parsing process, including the roles of Bison and Flex, and learn to build AST transformers for static analysis or custom language features.

Understand YARV Compilation and JIT: Delve into how Ruby code is compiled from AST to YARV instructions, explore optimization techniques, and comprehend the principles and performance tuning of Ruby's Just-In-Time (JIT) compilation.

Navigate Ruby's Concurrency Model: Understand the Global VM Lock (GVL), learn to implement thread-safe C extensions, and explore the Fiber API for cooperative multitasking and asynchronous I/O.

Debug and Profile Ruby and Native Code: Master debugging techniques using GDB with MRI, utilize Ruby's TracePoint API, and employ profiling tools like perf and Valgrind to identify and resolve performance issues.

Contribute to the MRI Project: Learn the essential steps for contributing to the official Ruby MRI project, including bug reporting, submitting patches, and engaging with the core development community.

Trusted for over 49 years

Family Owned Company

Secure Payment

All Major Credit Cards/Debit Cards/UPI & More Accepted

New & Authentic Products

India's Largest Distributor

Need Support?

Whatsapp Us