Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
In software, we often encounter problems that we accept as "just how things are." But sometimes, that creates opportunities to identify creative, out of the box solutions. One idea can be combining the power of Crystal with our existing Ruby knowledge, to create effective tools with minimal learning curve and cognitive overhead. I'll demonstrate how easily Ruby code can be ported to Crystal, how it can benefit us, and how to identify these opportunities.
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 presentation titled "Bending Time with Crystal: 6 hours to 15 minutes," Paul Hoffer discusses creative problem-solving using the Crystal programming language, particularly in relation to enhancing performance at The RealReal, an e-commerce platform. Hoffer emphasizes the potential for combining existing Ruby knowledge with Crystal to build efficient tools. He shares insights into Crystal’s architecture, highlighting its Ruby-like syntax paired with the speed of C, which makes it a powerful option for Ruby developers. ### Key Points Discussed: - **Introduction to Crystal:** - Crystal is designed for both human readability and computer efficiency, making it accessible for Ruby developers. - **Sitemap Generation Challenge:** - The RealReal generates over 18 million sitemap links, currently taking up to six hours to process using Ruby, which is not efficient for their daily needs. - **Proposal for Improvement:** - By transitioning sitemap generation to Crystal, Hoffer aims to significantly reduce the processing time and memory usage, facilitating more frequent updates. - **Code Compatibility:** - Hoffer demonstrates how Crystal code can resemble Ruby code, allowing for easier porting of existing Ruby functionality into Crystal with minimal modifications. - **Implementation Example:** - He showcases a simple Ruby sitemap generator that accumulates links, and illustrates how similar functionality is achievable in Crystal using the 'site_mapper' shard. - **Performance Results:** - The prototype established in Crystal processes the sitemap in approximately 15 minutes compared to the original six hours, revealing a substantial performance improvement. - **Further Optimization:** - An identified memory leak issue was addressed through the implementation of a feature allowing the system to write out files incrementally. ### Conclusion: Hoffer concludes that this transition not only optimizes the sitemap generation process but also allows The RealReal to streamline its codebase by removing unnecessary dependencies on Rails. He encourages others to explore the Crystal programming language as a potential solution for performance-related challenges. The presentation also seeks to inspire attendees to tackle creative problem-solving in their own projects, leveraging the strengths of both Ruby and Crystal.
Suggest modifications
Cancel