4 ms·
Code generators can, for some problems, write code that's faster than hand-written code simply because the sheer complexity of the result is pretty much impossi
by rossjudson 13y ago
Code generators can, for some problems, write code that's faster than hand-written code simply because the sheer complexity of the result is pretty much impossible to handle "in yer brain".
This kind of highly problem-specific optimal code-building is out of scope for any kind of JIT, including luaJIT.
Have a look at Dan Amelang's jitblt:
http://www.vpri.org/pdf/tr2008002_jitblt.pdf http://www.vpri.org/pdf/tr2008002_jitblt.pdf