Hasty Briefsbeta

Bilingual

TruffleRuby 34: Ruby 3.4 Compatibility, 23% Faster Parsing, New 20x Faster

9 hours ago
  • #Performance Optimization
  • #Prism Integration
  • #Ruby 3.4 Compatibility
  • TruffleRuby 34 introduces full compatibility with Ruby 3.4, including new methods, improved stack traces, and network support.
  • Lazy method deserialization has been implemented, speeding up parsing by up to 23% and planning future lazy parsing optimizations.
  • Ripper now uses Prism::Translation::Ripper, removing 77,000 lines of code and achieving 20x to 40x faster performance.
  • StringScanner's implementation has moved to the strscan gem, enabling easier updates and compatibility with new gem features.
  • A talk on optimizing Hash for parallelism, thread safety, and speed is scheduled for RubyKaigi 2026, showcasing TruffleRuby's advancements.