What is new in Ruby 3.3Ruby 3.3 boasts performance boosts (faster YJIT, M:N threads), a pure-Ruby JIT compiler (RJIT), a new parser (Prism), developer-friendly features in IRB, and multiple bug fixes.
Performance Gains in Ruby 3.3- String.dup vs. String#+Ruby 3.3 optimizes String.dup to match the speed of String#+, allowing developers to choose based on preference without sacrificing performance.
Ruby 3.3 Implements Range#reverse_each Method For Very Large or Beginless Ranges And Error Handling For Endless RangesRange#reverse_each can now process beginless ranges with an Integer endpoint and raises TypeError for endless ranges.
Ruby 3.3 fixes duplicate keyword argument warning bugRuby 3.3 fixes inconsistent warnings for duplicate keyword arguments
Ruby 3.3 Introduces Range#overlap? methodCompare two ranges and see if they overlap each other. overlap? returns true if two ranges overlap each other, otherwise false.
Ruby 3.3 resolves the Range#size bug for rational endpointsRuby 3.3 addresses a bug in the Range#size method related to rational endpoints, ensuring accurate counting. Learn how this fix enhances functionality and resolves issues in working with ranges.