Re:Graal and Truffle could accelerate programming language d...
by vidarh on Tuesday July 19, 2016 @01:32PM
(#12123248)
Chris is also reasonably active here.
I've had the pleasure of discussing some of his jRuby work with him in the past (I occasionally plod along with own Ruby compiler in Ruby - it's nowhere near complete) and they've done a lot of impressive work to demonstrate how compiling Ruby into fast code is largely about assuming people will behave sanely (e.g. people won't usually give Fixnum#+ side-effects, or make it return weird stuff), but add fallbacks for when they do.
This is the big challenge with Ruby: The subset of Ruby that people actually tend to work in is largely very predictable and possible to compile efficiently, but there's a lot of stuff around the fringes that people expect to work on the very rare occasions that we use it.
https://youtu.be/b1NTaVQPt1E
Previous discussion
https://news.ycombinator.com/item?id=12062454