Andrew Lentvorski wrote: > And, in fact, some of the newer VM's are even moving away from > stack-based. Lua, IIRC, has changed from stack-based to > register-based VM and promptly picked up quite a performance boost. Heh. I've been playing with Lua lately. I'll write about it later.
The register-based VM did give it a performance boost, but it is worth noting that the Lua VM does not have a JIT, and so it gets a huge speed boost from anything that reduces the number of trips through the interpreter loop. Plus, without a JIT, the runtime doesn't do things like register allocation, which is part of the rationale for not bothering with registers in a VM (that, and if you run on a lot of platforms you have no idea how many registers you have to work with). --Chris -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
