Creating Beautiful Charts with JRuby and JFreeChart – Charles Oliver Nutter – Java, Ruby, and JVM guy trying to make sense of it all
02-May-2025 13
I recently returned from RubyKaigi where I had the opportunity to sit down with members of the Japanese Ruby community and show them a little bit of JRuby. One of the items that came up a few times was the difficulty of utilizing external libraries from Ruby: if it’s a C library, typically you have to either write a C extension or do the extra work of writing up an FFI binding.
If the library is not implemented in C or Ruby, things get even weirder.
One example is the Charty library, one of the more popular options for generating beautiful chart graphics on Ruby. But Charty actually wraps a Python library called matplotlib, and the bindings for CRuby literally load Python into the current process and call it via Ruby C API calls which then make Python C API calls. The horror!.
Creating Beautiful Charts with JRuby and JFreeChart – Charles Oliver Nutter – Java, Ruby, and JVM guy trying to make sense of it all #ruby #rubydeveloper #rubyonrails #Creating #Beautiful #Charts #JRuby #JFreeChart #Charles #Oliver #Nutter #Java, #Ruby, #trying #sense #jruby https://www.rubyonrails.ba/link/creating-beautiful-charts-with-jruby-and-jfreechart-charles-oliver-nutter-java-ruby-and-jvm-guy-trying-to-make-sense-of-it-all