3 ms·
One underrated way to jit is to write some code, spawn a compiler, then link to a shared object. Takes 2 mins to write and sidesteps a lot of complexity
by sesuximo 4y ago
One underrated way to jit is to write some code, spawn a compiler, then link to a shared object. Takes 2 mins to write and sidesteps a lot of complexity
- bogomipz 4y agoInteresting. Do you have any links that demonstrate this technique?
- pizza234 4y agoAn example is Ruby MJIT's: https://blog.heroku.com/ruby-mjit https://blog.heroku.com/ruby-mjit. I'm not a big fan of this strategy - as a matter of fact, Ruby's future (reference) JIT is a conventional JIT.
- sesuximo 4y agoI didn’t know Ruby did this - cool. I agree it’s not the most robust way to write a jit, but it’s prob the easiest