Why the Release of Ruby 3 Will Be Monumental (2024)

Permalink

Why the Release of Ruby 3 Will Be Monumental (1)

We’ve been living in the shadow of Ruby 2 for seven years now. Seven! Ruby 2 was released in 2013 (which incidentally is the same year as the initial public release of React 0.3.0!).

In that span of time, Ruby performance has improved significantly and many, many enhancements to the language have benefited a great many people and projects. We’ve seen companies using Ruby and in many cases Rails become bedrocks of developer and consumer internet infrastructure. GitHub. Shopify. Stripe. Square. AirBnB.

But there has also been some consternation along the way. Is Ruby really a top-tier programming language able to compete with the likes of Javascript, Python, PHP, Go, and beyond? Or was it just a DHH-fueled hype-cycle doomed to inevitable relative obscurity as other technologies and frameworks ascended in its wake? (I don’t actually believe anyone seriously thinks this any more, but you still see the stray head-scratcher whiz by on Hacker News.)

Now we are mere weeks away from a major new Ruby release: version 3. While Ruby 3 is an exciting update with lots of features that make it interesting both now and in the future with various point updates promising even more goodies, I think it’s the psychology of turning over from major version 2 to 3 that is most vital to the future health of the community.

Ruby 3 isn’t just a new version. It’s a new era.

What does this era represent? Let’s list a few talking points I hope we’ll start to push hard and often as Rubyists:

Ruby 3 is Fast

No, I don’t mean Ruby 3 suddenly got a whole lot faster than Ruby 2.7. I mean that Ruby 3 is fast compared to Ruby 2. It’s unfortunate that much of the “Ruby is slow” meme has been a laggard perspective stemming from people’s experiences years ago with the language, or an old version of Rails, or Jekyll, or…the fact is it just wasn’t the zippy experience we’re pleased to enjoy today.

Do we still want even better performance? Of course! But at this point, Ruby is plenty fast as compared to many other “scripting” languages. Most of the time it’s on par with Python. It’s even on par with Javascript. (What? Don’t believe me? Check out how similar Jekyll and Eleventy perform as static site generators.) And as Nate Berskopec often reminds us, your Rails app can perform quite well with just a bit of fine-tuning, and often the typical bottlenecks lie elsewhere in the stack (database, web server, etc.)

Ruby 3 is Easy

These days, you don’t need to wrestle with gem dependency hell or pray to the gods to get Ruby or a Ruby extension to compile. That was “old Ruby”. New Ruby is using a fancy-pants version manager like rbenv combined with Bundler 2.

It just works.

Truly, Ruby is the first thing I install on any new Mac or Linux machine I operate and getting things set up is a piece of cake. Installing Rails. Installing Bridgetown. Installing…whatever. It. Just. Works.

We also have things like Docker and WSL to make things much easier to accomplish on Windows machines if you get stuck wrestling with Win-native Ruby. Heck, you can upload your entire dev environment into the cloud now and use VSCode with remote extensions.

Are there ways Bundler and the ecosystem around Ruby versions/dependencies could be improved? No doubt. But it’s in no way any more complicated or fiddly than the world of npm/yarn, and you don’t see the angry hordes trying to burn down the barn doors over there (except maybe the Deno folks 😉).

Ruby 3 is Sleek

Ruby isn’t the best choice for all problem domains. It just isn’t. But when it comes to “standard” web development, it often is the best choice. It really is! Spend a few days writing NestJS + TypeORM Typescript code and then come back to Rails. It’s like a breath of fresh, sweet air. And that’s not just when you’re writing controllers or models…it goes all the way up and down the stack.

Ruby just makes everything better. Less code. Less boilerplate. Less ceremony. More streamlined. More properly object-oriented. More polished and pleasurable to read and write. Certainly one could posit there are other web frameworks/languages which have much going for them as well. Laravel is popular with PHP devs, and for good reason. Django is popular with Pythonistas. But can anyone say with a straight face that, all things being equal, PHP is a “superior” programming language to Ruby? Can anyone say that Python—taken as a whole—is more suited to building a website than Ruby is?

