Ruby Devs Release Hanami V2.0

Ruby’s developers have released a new blazing-fast web framework.
Listen to this story

Ruby has been a longstanding favourite of developers due to its dynamic nature and capability to write efficient code. Now, the developers behind Ruby have released the v2.0 of a fast framework built on top of the language; Hanami.

Hanami is a web framework for Ruby that is optimised for speed and security. While the Ruby web framework space is dominated by Ruby on Rails, Hanami is quickly emerging as an alternative. It is gaining rapid popularity owing to low system resource consumption and its simple code syntax, which lends itself to easy maintenance. Moreover, it is still a very young framework, with the 1.0 version being released in 2019. It was developed by a small team of independent developers, headed up by Luca Guidi, Tim Riley, and Peter Solnica. 

Several are choosing Hanami over Ruby on Rails due to the former’s modular nature. While Ruby on Rails needs to be installed as a single package, developers using Hanami can pick and choose what parts of the framework they wish to include in their project.

THE BELAMY

Sign up for your weekly dose of what's up in emerging technology.

Moreover, Hanami’s code structure also lends itself to future upgrades without bloating the codebase—a must-have for any modern framework. The framework is also supported by solid documentation and a rapidly-growing community. 

The Hanami 2.0 update brings a variety of added features to the already-powerful framework, starting with further optimisations for speed. The HTTP routing engine for the framework was completely rewritten, and the results were blazing fast. Their benchmarks have found that the new engine beats out almost every other engine on the market, down to the point where it needs to report actions served in microseconds. In a development environment, programmers can iterate on the product in almost real-time, owing to Hanami’s smart code loading. 

In addition to this, the development team has also optimised the existing code organisation features in the framework. This takes the form of an app core, which is built around a container and components approach. 

They have also added important features such as code autoloading, slices for modularisation of app components, new providers, and redesigned action classes. Hanami 2.0 also includes always-there dependencies mixin, which allows programmers to bring together behaviours from multiple classes. 

Hanami 2.0 has been in development for nearly three years, and represents an important step forward for Ruby’s web ecosystem. It was built completely by a team of volunteer developers, with help from their small but robust community. Hanami 2.0 shows that Ruby’s web ecosystem is finally maturing; a much-needed alternative to existing solutions. 

More Great AIM Stories

Anirudh VK
I am an AI enthusiast and love keeping up with the latest events in the space. I love video games and pizza.

Our Upcoming Events

Conference, in-person (Bangalore)
Machine Learning Developers Summit (MLDS) 2023
19-20th Jan, 2023

Conference, in-person (Bangalore)
Rising 2023 | Women in Tech Conference
16-17th Mar, 2023

Conference, in-person (Bangalore)
Data Engineering Summit (DES) 2023
27-28th Apr, 2023

Conference, in-person (Bangalore)
MachineCon 2023
23rd Jun, 2023

Conference, in-person (Bangalore)
Cypher 2023
20-22nd Sep, 2023

3 Ways to Join our Community

Whatsapp group

Discover special offers, top stories, upcoming events, and more.

Discord Server

Stay Connected with a larger ecosystem of data science and ML Professionals

Subscribe to our newsletter

Get the latest updates from AIM