Skip to main content

Tapping into Ruby from the JVM

Dan Allen (OpenDevise)
Ruby
D136

Ruby is a language focused on simplicity, expressiveness and productivity that offers a rich ecosystem of libraries.
JRuby is an implementation of Ruby on the Java Virtual Machine (JVM), a platform well-known for its abundance of libraries, languages and tools.
You see yourself as a pragmatic, versatile programmer who wants to make the most of what open source has to offer.
Does it make sense, then, to tap into Ruby from Java and/or other JVM languages so you can experience the best of both worlds?
Absolutely!

In this presentation, we’ll explore several ways to invoke Ruby from Java and vice-versa, including how variables are transferred, how to adapt to data types that only exist in Ruby, how to create Java interfaces to interface with Ruby code and, finally, how to bundle Ruby Gems alongside Java classes in a jar file for publishing this type of application to a binary repository.
As a practical example, we’ll study how this integration is achieved in AsciidoctorJ, a library that provides a Java API to the Ruby-based documentation processor, Asciidoctor.

With the diversity and innovation in the Ruby ecosystem and the popularity of polyglot programming on the robust and efficient JVM, Ruby and the JVM make a great fit.
You’ll leave the presentation with the knowledge you need to integrate Ruby and RubyGems into your JVM-based application and the opportunity to benefit from the productivity boost Ruby brings.

Photo of Dan Allen

Dan Allen

OpenDevise

Dan is an open source advocate, community catalyst, software generalist, author and speaker. Most of the time, he’s hacking with some JVM language. He leads the Asciidoctor project and serves as the community liaison for Arquillian. He builds on these experiences to help make a variety of open source projects wildly successful, including Asciidoctor, Arquillian, Opal and JBoss Forge.

Dan is the author of Seam in Action (Manning, 2008) and has written articles for NFJS, the Magazine, IBM developerWorks, Java Tech Journal and JAXenter. He’s also an internationally recognized speaker, having presented at major software conferences including JavaOne, Devoxx, OSCON, NFJS / UberConf / RWX, JAX and jFokus. He’s recognized as a JavaOne Rock Star and Java (JVM) Champion.

After a long conference day, you’ll likely find Dan geeking out about technology, documentation and testing with fellow community members over a Trappist beer or Kentucky Bourbon.