I think not. While Ruby wasn’t originally invented as a way to supercharge web development, it found its niche in the rise of such amazing projects as Rails, Rack, Jekyll, plus great APIs by Stripe and many others. It rode much of the early wave of Web 2.0 hits, and that heritage continues to benefit us today.

Ruby 3 is Here to Stay

Ruby 3 isn’t just another notch on the belt of recent Ruby releases. It’s Ruby 3.0. That means we can look forward to 3.1, 3.2, 3.3, and beyond. This is the beginning of a whole new era. New innovations. New patterns. Exciting ideas fusing concepts from other technologies with The Ruby Way. Fresh blood coming into the ecosystem. (Anecdotally, I’m seeing newbies plus returning old-timers jumping into Ruby-based forums and chat rooms all the time, and the pace of interesting new Ruby gems bursting onto the scene finally seems to be increasing after a few years of ho-hum incremental progress.)

The takeaway is this: Ruby 3 represents a moment when we should stand proud as Rubyists and unabashedly proclaim to the bootcamps and engineering departments of the world that we’re open and ready to do business large and small. Sure you could pick something other than Ruby with which to build the next great internet success story. But you’ll definitely be in good company if you do pick Ruby. After all, it’s more likely than not your code will be living in a repository overseen by Ruby (GitHub), you’ll be communicating with your fellow colleagues via Ruby (Basecamp & HEY), you’ll be asking for support via Ruby (Discourse forums), you’ll be researching the latest developer news and techniques via Ruby (Dev.to), and you’ll be spinning up your dev machine while wearing that l33t geek t-shirt you got from an indie vendor via Ruby (Shopify)—that is, after you paid for it via Ruby (Stripe). And when you’re exhausted from all that coding and need to unwind at a private cottage by the beach, Ruby will help you out there too (AirBnB).

Excelsior!

Topic: The Art of Code

Why the Release of Ruby 3 Will Be Monumental (2024)

FAQs

Why the Release of Ruby 3 Will Be Monumental? ›

Ruby 3 major updates. 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.

What are the advantages of Ruby 3? ›

Conclusion. Ruby 3.3 brings performance improvements in many areas: faster and less frequent garbage collection, memory optimizations, faster code, and YJIT improvements. And the best part is that, in most applications, these performance improvements will be noticeable without any modification of the code!

What are the performance improvements of Ruby 3? ›

It tackles previously unsupported call types and megamorphic object shapes, leading to performance increases of over 3x on benchmarks like Optcarrot. Not only that, but Ruby's core classes have been optimized for faster allocation and memory management, making everything from String#getbyte to Kernel#is_a?

What is the difference between Ruby 2 and 3? ›

Ruby 3.0 is 3 times faster than Ruby 2! Optcarrot benchmark measured thread performance, based on NES's game emulation workload and came back with an amazing score, in comparison to the previous version of the language.

When was Ruby 3 released? ›

2020-12-25

What is so special about Ruby? ›

It has excellent hardness, ranking 8.5/10 in the Mohs hardness scale! This means a few things. First of all, it is resistant to scuffs and scratches and secondly, it can be worn daily without the fear of damage being in our every thought and action.

What's so great about Ruby? ›

Ruby's syntax offers a lot of flexibility, emphasizing syntactic sugar. There are many features such as function calls without parentheses, "code blocks" (similar to anonymous functions that can be passed to any method), and metaprogramming (code that writes code). The code in Ruby is easy to read like English text.

Is Ruby 3 backwards compatible? ›

ruby3-backwards-compatibility. This gem provides a compatibility layer to Ruby 3 projects that still have legacy code written against Ruby 2's stdlib. Only use this if you upgrade to Ruby 3 but still depend on some third-party code that breaks on Ruby 3.

What is the most popular version of Ruby? ›

Which versions of Ruby do you use the most? Ruby 2.7 is the most common version, used by 51% of respondents. Ruby 3.0 usage is also rapidly growing – 19% have already adopted it.

Which version of Ruby should I use? ›

