A few weeks ago, Takashi Kokubun, one of the people working on the new just-in-time compilers being developed for Ruby, asked me about how TruffleRuby was able to detect if optimised code that is already running was no longer valid without any branching. This blog post explains what he is asking about, how Ruby implementations currently solve the problem, the technique TruffleRuby uses to solve th

