Todd A. Jacobs · @todd_a_jacobs
23 followers · 250 posts · Server ruby.social

@ruby_discussions As much as I dislike promoting anything or Oracle related, I have to say that a lot of my code (so long as it doesn't require forking) runs ~1 gazillion times faster on than even with enabled. It's now my default for certain types of performance-oriented code, especially for threading.

#java #rubylang #truffleruby #cruby #YJIT

Last updated 2 years ago

postmodern · @postmodern
1148 followers · 1097 posts · Server ruby.social

Can YJIT inline methods to reduce lots of small method calls?

#YJIT

Last updated 3 years ago

Eileen M. Uchitelle · @eileencodes
1795 followers · 6 posts · Server ruby.social

My @rubyconf talk is now available to watch! Exit(ing) Through the YJIT covers what a JIT is, the difference between MJIT & YJIT, what it means to "exit" YJIT, and what to do about it.

youtu.be/PBEklhwJcUA

#ruby #rubyconf2022 #YJIT

Last updated 3 years ago

Arnaud · @oz
36 followers · 98 posts · Server ruby.social

When you type `ruby --yjit`, how do you pronounce yjit?

#YJIT

Last updated 3 years ago

Noah Gibbs · @codefolio
824 followers · 547 posts · Server ruby.social

I gave an ending keynote about for .

It's called "YJIT's Three Languages: The Fun of Code that Writes Code." It's about why it's interesting and useful to keep multiple representations of the same thing in your head.

It's kind of deep and involved, but I won't tell if you skip ahead, watch at different speeds or otherwise just get to (your personal idea of) the good parts.

youtube.com/watch?v=yZSe1BhiTv

#YJIT #rubyconfth

Last updated 3 years ago

Peter Solnica · @solnic
1365 followers · 730 posts · Server ruby.social

So this is cool. Just deployed my app updated to 3.2.0 with enabled.

Initial memory usage dropped from ~128MB to ~98MB in case of the web application.

The worker process is more or less the same ~60MB.

#ruby #YJIT

Last updated 3 years ago

Peter Solnica · @solnic
1365 followers · 728 posts · Server ruby.social

Good news! The official images have been updated to include 3.2.0 and is supported there:

$ docker git:(main) docker compose run --rm ruby sh -l

6ac53f211ce3:/# ruby -v
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux-musl]

6ac53f211ce3:/# RUBY_YJIT_ENABLE=1 ruby -v
ruby 3.2.0 (2022-12-25 revision a528908271) +YJIT [x86_64-linux-musl]

Time to upgrade my app 🙂

#ruby #docker #YJIT

Last updated 3 years ago

Matthias V · @kronn
18 followers · 374 posts · Server ruby.social

So, here I am lying in bed with a headache and reading about and and such things. And I cannot participate because reading alone is exhausting... Have fun with this for me, will you, fellow Rubyists?

#Ruby32 #YJIT

Last updated 3 years ago

/brúno antúnɛs/ ☑️ · @sardaukar
36 followers · 684 posts · Server mastodon.social
Peter Solnica · @solnic
1354 followers · 701 posts · Server ruby.social

OK what I just observed requires a blog post. Watch this space 🙂

#ruby #benchmark #opensource #YJIT

Last updated 3 years ago

Peter Solnica · @solnic
1354 followers · 700 posts · Server ruby.social

WOAH benchmarking dry-validation with/without YJIT shows really interesting results:

YJIT disabled:

dry-validation 2.255k (± 1.9%) i/s - 11.300k in 5.013199s

YJIT enabled:

dry-validation 3.363k (± 1.8%) i/s - 17.034k in 5.066657s

#ruby #YJIT #performance #benchmark

Last updated 3 years ago

Peter Solnica · @solnic
1354 followers · 696 posts · Server ruby.social

test suite is passing just fine with 3.2.0.

Enabling doesn't affect test suite time though. It's around 20s on my machine with or without YJIT enabled.

I've no idea if it's good or bad, but I'm happy that we're green 🙂

#hanami #ruby #YJIT

Last updated 3 years ago

Mike Dalessio · @flavorjones
856 followers · 110 posts · Server ruby.social

Well, @ufuk is providing a LOT of detail on the 3.2 release and here:

twitter.com/paracycle/status/1

#ruby #YJIT

Last updated 3 years ago

Mike Dalessio · @flavorjones
851 followers · 109 posts · Server ruby.social

YJIT in Ruby 3.2 is production-ready, folks.

Shopify rolled out 3.2 and globally this week, and that stack is handling ALL storefront requests.

twitter.com/tobi/status/160565

I'm so proud of this team! In addition to YJIT, we've contributed object shapes and variable-width object heap improvements.

Lots to talk about here, expect to see more details from my teammates in January.

#ruby #YJIT

Last updated 3 years ago

RubyConf · @rubyconf
231 followers · 54 posts · Server ruby.social

RT @eileencodes
I'm speaking @rubyconf tomorrow at 10:45am CST about finding exits in YJIT and how we can use that information to make optimizations. If you're interested in running YJIT you won't want to miss this.

#YJIT #ruby #rubyconf2022

Last updated 3 years ago

Eileen Uchitelle · @eileencodes
1112 followers · 4 posts · Server ruby.social

I'm speaking
@rubyconf tomorrow at 10:45am CST about finding exits in YJIT and how we can use that information to make optimizations. If you're interested in running YJIT you won't want to miss this.

#YJIT #ruby #rubyconf2022

Last updated 3 years ago

postmodern · @postmodern
725 followers · 564 posts · Server ruby.social

I guess I should do

Follow @watzon who has been slowly porting ruby libraries over to Crystal and writing new Crystal libraries.

Follow @presidentbeef who recently managed to get mrubyc onto the Flipper Zero (a RF hacking swissarmy knife gadget).

Follow @timriley and @solnic who have recently released Hanami 2.0 and are now working on 2.1.

Follow @k0kubun who's working on improving CRuby's new YJIT.

#followfriday #ruby #crystal #crystallang #hanami #mruby #mrubyc #YJIT #jit

Last updated 3 years ago

Arnaud · @oz
35 followers · 78 posts · Server ruby.social

Testing out Ruby 3.1 with vs Ruby 3.0.

This shows a sharp decrease of CPU usage for a small Sinatra-based API.

Improvements in response times aren't as visible because the app is mostly IO bound. The app is small, so the memory penalty is light too. I like it.

Thanks Shopify. 👍

#YJIT

Last updated 3 years ago