Ask A Question

Notifications

You’re not receiving notifications from this thread.

What's New In Ruby 3.3 Discussion

Discussion for What's New In Ruby 3.3

Happy Holidays and New Year everyone! 🥳

Reply

And ruby-build itself now has 3.3 with ruby-build--20231225 (working with rbenv, not sure on asdf)

Reply

ASDF users use an env var to use the latest ruby-build:

ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.3.0
Reply

Thanks Chris!

How soon will we see an update to Hatchbox.io to support Ruby 3.3.0?

Thanks!

Reply

Probably today.

Reply

Will this affect how errors are displayed in Rails 7.2? Or it's too difficult to predict that since it hasn't been released yet?

Reply

Thanks Chris!
You are rock

Reply

Hi Chris, I tried -> RUBY_YJIT_ENABLE=1 ruby -v but I can't see the YJIT. Do I need to install it separately? I am using Mac M2 MacBookPro.

Reply

This might be because you don't have Rust installed.

If so, first uninstall your Ruby 3.3.0, then install Rust (https://www.rust-lang.org/tools/install), and then re-install Ruby 3.3.0.

Now RUBY_YJIT_ENABLE=1 ruby -v should show you that it's using YJIT (this worked for me using rbenv)

Reply

ya, it works similar to yours, thanks for sharing that I need to install rust.

before install, need to uninstall

asdf uninstall ruby 3.3.0

note: do not install rust via asdf, it won't work for me.

  1. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh // choose option 1 and enter; close Mac terminal and open again.
  2. rustc --version // make sure can see rustc version
  3. export RUBY_CONFIGURE_OPTS=--enable-yjit
  4. asdf install ruby 3.3.0
  5. asdf global ruby 3.3.0
  6. gem update --system
  7. gem install rails -v 7.1.2 // need to install this again
  8. ruby -v
  9. RUBY_YJIT_ENABLE=1 ruby -v
  10. rails -v

hope it helps others.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.