Ruby 3.1.0 Preview 1 Released
09-Nov-2021 1268
We are pleased to announce the release of Ruby .YJIT: New experimental in-process JIT compilerRuby 3.1 merges YJIT, a new in-process JIT compiler developed by Shopify.Since Ruby 2.6 introduced MJIT in 2018, its performance greatly improved, and finally we achieved Ruby3x3 last year. But even though Optcarrot has shown impressive speedups, the JIT hasn’t benefited real world business applications.Recently Shopify contributed many Ruby improvements to speed up their Rails application. YJIT is an important contribution, and aims to improve the performance of Rails applications.Though MJIT is a method-based JIT compiler and uses an external C compiler, YJIT uses Basic Block Versioning and includes JIT compiler inside it. With Lazy Basic Block Versioning (LBBV) it first compiles the beginning of a method, and incrementally compiles the rest when the type of arguments and variables are dynamically determined. See YJIT: a basic block versioning JIT compiler for CRuby for a detailed introduction.
Ruby 3.1.0 Preview 1 Released #ruby #rubydeveloper #rubyonrails #3.1.0 #Preview #Released https://rubyonrails.ba/link/ruby-3-1-0-preview-1-released