talira

The Ruby programming language on the JVM

open sourceEPL-2.0 OR GPL-2.0-only OR LGPL-2.1-onlyfree

JRuby is an implementation of Ruby on the Java Virtual Machine, so Ruby programs get the JVM's performance, real threading and access to the vast array of Java libraries. JRuby 10.1 targets Ruby 4.0 compatibility, with older lines for Ruby 3.4 and 3.1 still released. It is installed by extracting a binary archive and putting its bin directory on the path, with Windows installers that can bundle a JVM, through RVM, or as a complete .jar for embedding in Java applications. It is under a triple EPL 2.0, GPL 2 or LGPL 2.1 licence.

Problems it solves

  • run my Ruby on Rails app on the JVM next to our Java services
  • use Java libraries directly from Ruby code
  • Ruby threads that actually run in parallel on multiple cores
  • deploy a Ruby application as a jar to a Java application server
  • embed a Ruby scripting engine in my Java application

Features

  • Ruby 4.0 compatible (JRuby 10.1)
  • real native threading
  • calls Java libraries directly
  • runs on the JVM
  • Windows installers with or without a bundled JVM
  • complete .jar for embedding
  • jruby-jars gem

Alternatives

The same job

These do what JRuby does.

  1. TruffleRuby A high performance implementation of the Ruby programming language, built on GraalVM
  2. Fullstaq Ruby A server-optimised Ruby distribution: precompiled MRI packages built with jemalloc and malloc_trim.

Compare JRuby with the top 3