YARV

YARV
DeveloperKoichi Sasada
Stable release
4.0.2 [1] / 16 March 2026 (16 March 2026)
Written inC,[2] Ruby
Operating systemCross-platform
PredecessorRuby MRI
TypeRuby Virtual Machine
LicenseRuby License
Websitewww.ruby-lang.org
Repositorygithub.com/ruby/ruby

YARV (Yet another Ruby VM) is a bytecode interpreter that was developed for the Ruby programming language by Koichi Sasada. The goal of the project was to greatly reduce the execution time of Ruby programs.

Since YARV has become the official Ruby interpreter for Ruby 1.9, it is also named KRI (Koichi's Ruby Interpreter), in the same vein as the original Ruby MRI, named in honor of Ruby's creator Yukihiro Matsumoto.

Performance

Benchmarks by rubychan.de showed significant increases in performance.[3] Benchmarks by Antonio Cangiano showed speed improvements over other Ruby VMs, with 1.9 on average four times faster than the original interpreter.[4][5] All evaluations comprised a mix of mostly synthetic benchmarks.

History

YARV was merged into the Ruby Subversion repository on January 1, 2007.[6] It was released as part of Ruby 1.9.0 on December 26, 2007,[7] replacing Ruby MRI.

See also

References

  1. ^ ""Ruby 3.2.1 Released"".
  2. ^ Sasada, Koichi (16 October 2005). YARV: yet another RubyVM (PDF). ACM, SPLASH Conference Proceedings, OOPSLA '05. p. 158. doi:10.1145/1094855.1094912. ISBN 1-59593-193-7.
  3. ^ "Benchmarks: Ruby 1.8 and Ruby 1.9". rubychan.de.
  4. ^ Cangiano, Antonio (2007-12-16). "The Great Ruby Shootout". November 2007 tests
  5. ^ Cangiano, Antonio (2009-02-07). "The Great Ruby Shootout (December 2008)". Archived from the original on 2008-12-11. Retrieved 2008-12-09.
  6. ^ Matsumoto, Yukihiro; Sasada, Koichi (16 February 2007). "The Ruby VM: Episode I". Gray Productions.{{cite web}}: CS1 maint: deprecated archival service (link)
  7. ^ "merge YARV announcement by Koichi Sasada". Archived from the original on 2012-09-04. Retrieved 2008-03-30.