Original Post
I have recently completed a scripting language and now i am working on the optimizer. The way i am doing it is check for patterns of instructions and replace them with a simpler equivalent, it's working very very good, but.. Isn't there a way of optimizing using AI? The only methods i've seen so far are simple "if this operation=x and last=y, replace with z". Wouldn't it be better something like give the system the behavior of all opcodes and it would then optimize completly using some AI technique. Is there any research into this? I couln't find any.