Logic Machine Forum
Why LUA ?? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Why LUA ?? (/showthread.php?tid=2110)



Why LUA ?? - GSBP0 - 07.06.2019

Hello everyone!

Could you please explain to me in details why do we use LUA language instead of embedded C?
On the other hand, what is the hardware architecture embedded inside the spaceLYnk, is it based on ARM or Intel?


RE: Why LUA ?? - admin - 07.06.2019

Because Lua is much simpler, easier to debug and there is no need for the user to manage memory due to Lua's garbage collector. Since LuaJIT is used performance difference is minimal for most use cases. You can also call C functions by using FFI: http://luajit.org/ext_ffi.html


RE: Why LUA ?? - GSBP0 - 08.06.2019

(07.06.2019, 11:29)admin Wrote: Because Lua is much simpler, easier to debug and there is no need for the user to manage memory due to Lua's garbage collector. Since LuaJIT is used performance difference is minimal for most use cases. You can also call C functions by using FFI: http://luajit.org/ext_ffi.html

Thank you.