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

Possibly Adding Libraries?

Started by Noodle, 11 September 2012 - 07:58 PM
Noodle #1
Posted 11 September 2012 - 09:58 PM
Its more of a suggestion..
IK you can code API's and such.
Since its LuaJ I know somethings might not be compatible..
If there are any, or if its possible, could you post below?
Sxw #2
Posted 12 September 2012 - 03:36 AM
????????????? I have no idea what you are saying. Do you mean adding more nativer libs? I recall hearing cloudy saying that they were moving to native lua. (Yes, no more luaJ if this happens)
cant_delete_account #3
Posted 12 September 2012 - 04:20 AM
????????????? I have no idea what you are saying. Do you mean adding more nativer libs? I recall hearing cloudy saying that they were moving to native lua. (Yes, no more luaJ if this happens)
The regular Lua is in C, not Java, so if they did that they would have to find another thing like LuaJ or port it themselves. (which would take a while)
Sxw #4
Posted 12 September 2012 - 05:51 AM
*facepalm* Java is capable of running programs(like a lua binary…)
1lann #5
Posted 12 September 2012 - 02:59 PM
Native Lua is in C. Whereas LuaJ is in Java. Java cannot Run C programs. It has to be ported.
Xtansia #6
Posted 17 September 2012 - 10:48 AM
Native Lua is in C. Whereas LuaJ is in Java. Java cannot Run C programs. It has to be ported.

Java can use native libraries as long as you have a JNI interop,
If you couldn't use native libraries in Java, Minecraft wouldn't work…
1lann #7
Posted 18 September 2012 - 03:46 PM
Native Lua is in C. Whereas LuaJ is in Java. Java cannot Run C programs. It has to be ported.

Java can use native libraries as long as you have a JNI interop,
If you couldn't use native libraries in Java, Minecraft wouldn't work…

Whoops. I was thinking about having the entirety of Lua being interpertated within Java like LuaJ. I didn't think about java just executing The native Lua binary.