3 ms·
JRuby 9.2 already included some general improvements designed to help Graal optimize, and 9.2.x will continue that process. I have already landed logic in 9.2.1
by headius 8y ago
JRuby 9.2 already included some general improvements designed to help Graal optimize, and 9.2.x will continue that process. I have already landed logic in 9.2.1 that will "right-size" objects based on observed instance variables, and I'm hoping to land a 64-bit long/double version of Array that will reduce the cost of numeric algorithms that use arrays (e.g. matrices, image manipulation).
I don't know that we will really need to ever ship Graal; if you get OpenJDK 10+ you'll have it available. However we may at some point detect that Graal is available and turn it on for you. In the short term, the JAVA_OPTS env var is pretty simple to use, or just run on the community version of GraalVM that uses Graal JIT by default.
- kjeetgill 8y agoHey Charles! Since we have you here, can you clarify the differentiation between JRuby and TruffleRuby? Do they fit different niches? Is TruffleRuby parallel work that may eventually merged into or succeeded TruffleRuby?
- headius 8y agoTruffleRuby and JRuby have always been separate projects, but TR kinda "grew up" as part of JRuby for a couple years. Eventually we decided the goals were becoming too different so TR split back off into its own project. We still communicate, we share several support libraries, and I'm sure we'll mimic some of their optimizations just like they've mimicked some of our features, but there's not a lot of commonality between the projects anymore.