[HN Gopher] ZJIT has been merged into Ruby
       ___________________________________________________________________
        
       ZJIT has been merged into Ruby
        
       Author : tekknolagi
       Score  : 31 points
       Date   : 2025-05-14 12:18 UTC (10 hours ago)
        
 (HTM) web link (railsatscale.com)
 (TXT) w3m dump (railsatscale.com)
        
       | sabslikesobs wrote:
       | I don't know anything about compliers, so this note about reasons
       | and intentions from the presentation link was helpful to me:
       | 
       | > YJIT can make Ruby code run faster, but this is a balancing
       | act, because the JIT compiler itself must consume both memory and
       | CPU cycles to compile and optimize your code while it is running.
       | Furthermore, in large-scale production environments such as those
       | of GitHub, Shopify and Stripe, we end up in a situation where
       | YJIT is compiling the same code over and over again on a very
       | large number of servers, which seems very inefficient.
       | 
       | > In this presentation, we will go over the design of ZJIT, a
       | next generation Ruby JIT which aims to save and reuse compiled
       | code between executions. We hope that this will help us eliminate
       | duplicated work while also allowing the compiler to spend more
       | time optimizing code so that we can get better performance.
       | 
       | Seems pretty cool. I haven't run into any these limitations in my
       | own usage really, but I'm working at very small scales.
        
       | pjmlp wrote:
       | Quite curious how it will evolve, yet another JIT to track as
       | compiler geek.
       | 
       | Plus points for having all code generation flags in the standard
       | implementation, instead of requiring a debug build like on V8, or
       | an additional plugin like on most JVMs.
        
       ___________________________________________________________________
       (page generated 2025-05-14 23:02 UTC)