Just read the Neko vs Lua comparison:

http://nekovm.org/lua

Thought you might find this of interest, since it could significantly
speed up Neko:

http://www.usenix.org/events/vee05/full_papers/p153-yunhe.pdf

ABSTRACT

Virtual machines (VMs) are commonly used to distribute programs in an
architecture-neutral format, which can easily be interpreted or
compiled. A long-running question in the design of VMs is whether
stack architecture or register architecture can be implemented more
efficiently with an interpreter. We extend existing work on comparing
virtual stack and virtual register architectures in two ways. Firstly,
our translation from stack to register code is much more
sophisticated. The result is that we eliminate an average of more than
47% of executed VM instructions, with the register machine bytecode
size only 25% larger than that of the corresponding stack bytecode.
Secondly we present an implementation of a register machine in a fully
standard compliant implementation of the Java VM. We find that, on the
Pentium 4, the register architecture requires an average of 32.3% less
time to execute standard benchmarks if dispatch is performed using a C
switch statement. Even if more efficient threaded dispatch is
available (which requires labels as first class values), the reduction
in running time is still approximately 26.5% for the register
architecture.

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to