news.volyx.in

Ruby 4.0.0 (ruby-lang.org)

758 points by FBISurveillance · 210 days ago · 191 comments on HN

Article summary

Ruby 4.0.0 has been released, introducing new features such as Ruby Box and ZJIT, a new just-in-time compiler. Ruby Box provides separation of definitions, allowing for isolated monkey patches and loaded libraries. The release also includes improvements to Ractor, a parallel execution mechanism, and various core class updates. Additionally, the release promotes Pathname to a core class and updates Unicode to Version 17.0.0.

Main themes

  • Ruby 4.0.0 release
  • Ruby Box
  • ZJIT compiler
  • Ractor improvements
  • Core class updates
  • Type checking and safety

What commenters say

  • The release of Ruby 4.0.0 is a significant improvement, but some users are still waiting for better support for type checking and safety.
  • Ruby Box has the potential to be a useful feature, but it is still experimental and needs more development.
  • Some users believe that Ruby's lack of strong typing is not a major issue and that the language's dynamic nature is one of its strengths.
  • Others argue that Ruby's performance is not a major concern, as it is still faster than Python, and that its ecosystem and ease of use are more important factors.
  • There is a need for better tooling and support for type checking in Ruby, with some users finding Sorbet to be useful but not widely adopted.
  • The use of Ractor and Fiber is still not widespread, and some users find the API to be confusing and difficult to use.
  • Some users appreciate the gradual typing approach offered by Sorbet, which provides additional safety without requiring a complete overhaul of the language.
  • The choice of Ruby as a programming language is often made despite its lack of strong typing, with some users valuing its ease of use and flexibility over type safety.