Running Optcarrot (faster) on my own Ruby.
summary
A new Ruby interpreter written in Rust targets Linux x86-64 and ships a register-machine VM plus a method-based JIT that writes inline trace data into 16-byte bytecode; it lacks C extensions and threads but supports Fibers and UTF-8. Perf, yjit-bench and objdump measure performance: CRuby interpreter ~60 fps on Optcarrot, YJIT ~300 fps, monoruby interpreter ~350–360 fps and with -opt reaches ~1000 fps, proving the emulator runs and JIT works.
AI-written summary · about
chapters (11)
- 0:00Introduction to monoruby
- 1:10What is monoruby
- 3:20Implementation details
- 9:02JIT compiler overview
- 13:16Integer addition in interpreter
- 16:36Reliability of monoruby
- 20:16Benchmarking tools
- 23:39Performance results
- 25:08Optcarrot benchmark
- 27:19Demo of Ruby code
- 28:54Conclusion and Q&A
related talks
22mInvariants in my own Ruby: some things must never change
41mPerformance Improvement of Ruby 2.7 JIT in Real World
44mKeynote
49mKeynote: Simple goal. Hard to accomplish
32mExperiments in sharing Java VM technology with CRuby
33mRuby the Hard Way: Writing Bytecode to Optimize Plain Ruby
48mQ&A with Matz
47mBetter Ruby
