2 ms·
> This is interesting to me as someone working on a Rails app currently. I’m surprised it hasn’t become the defacto ruby implementation given the benchmarks sho
by dragonwriter 5y ago
> This is interesting to me as someone working on a Rails app currently. I’m surprised it hasn’t become the defacto ruby implementation given the benchmarks shown on the site. What are the drawbacks?
It is not supported on all platforms and listed as “experimental” (defined as “ features [which] are being considered for future versions of GraalVM and are not meant to be used in production”) on the platforms (Linux AMD64/ARM64, macOS [AMD64, presumably, since there is a separate listing for MacOS ARM64 where it is not supported]) that it is supported on. [0] That’s probably the main thing keeping it back from general adoption. (It’s also ~2 years behind MRI on features, but that’s less important.)
There are also notes in the TruffleRuby repo and docs that it:
(1) is possibly not fast on Rails and large programs (which are probably the bulk of where people would be looking for performance gains),
(2) has some minor incompatibilities (individually no big deal, but the aggregate could be a factor)
(3) Fibers (Ruby’s main lightweight concurrency construct) don’t have the lightweight performance they do in CRuby because they use full native threads.
[0] https://www.graalvm.org/22.1/docs/introduction/ https://www.graalvm.org/22.1/docs/introduction/, under “Features Support”