Ruby 3.0.0 Released, Now It Is 3 Times Faster Than Its Predecessor

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.

Ruby 3

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!

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%