With help for Java 21, the newest long-term help model of Java, JRuby strikes previous Java 8 help and begins integration of Java 21 options. The JRuby group plans to deliver 10 years of JVM enhancements to Ruby customers. Addressing sluggish startup instances, which has been known as the primary criticism from JRuby customers, JRuby 10 leverages newer JVM options together with:
- Utility class knowledge retailer (AppCDS) – an OpenJDK characteristic that permits pre-caching code and metadata throughout startup to cut back the price of future instructions.
- Mission CRaC (Coordinated Restore at Checkpoint) – an experimental characteristic that permits customers to “checkpoint” a operating course of and launch a number of future processes by restoring that checkpoint.
- Mission Leyden – an OpenJDK venture to enhance the startup time, time to peak efficiency, and footprint of Java applications. The JRuby group will incorporate Leyden flags into JRuby’s launcher as they develop into accessible.
These options, mixed with the decreased overhead --dev
flag, supply the fastest-ever startups for JRuby, Nutter stated.
Compatibility with Ruby 3.4, in the meantime, has allowed the JRuby group to implement Ruby 3.2, Ruby 3.3, and Ruby 3.4 options in JRuby 10. The brand new JRuby launch runs full invokedynamic optimization by default, offering one of the best accessible efficiency on JRuby scripts and purposes with out passing extra flags. Earlier variations of JRuby ran by default in a “center tier” of optimization, utilizing invokeddynamic optimization solely for easy Ruby operations.