Minetest - scripting support...

Tarmik
New member
 
Posts: 8
Joined: Wed Feb 18, 2015 21:56

Minetest - scripting support...

by Tarmik » Fri Feb 20, 2015 23:07

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.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Minetest - scripting support...

by Calinou » Sat Feb 21, 2015 10:31

C++ modding comes with its own problems I would rather avoid. Interpreted languages are always a better extension language than compiled languages.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Minetest - scripting support...

by Krock » Sat Feb 21, 2015 13:43

I think Lua is good enough for the moment.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
TG-MyinaWD
Member
 
Posts: 355
Joined: Thu May 08, 2014 21:22
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: Minetest - scripting support...

by TG-MyinaWD » Thu Mar 05, 2015 02:18

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.
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: Minetest - scripting support...

by Hybrid Dog » Thu Apr 02, 2015 13:33

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/
 

I~=Spam
New member
 
Posts: 9
Joined: Fri Apr 18, 2014 16:17

Re: Minetest - scripting support...

by I~=Spam » Fri May 01, 2015 22:03

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.
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 21 guests

cron