9.4 C
New York
Saturday, January 13, 2024

Ruby 3.3.0 nears launch with new parser

Ruby 3.3.0, a deliberate replace to the favored dynamic language that contains a new parser, has reached the discharge candidate stage.

RC1 of Ruby 3.3.0 was introduced December 11. It may be accessed from ruby-lang.org.

Featured is the Prism parser as a default gem. Prism is billed as a conveyable, error-tolerant, maintainable, recursive-descent parser for the Ruby language. A C library, Prism can be utilized rather than Ripper.

Additionally featured in Ruby 3.3.0 is the Lrama LALR parser generator, which is meant to supply an error-tolerant parser for CRuby with minimal modifications to the CRuby parse.y file. Different highlights of Ruby 3.3.0 embody:

  • The pure-Ruby RJIT Ruby JIT compiler replaces MJIT. RJIT is at present experimental; YJIT must be utilized in manufacturing.
  • YJIT receives main efficiency enhancements over Ruby 3.2. Reminiscence utilization additionally has been improved in YJIT.
  • The M:N thread scheduler is launched.
  • For efficiency, outlined?(@ivar) is optimized with Object Shapes.
  • Rubbish collector efficiency has been improved.
  • Most core lessons now use Variable Width Allocation, notably Hash, Time, Thread::Backtrace, Thread::Backtrace::Location, File::Stat, and Technique. This makes these lessons quicker to allocate and to free, and reduces reminiscence use and heap fragmentation.

After the discharge of RC1, Ruby’s builders will keep away from introducing ABI (software binary interface) incompatibilities wherever doable. Predecessor Ruby 3.2.2, that includes safety fixes, was launched March 30.

Copyright © 2023 IDG Communications, Inc.

Supply hyperlink

Related Articles


Please enter your comment!
Please enter your name here

Latest Articles