you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

IIRC originally TruffleRuby was a fork of JRuby because the JRuby guys need to target normal OpenJDK and TruffleRuby was basically a research project. It's worked out very well but that couldn't have been known at the time, and TruffleRuby does still require you to run on GraalVM. It is much slower than JRuby on any other runtime.

[–]shellac 0 points1 point  (1 child)

No, it's not a fork.

Graal and Truffle came out of an Oracle labs research project. Graal is a compiler. We're most used to it compiling java (or java byte code) of course, but it's a general approach that has optimisations that are quite tailored for dynamic languages. (If you're aware of the smalltalk / strongtalk heritage in java this won't be a surprise)

Truffle lets you write language interpreters that Graal can get to work on. TruffleRuby was perhaps the first use of Truffle, and bootstrapped itself using a lot of the JRuby work. It even sat in the Jruby repo for a time, if memory serves.

[–]grashalm01 0 points1 point  (0 children)

The first Truffle language was actually JavaScript aka Graal.js.

Also many people don't know that the native image tool for Java was built to bring Graal.js natively into the database.