5 posts
Posted 05 May 2012 - 02:12 PM
Are you able to add more programming languages, than only lua? Or are you able to program something like an OS that supports C++/Java?
That would be great! :)/>/>
992 posts
Posted 05 May 2012 - 02:32 PM
simple answer NO
more
complex answer lua is a interpreter language it is not converted to binary code and run it it interpreted by a interpreter. now there is a lua interpreter that is made for java Dan200 uses this interperter. If Dan wanted to add another programing language then he would need to find or make a new interpreter or compiler and then a virtual machine to run it on. this is a lot of work when lua work perfectly fine.
5 posts
Posted 05 May 2012 - 02:57 PM
Thanks for your fast and detailed reply! :)/>/>
5 posts
Posted 05 May 2012 - 03:04 PM
Another thing, i was searching for this interpreter but couldn't find it… Do you have link for me? If it's available in the Internet? :)/>/>
992 posts
Posted 05 May 2012 - 03:26 PM
http://www.lua.org/there is a downloads page (don't ask me how to use it as I haven't figured that out)
5 posts
Posted 05 May 2012 - 03:34 PM
Ok i think i have to find another tutorial about this, but thanks for your help.
26 posts
Posted 05 May 2012 - 11:57 PM
What's the trouble? Don't know Lua?
161 posts
Posted 06 May 2012 - 01:02 AM
You could always write an interpreter for another language in Lua (though the layering of CPU ISA / Java bytecode / Lua / other language would be getting a bit silly).
5 posts
Posted 06 May 2012 - 02:16 PM
i know lua but i love java :)/>/>
2447 posts
Posted 06 May 2012 - 04:26 PM
i know lua but i love java :)/>/>
You're not going to find a Java interpreter that you can just drop in - besides, Java doesn't work that way. The closest you could have is Javascript - but that isn't just a drop in replacement either.
Another language being added is not likely to happen.