Replies: 3 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.
-
|
If someone has too much time, could a "hello world" example + mini-tutorial be added to the wiki, if this is the case in regards to jruby + GraalVM? Can we package commandline things written for jruby into GraalVM? How about java-swing applications - in jruby this works very well, whereas in GraalVM I have read that it does not (yet) do. There are so many questions to be had and I am not entirely sure how easy it is to test it. I myself feel barely past the newbie stage in regards to jruby actually, though I do also think I know quite a lot about ruby so far. Searching for google yields so many crap results these days ... finding information became very difficult. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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