lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Monday 18 December 2006 14:05, Philippe Lhoste wrote:
> Luiz Henrique de Figueiredo a écrit :
> >
> Interesting. I didn't saw much Java programs to use Lua.
> I still wonder if rewriting Lua in pure Java is possible... (thus,
> no need for platform-specific versions).

It's certainly possible to implement any kind of VM (or even hardware 
emulation: ) in Java  - but VM over 
VM isn't exactly the most efficient solution in "instruction hungry" 

Some hybrid solution might work, sort of like a JIT compiler that 
issues Java VM code... Or a Lua compiler that generates Java 

Either way, Lua itself isn't the real problem here. It's the add-ons, 
implemented in C, C++ and whatnot; anything that isn't trivial to 
translate to Java. That is, "Lua over Java" might quickly turn into a 
really big project, if it's supposed to be a straight platform 
independent alternative to native Lua.

//David Olofson - Programmer, Composer, Open Source Advocate

.------- - Games, SDL examples  -------.
| - 2.5D rendering engine       |
| - Music/audio engine          |
| - Real time scripting         |
'-- - Rheology instrumentation  --'