JRuby Meets JBang: A Hacky but Powerful Combination
2024-12-22
During the Christmas holidays, the author experimented with combining JRuby and JBang to leverage the performance of the JVM and the productivity of Ruby. While JBang doesn't officially support JRuby, a clever workaround using JBang's dependency management and Java's ProcessBuilder was employed. The result? A functional JRuby application incorporating Javalin, JDBI, SLF4J, and ruby-jwt, achieving CRUD operations on a SQLite database with JWT authentication. This hack demonstrates the potential of combining JRuby with Java ecosystem libraries, with performance validated via Apache Benchmark.
Development