Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Understanding of CRuby source code has profound effects on every Ruby developer. In my talk, I will show you how to build Ruby from source. I will explain how to install and configure your new Ruby build on Mac and Linux. I will walk you through CRuby source code and introduce you to a few of the most important CRuby files. I will show you how to hack CRuby and modify some of the fundament Ruby classes in C. I will demonstrate how to write complete Ruby classes in C. Finally, I will show you that CRuby code can run 100 times faster than Ruby code. I hope that this talk will inspire you to learn more about CRuby and hack it on your own. Help us caption & translate this video! http://amara.org/v/FG2o/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the talk titled 'Introduction to CRuby Source Code', Andy Pliszka provides an insightful overview of how CRuby's source code can greatly enhance a Ruby developer's understanding and efficiency. The key points covered in the presentation include: - **Motivation to Explore CRuby**: Developers often plateau in their knowledge after a few years of using Ruby. Understanding CRuby opens new avenues to grasp Ruby's object model, metaprogramming, and performance optimization by using C for critical application parts. - **Building Ruby from Source**: Andy walks through the steps to build Ruby from source, emphasizing the importance of using a stable release and performing proper configurations. He explains how to set up OpenSSL, run `./configure`, and execute `make` and `make install` to compile Ruby successfully. - **Working with C Extensions**: Combining Ruby with C allows leveraging high-level productivity with high-level performance. Libraries like Nokogiri exemplify how C extensions can enhance Ruby applications by handling computationally intensive tasks efficiently. - **Debugging Techniques**: The importance of debugging when hacking on CRuby is highlighted. Utilizing tools like LLDB and GDB is recommended to explore Ruby's internals effectively. - **Understanding the CRuby Codebase**: The structure of the CRuby codebase is introduced, providing insights on how to navigate and comprehend various classes like `Fixnum` and `Array`. Andy notes the patterns within the code that are critical for modifying or adding features to Ruby. - **C Implementation for Performance**: The advantages of implementing performance-critical algorithms directly in C are discussed, showing how this can lead to significant speed improvements compared to Ruby solutions, particularly demonstrated through comparisons of Fibonacci implementations. - **Final Thoughts**: The talk concludes with the idea that understanding and working with CRuby can reignite a developer's passion for Ruby, allowing them to explore modifications and enhance performance significantly by rewriting selected sections in C. Andy encourages experimentation with CRuby and mentions that Pivotal is hiring, inviting the audience to engage further. This presentation serves as an excellent starting point for Ruby developers looking to delve deeper into the workings of CRuby and how to harness its capabilities effectively.
Suggest modifications
Cancel