This is a naive idea at its infancy: Integrate this VM based code with native code. Allowing them to invoke each other. Some assumptions/limitations may have to be imposed to speed up the execution and data type conversion.