Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Hanami is a full-stack web framework for Ruby. With Luca we will learn what will be the major changes for 2.0 release. Luca is the creator of Hanami and author of redis-store. Also a dry_rb core team member. He also works as Back-end Architect at Toptal to envision a SOA architecture for the company.
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 this presentation at the Pivorak Conf 5.0, Luca Guidi, the creator of the Hanami framework, introduces the Hanami API, a minimal and high-performance micro-framework for Ruby. The discussion revolves around the significant changes that will accompany the Hanami 2.0 release, emphasizing improved performance and ease of adoption for new users. ### Key Points Discussed: - **Background of Hanami**: Luca recounts his journey with Hanami, highlighting the need for a new API to improve performance, as the older version was based on an outmoded mounting library. - **Reasons for Creation**: Two main motivations for developing Hanami API were presented: - **Performance Improvement**: The older router lacked efficiency, prompting a rewrite which led to better performance for Hanami applications and related projects. - **Facilitating Adoption**: By developing a minimal API, Luca aims to lower the friction for businesses to switch to Hanami. A single gem for HTTP endpoints would reduce the associated risks of transitioning from more established frameworks like Rails. - **Exploration of Syntax**: The presentation detailed the ease of defining routes using a simple DSL, enabling users to specify HTTP verbs, relative paths, and actions. Additional features include route scoping and middleware management to streamline development. - **Performance Metrics**: Luca shared benchmarks using Jeremy's "10k" tool, which highlighted Hanami API’s competitive edge in memory usage and request handling. The data showed significant improvements in performance due to optimized data structures for routing. - **Technical Improvements**: - Luca discussed the transition from a linear list to a tree structure for storing routes, which greatly enhances search efficiency. - He also outlined the impact of fixed versus variable paths on performance, advocating for more efficient routing strategies. - **Final Thoughts**: Luca concluded that Ruby remains a viable language to learn in 2023, signaling a promising future for the ecosystem. He addressed questions regarding the practical applications of Hanami API, recommending it for simple endpoints and highlighting its built-in utilities. Overall, the presentation offered insights into the development philosophy behind Hanami API and its broader implications for Ruby web development.
Suggest modifications
Cancel