DEV Community

Discussion on: Anybody keeping up with TruffleRuby?

Collapse
 
rhymes profile image
rhymes

I'm not really tracking what TruffleRuby is doing in the day to day but it's an interesting project.

I wonder if, with the work around Ruby 3x3 and Ruby's JIT, it will be still as interesting for the late adopters and companies that don't want to deal with possible incompatibilies with the regulary CRuby ecosystem. We'll see.

There's definitely a need there, especially with long running processes like Rails apps.

Run idiomatic Ruby code faster

Yes! I guess it's also the 3x3 + JIT goal, though AOT compilation and the creation of a binary sounds sweeet and TruffleRuby uses a different technique.

According to Parallel and Thread-Safe Ruby at High-Speed with TruffleRuby is a lot faster in benchmarks. I want to see it with a Rails app though :)

Run Ruby code in parallel

Since it doesn't use CRuby, it doesn't have the GIL, so threads in memory can run in parallel. Should indirectly create an ecosystem of libs to do numerical computation and derivatives. Not sure how much it would benefit I/O bound frameworks like Rails+Puma or Sidekiq. We'll see :D

Boot Ruby applications in less time

Yeah! Rails startup is slow, even with bootstrap.

Execute C extensions in a managed environment
Add fast and low-overhead interoperability with languages like Java, JavaScript, Python and R

This is probably the most interesting part to me.
Someone said WebAssembly :D ?

Very interesting project indeed.