Bringing Ruby to the JVM: Making the Impossible Possible
summary
Eighteen years of work turns Ruby into a JVM citizen deployed at thousands of shops by rebuilding core pieces: a working REPL and Rails stack by 2006 (first request took ~30s until production mode), a bytecode JIT in 2007–08, integration with invokeDynamic that yields 2–4x speedups versus CRuby and up to ~15x on Graal, ports of Oniguruma as Joni and encodings via jcodings, native interop via jnr/ffi and Project Panama, and a 100,000-fiber demo on JVM virtual threads.
AI-written summary · about
chapters (20)
- 0:00Introduction and speaker background
- 4:55Programming languages as tools
- 7:43From Java to Ruby discovery
- 13:41Ruby on Rails excitement
- 16:53JRuby project origins
- 19:23Building JRuby's interactive console
- 21:51Ruby and Java integration
- 25:45First JRuby on Rails request
- 27:33Performance and JVM challenges
- 33:34Native libraries and FFI
- 36:45Project Panama and native interop
- 38:12JRuby's bytecode JIT compiler
- 40:00Invoke Dynamic and JVM optimizations
- 43:13IR compiler design
- 44:37Ruby fibers and virtual threads
- 48:48Project Loom integration
- 50:14JRuby today and production use
- 51:20Quick JRuby on Rails demo
- 53:46JRuby on Android
- 54:28Future of JRuby and call to action
