news.volyx.in

Ruby 3.1 (ruby-lang.org)

501 points by sebiw · 1729 days ago · 70 comments on HN

Article summary

Ruby 3.1 has been released, introducing several new features, including an experimental in-process JIT compiler called YJIT, a new debugger, and improved error handling. The release also includes updates to the language, such as the ability to omit values in hash literals and keyword arguments. Additionally, the standard library has been updated, with some default gems now being bundled gems. The release aims to improve performance and usability of the Ruby programming language.

Main themes

  • Ruby 3.1 release
  • YJIT compiler
  • New syntax features
  • Standard library updates
  • Performance improvements
  • Readability and usability

What commenters say

  • The new YJIT compiler has the potential to significantly improve the performance of Ruby applications, but its support for different CPU architectures is currently limited.
  • The introduction of the new syntax for hash literals and keyword arguments is a welcome change, but may take some time to get used to.
  • Some commentators are disappointed that the new syntax does not follow the same shorthand as JavaScript.
  • The removal of some default gems and their replacement with bundled gems is seen as a positive step towards streamlining the Ruby standard library.
  • The new debugger and error handling features are expected to improve the overall development experience for Ruby programmers.
  • There are differing opinions on the usefulness and readability of the new syntax for hash literals and keyword arguments.
  • Some commentators are concerned about potential inconsistencies and ambiguities in the new syntax.