This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Benny4298's profile picture

[1.4] More than just lua

Started by Benny4298, 05 May 2012 - 12:12 PM
Benny4298 #1
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! :)/>/>
BigSHinyToys #2
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.
Benny4298 #3
Posted 05 May 2012 - 02:57 PM
Thanks for your fast and detailed reply! :)/>/>
Benny4298 #4
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? :)/>/>
BigSHinyToys #5
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)
Benny4298 #6
Posted 05 May 2012 - 03:34 PM
Ok i think i have to find another tutorial about this, but thanks for your help.
Onionnion #7
Posted 05 May 2012 - 11:57 PM
What's the trouble? Don't know Lua?
Hawk777 #8
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).
Benny4298 #9
Posted 06 May 2012 - 02:16 PM
i know lua but i love java :)/>/>
Cloudy #10
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.