Ruby & Rails Compatibility Table
Rails VersionRequired Ruby VersionRecommended Ruby Version
6.0.Z>= 2.5.0 < 3.0.02.6.Z
5.2.Z>= 2.2.2 < 2.7.02.5.Z
5.1.Z>= 2.2.2 < 2.6.02.5.Z
5.0.Z>= 2.2.2 < 2.5.02.4.Z
12 more rows
Apr 24, 2024

What is the latest stable release of Ruby? ›

What is the latest Ruby version? Ruby 3.3 is the Ruby latest version (3.3. 0 was released Dec 25, 2023). Visit the Ruby releases page at the official Ruby website to check for a newer version.

What is the current version of Ruby being used today? ›

As of May 2024, the highest stable Ruby version is 3.3.

What is the purpose of the Ruby programming language? ›

Although Ruby is probably most famous for its use in web development, it has many other uses, too. Some of these include automation, command-line tools, static site generation, DevOps, web scraping, and data processing. Perhaps most importantly, Ruby is a highly versatile and portable language.

What is the best grade of Ruby? ›

Rubies that are graded as VVS and VS are considered to be the highest qualities. There are many different kinds of inclusions that are found in rubies. An inclusion is any characteristic that is found inside the stone. Inclusions are natural.

Which Ruby version manager is best? ›

If you want a lightweight and quick version manager, use chruby. You have several choices if you want something with more extensibility and do not care about speed : ASDF if you want to manage several other language than Ruby. Rbenv if you need a versatile version manager that manages only ruby.

What is the most sought after Ruby? ›

Rubies that are a vibrant red color with few visible inclusions are most desired by collectors. "Pigeon's Blood" rubies are considered to be the rarest and most valuable due to their deep red color, transparency and few inclusions.

What is the difference between == and === in Ruby? ›

What is the difference between == and === operator? '==' operator tests for equality of two values, whereas '===' operator tests equality of a value in the given range.

Top Articles
Garen Jungle Runes
Forget Sandals—These Ballet Flats and Mary Janes Are the It Summer Shoe
Friskies Tender And Crunchy Recall
Encore Atlanta Cheer Competition
Joi Databas
Air Canada bullish about its prospects as recovery gains steam
Wmu Course Offerings
Tv Guide Bay Area No Cable
Craigslist Parsippany Nj Rooms For Rent
Hk Jockey Club Result
Mcoc Immunity Chart July 2022
Dr Lisa Jones Dvm Married
7.2: Introduction to the Endocrine System
What's Wrong with the Chevrolet Tahoe?
Slapstick Sound Effect Crossword
123 Movies Babylon
2013 Chevy Cruze Coolant Hose Diagram
Günstige Angebote online shoppen - QVC.de
Hca Florida Middleburg Emergency Reviews
Mineral Wells Independent School District
How To Level Up Roc Rlcraft
Eine Band wie ein Baum
Veracross Login Bishop Lynch
Chase Bank Pensacola Fl
Putin advierte que si se permite a Ucrania usar misiles de largo alcance, los países de la OTAN estarán en guerra con Rusia - BBC News Mundo
Optum Urgent Care - Nutley Photos
Garnish For Shrimp Taco Nyt
27 Paul Rudd Memes to Get You Through the Week
Mandy Rose - WWE News, Rumors, & Updates
Craigslist Wilkes Barre Pa Pets
Wrights Camper & Auto Sales Llc
Xxn Abbreviation List 2017 Pdf
Black Panther 2 Showtimes Near Epic Theatres Of Palm Coast
Cal State Fullerton Titan Online
Weather October 15
Earthy Fuel Crossword
Rock Salt Font Free by Sideshow » Font Squirrel
Shiftwizard Login Johnston
Teenbeautyfitness
Strange World Showtimes Near Regal Edwards West Covina
B.k. Miller Chitterlings
Joe's Truck Accessories Summerville South Carolina
Go Upstate Mugshots Gaffney Sc
Planet Fitness Lebanon Nh
O'reilly's Palmyra Missouri
Achieving and Maintaining 10% Body Fat
Carteret County Busted Paper
Chr Pop Pulse
855-539-4712
Bedbathandbeyond Flemington Nj
Who uses the Fandom Wiki anymore?
Verilife Williamsport Reviews
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 5453

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.