On 11/04/2011 04:32 PM, Mouse wrote:
With the JIT
versions, [Lua i]s about as fast as C/C++.
While you don't quite say it, this
seems to be heading towards
embedding a compiler in the kernel. Is that a fair inference?
That would be an interesting idea. VMWare Tools uses a similar thing, if
when the guest boots up it doesn't have the right modules for the
current kernel, it will compile them at startup and load them.
I'm not sure if it's necessary to have compilers in the kernel, it may
make things more difficult and possibly dangerous in some ways.
A JIT kernel module might work, but what would it buy over a userland
JIT one? Or are you wanting a whole OS built from Lua?