Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 18, 2021 02:17 pm GMT

Ruby 3 Mindset, what's new ?

The number 3 is very significant in the Ruby 3 release. Be it release version number, making performance 3x faster, or the trio of core contributors(Matz, TenderLove, Koichi).

Similarly, there were 3 major goals of Ruby 3: being faster, having better concurrency, and ensuring correctness.

Ruby 3s main selling point is that its 3 times faster than Ruby 2. Matz and the team have been trying to bring in a lot of features in the latest version of Ruby, but their foremost priority has been to ensure that performance is improved drastically, and that backward compatibility is maintained.

There are a whole bunch of new additions like type checking, ractor, and scheduler, along with improvements to the currently existing paradigms, like performance, fibers, memory, concurrency, and static analysis. Well take a deeper look at each one of them one-by-one.
One of the most promising updates for Ruby CPU performance is the new Ruby JIT.

Another new feature that might significantly improve the programming languages performance is the Medium Internal Representation JIT compiler, which is lightweight and convenient to work with.

We hope that this Ruby updates will actually be included in Ruby 3.0 since it might solve Rubys issues and result in significant performance improvement beyond the current JIT.

The point of a new big number is that it breaks stuff from previous releases.

One final note: In order to manage projects developed on different versions of Ruby, youll want a version manager to allow you to easily switch back and forth. Ive used rbenv; Im also aware of chruby and RVM that are frequently recommended and accomplish the same thing.


Original Link: https://dev.to/shayanholakouee/ruby-3-mindset-whats-new--1kh9

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To