3 ms·
> nothing is "trivially easy" when it comes to JIT'ing Ruby First of all, I'm not JIT'ing Ruby. Secondly, a lot of things are "trivially easy" when it comes to
by vidarh 12y ago
> nothing is "trivially easy" when it comes to JIT'ing Ruby
First of all, I'm not JIT'ing Ruby. Secondly, a lot of things are "trivially easy" when it comes to compiling Ruby - even ahead of time. I know, because while there's lots of outstanding bits, I am compiling a reasonable subset, and I understand the remaining tradeoffs well enough to know where the pitfalls are - it's by no means my first compiler
> The point is that A LOT of people have ALREADY done this
A lot of people have done this, but despite decades of history of optimisation of dynamic languages, most of them appears to not have bothered with even a cursory look at the literature.
In terms of JIT, the Truffle backend for JRuby is a good example of the difference actually applying modern techniques makes.