TruffleRuby 34 achieves full Ruby 3.4 compatibility, implementing all items from the CRuby 3.4 changelog including the `it` block parameter, improved stacktraces, new methods, and Happy Eyeballs v2 support. A new lazy method deserialization optimization reduces parsing time by up to 23%, with plans for lazy parsing via disk-cached Prism serialized format in a future release. The `Ripper` implementation has been replaced with `Prism::Translation::Ripper`, removing 77,000 lines of C code and delivering 20x–40x speedups by eliminating costly Ruby-C call overhead. The `StringScanner` pure-Ruby implementation has been moved into the strscan gem for easier updates.
Table of contents
Compatibility With Ruby 3.4Lazy Method DeserializationRipper is now using Prism::Translation::RipperTruffleRuby’s StringScanner Implementation in the GemMaking Hash Parallel, Thread-Safe and Fast at RubyKaigiGive it a TrySort: