Learn extra at:
Ruby 4.0.0 additionally introduces ZJIT, a brand new just-in-time compiler supposed to be the following technology of YJIT. Constructed into Ruby’s YARV reference implementation, ZJIT is quicker than the interpreter, however not but as quick as YJIT. Builders are inspired to experiment with ZJIT, however perhaps maintain off on deploying it in manufacturing for now. Customers are suggested to remain tuned for Ruby 4.1 ZJIT.
Additionally in Ruby 4.0.0, Ruby’s parallel execution mechanism, Ractor, has acquired enhancements together with a brand new class, Ractor:port, to handle points pertaining to message sending and receiving, and Ractor.shareable_proc, to make it simpler to share Proc objects between Ractors. For efficiency, many inside information buildings in Ractor have been improved to scale back competition on a worldwide lock, thus leading to higher parallelism. Ractors now additionally share much less inside information, leading to much less CPU competition when working in parallel.
Ruby first emerged in 1995. Different options in Ruby 4.0.0 embrace the next:

