MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
ruby
Recherche

Ruby completes switch to Prism parser

vendredi 3 janvier 2025, 03:10 , par InfoWorld
 Ruby 3.4.0, and Ruby 3.4.1, updates to the longstanding dynamic, open source programming language, have arrived, with Prism now the default parser.

Ruby 3.4.0 was released December 25, Christmas Day, along with an update, Ruby 3.4.1, which merely changed the version number of the release. Ruby 3.4.1 is listed as the current stable version and can be downloaded from ruby-lang.org.

Features cited for the Ruby update include switching the default parser from parse.y to Prism. This serves as an internal improvement, with little change visible to the user, the Ruby development team wrote in a blog post announcing the release. In a change to the language, string literals in files without a frozen_string_literal comment now emit a deprecation warning when mutated. These warnings can be enabled with -W:deprecated or by setting Warning[:deprecated] = true. Also, block passing and keyword arguments are no longer allowed in indexes.

Ruby 3.4.0 and Ruby 3.4.1 follow the November release of Ruby 3.3.6, which brought minor bug fixes and stopped warnings on missing default gem dependencies that will be bundled gems in Ruby 3.5.

In other improvements to Ruby 3.4.0, aka Ruby 3.4.1:

Keyword splatting nil when calling methods is now supported.

it is introduced to reference a block parameter with no variable name.

The socket library now features Happy Eyeballs Version 2 (RFC 8305), the latest standardized version of an approach for better connectivity in many programming languages, in TCPSocket.new (TCPSocket.open) and Socket.tcp. This enables Ruby to provide efficient, reliable network connections, adapted to modern internet environments.

The YJIT compiler delivers better performance on most benchmarks on x86-64 and arm64 platforms. Memory usage has been reduced. For the Ruby API, RubyVM::YJIT.log provides access to the tail of the compilation log at run time.

Alternative garbage collector implementations can be loaded dynamically through the modular garbage collector feature.
https://www.infoworld.com/article/3631276/ruby-completes-switch-to-prism-parser.html

Voir aussi

News copyright owned by their original publishers | Copyright © 2004 - 2025 Zicos / 440Network
Date Actuelle
mar. 7 janv. - 19:55 CET