Finally, the wait is over. Ruby 3.0.0 has been released. Congrats to the core team on this major release.
The new version of Ruby seems to be specifically designed to make it faster, concurrent and correct.
Everybody knows Ruby is the perfect language for MVPs, prototypes, and startups, but Ruby’s speed is definitely the biggest issue with the programming language. People claim that the language needs to be faster for massive projects. If so, you’ll enjoy the updated Ruby 3.0.0. It is three times faster than the version 2 thanks to Ruby’s performance optimization.
One of the most promising updates for Ruby CPU performance is the new Ruby JIT. Although Ruby 3.0 significantly decreased the size of JIT-ed code, it is still not ready for optimizing workloads like Rails, which often spend time on so many methods and therefore suffer from i-cache misses exacerbated by JIT. Stay tuned for Ruby 3.1 for further improvements on this issue.
Pasting long code to IRB is 53 times faster than in the version bundled with Ruby 2.7.0. So this is a great performance improvement.
Other notable new features in Ruby 3.0.0
- One-line pattern matching is redesigned. (experimental)
- Find pattern is added. (experimental)
- Endless method definition is added
- Hash#except is now built-in
- Memory view is added as an experimental feature
- Keyword arguments are separated from other arguments
- The $SAFE feature was completely removed; now it is a normal global variable
“Ruby3.0 is a milestone. The language is evolved, keeping compatibility. But it’s not the end. Ruby will keep progressing, and become even greater. Stay tuned!”
said Matz, Chief designer of the Ruby programming language.
Merry Christmas, Happy Holidays, and enjoy programming with Ruby 3.0!