I see no reason for any sort of AI to be applied here.<p>There's an interesting guide on converting an interpreter into a static binary translator: <a href="https://gtoal.com/sbt/" rel="nofollow">https://gtoal.com/sbt/</a><p>It would be great to see this expanded into a JIT compiler (using a generic translated code management/caching and optimization framework).