Replies: 2 comments
-
Disclaimer: I'm working on TruffleRuby. GraalVM (the distribution) is a JVM & JDK, so JRuby should work fine on GraalVM, although I have not tried it. If you plan to use Graal.js (GraalVM's JavaScript), then there are significant advantages if you want any kind of interoperability between Ruby and JS, as that's much easier to do with 2 GraalVM languages and a lot faster too. |
Beta Was this translation helpful? Give feedback.
-
@spark08 JRuby runs fine on GrallVM. For some numeric benchmarks it can run quite a bit faster (the escape analysis works better for some things like our fixnum impl -- if you want to put it in best light disable our fixnum cache (-Xfixnum.cache=false)) but in general it is similar in speed to a hotspot-based JVM. Depending on the format of how you are storing formulas and the need for isolation good ole rhino may be the fastest to startup but not be the fastest to actually execute (e.g. very short-lived JS envs coming and going). If your formulas exist in a JS runtime for longer period of time then using another JS impl probably will work better for you (warmup will continue to yield faster executing code). |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am unsure if this was asked before but could not find it in the search. What are the plans for jRuby with regards to GraalVM? Is it currently supported or should one use OpenJDK for jRuby and TruffleRuby for GraalVM?
Current company uses Java as main programming language, Javascript for clients to write formulas and jRuby for supporting tools.
Java and Javascript(using now deprecated Nashorn) are being run on Oracle JDK 8 and so is jRuby.
Beta Was this translation helpful? Give feedback.
All reactions