MIR: A lightweight JIT compiler project - Red Hat Developer
23-Jan-2020 1641
For the past three years, I’ve been participating in adding just-in-time compilation (JIT) to CRuby. Now, CRuby has the method-based just-in-time compiler (MJIT), which improves performance for non-input/output-bound programs.The most popular approach to implementing a JIT is to use LLVM or GCC JIT interfaces, like ORC or LibGCCJIT. GCC and LLVM developers spend huge effort to implement the optimizations reliably, effectively, and to work on a lot of targets. Using LLVM or GCC to implement JIT, we can just utilize these optimizations for free. Using the existing compilers was the only way to get JIT for CRuby in the short time before the Ruby 3.0 release, which has the goal of improving CRuby performance by three times.
MIR: A lightweight JIT compiler project - Red Hat Developer #ruby #rubydeveloper #rubyonrails #lightweight #compiler #project #Developer #compiler #developer https://rubyonrails.ba/link/mir-a-lightweight-jit-compiler-project-red-hat-developer