Page 1 of 1

Minetest - scripting support...

PostPosted: Fri Feb 20, 2015 23:07
by Tarmik
Hi !

Have you considered other alternatives for scripting languages besides lua - for example:
1. C# + managed C++ clue layer.
2. cling / clang C++ scripting.

As I understand 1 is not so good for linux since managed C++ extensions are simply not available on linux, only on windows platform. But may be I'm mistaken / outdated ?

As for 2 - I understand that clang does not 100% support all microsoft permutations for C++ language extensions (microsoft specific compiler extentions), also cling architecture is heavily based on C++ templates - which does not makes it easy to use in your own code. But this can be workarounded by simplifying headers and API interfaces, and avoiding standard template library if not needed.

Re: Minetest - scripting support...

PostPosted: Sat Feb 21, 2015 10:31
by Calinou
C++ modding comes with its own problems I would rather avoid. Interpreted languages are always a better extension language than compiled languages.

Re: Minetest - scripting support...

PostPosted: Sat Feb 21, 2015 13:43
by Krock
I think Lua is good enough for the moment.

Re: Minetest - scripting support...

PostPosted: Thu Mar 05, 2015 02:18
by TG-MyinaWD
Krock wrote:I think Lua is good enough for the moment.

+310,000,000,000!
Lua is an very accurate and very fast. And It maybe not a good idea change the mods script language since then Everything will be needing be rewrite. And I don't feel like trying learn a new way to mod. I am use to how add new stuff.

But, Lua will be a great language use for a longtime.

Re: Minetest - scripting support...

PostPosted: Thu Apr 02, 2015 13:33
by Hybrid Dog
Alt. Tester wrote:Lua is an very accurate and very fast.

lua isn't very fast l think
This could be a lot faster and is lua with…
http://terralang.org/

Re: Minetest - scripting support...

PostPosted: Fri May 01, 2015 22:03
by I~=Spam
Hybrid Dog wrote:
Alt. Tester wrote:Lua is an very accurate and very fast.

lua isn't very fast l think
This could be a lot faster and is lua with…
http://terralang.org/


Ummm... no not really. Minetest uses luaJIT. and terralang is actually just a wrapper around luaJIT for compiled functions. It might be able to be slightly faster but not by much because luaJIT compiles lua code as well. Terra just allows knowing the type of variables ahead of time. But again, it won't be much faster. It is silly to support C/C++ IMO because it really won't add much more speed compared to luaJIT. LuaJIT approaches the speed of C already. It might be surprising, but luaJIT is actually a lot faster than even Java.