Hacker News new | ask | show | jobs
by knowitnone 407 days ago
article complains about a ruby gem(Charty) calling a python library(matplotlib) yet author is running Ruby in Java so they can access some Java library!
3 comments

I don't even like Java/JVM, and I still think that is more reasonable than running a gem that embeds Python.
The Ruby code is already running on the JVM so utilizing the library isn’t calling out to another runtime to execute like you normally would have to in order to do something like this.
The whole point of the JVM is that languages don’t need to be limited to the low-level types C FFI forces you into.