Cuberite Forum
More scripting languages? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: More scripting languages? (/thread-2270.html)



More scripting languages? - DeprecatedLuke - 12-24-2015

Will there be more than one scripting language? Not really a fan of LUA, will we be available to use c++ to code plugins?


RE: More scripting languages? - bearbin - 12-24-2015

Try a search for previous discussion. The short answer is no, unless you are willing to dedicate time to develop it and then maintain it for the foreseeable future.


RE: More scripting languages? - LogicParrot - 12-24-2015

You could simply edit the source code as an alternative to C++ plugins. But that would be much harder than learning and using Lua.


RE: More scripting languages? - worktycho - 12-24-2015

Also, building dynamically loadable c++ systems for a multiplatform system with binary distribution is basically infeasible. The ABI is to unstable. The only way to do it reliability would be to use C as a binding layer. So unless you want to build a system that translates tolua++ binding instructions to C interop stubs, and build a copy of the manual bindings we are not likely to get c++ plugins. If its performance you want the best strategy is to get the hot loops integrated into the server core, and help with luajit integration.


RE: More scripting languages? - sphinxc0re - 12-24-2015

LuaJIT would be a huge improvement when it comes to performance. The server would then need a lot more RAM for plugins but I think it would be ok


RE: More scripting languages? - LogicParrot - 12-24-2015

(12-24-2015, 09:19 AM)SphinxC0re Wrote: LuaJIT would be a huge improvement when it comes to performance. The server would then need a lot more RAM for plugins but I think it would be ok

We aren't suffering performance issues due to Lua's speed. And I remember Xoft's challenge.


RE: More scripting languages? - NiLSPACE - 12-24-2015

We already tried LuaJIT thanks to DiamondToaster, but the performance improvements weren't what we (or at least I) was hoping for: https://forum.cuberite.org/showthread.php?tid=1834&pid=19494#pid19494