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/FG2i/
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 video titled 'Introduction to CRuby source code,' Andy Pliszka, a speaker at MountainWest RubyConf 2014, provides an informative overview of the CRuby source code and its implications for Ruby developers. He emphasizes the advantages of understanding the CRuby source code, which helps enhance the knowledge of Ruby and explains crucial concepts like singleton methods and garbage collection. Here are the key points discussed: - **Motivation for Understanding CRuby**: Pliszka highlights that familiarity with CRuby can significantly enhance one's programming skills in Ruby, especially for developers with several years of experience. - **Building Ruby from Source**: He walks through the process of checking out the Ruby source code from GitHub, configuring it, and installing it on Mac and Linux systems. This involves using tools like RVM and running necessary commands such as 'make' and 'make install'. - **Debugging Tools**: The speaker mentions the importance of having a reliable debugger to explore CRuby, recommending tools like LLDB for macOS and GDB for Linux. - **Exploring CRuby Source Code**: Pliszka guides the audience through essential files in the CRuby source code, explaining the structure and how critical classes such as arrays and strings are implemented in C. - **Performance Optimization**: He illustrates how code written in C can be significantly faster than Ruby code, citing examples like the Fibonacci function and quicksort algorithms, which show the potential performance gains of leveraging CRuby. - **Case Study - Rails Installation**: Testing a Ruby installation by attempting to install Rails is suggested as a means to confirm successful setup and C configuration. At the conclusion of his talk, Pliszka encourages developers to experiment with CRuby and delve into C code to reignite their passion for programming and realize substantial productivity and performance improvements. He underscores that exploring CRuby offers many ‘aha’ moments that can enrich the learning experience and performance optimization pursuits as a Ruby developer.
Suggest modifications
Cancel