Combining this w/ a JIT gets you truffle/graal.
truffle is great, it's the most exciting tech in pldev domain to me. I'll just mention truffle has few other perks than just performance boost -- you get a debugger with a fairly small effort, and you get interop with other languages implemented using truffle (which does include fairly mainstream ones like python, js, and others).
If you are curious how this works in Truffle. Here are some docs:
https://www.graalvm.org/latest/graalvm-as-a-platform/languag...