05-10-2015, 06:55 AM
fhntv24 Wrote:3. Beacos i want low memory usage, almost any scripting language wont be that good.
You'd be surprised how low the memory usage is. WorldEdit (one of the biggest plugins we have) uses around 1.6 MB in memory.
fhntv24 Wrote:3. Beacos i want low memory usage, almost any scripting language wont be that good.
(05-10-2015, 07:01 AM)fhntv24 Wrote: [ -> ]Also, will you implement new MC's nbt tags , such as noAI ? ( question is offtopic, but ... )
(05-10-2015, 07:05 AM)NiLSPACE Wrote: [ -> ](05-10-2015, 07:01 AM)fhntv24 Wrote: [ -> ]Also, will you implement new MC's nbt tags , such as noAI ? ( question is offtopic, but ... )
That's currently not possible. We're planning for a while now that you can give entities their own AI, pathfinding and more but it would require a big rewrite.
(05-10-2015, 06:51 AM)fhntv24 Wrote: [ -> ]1. It doesnt have "right" OOP with protected and private variables.It emulates enough of OOP for us to be usable. No-one really needs protected and private variables, and even that can be done in Lua, if you really want to.
(05-10-2015, 06:51 AM)fhntv24 Wrote: [ -> ]2. LUA is fast, but i saw page with performance comparisons and lua wasnt best in speed.Lua is considered one of the fastest scripting languages. And frankly, we haven't really seen a single instance of when Lua was too slow for us.
(05-10-2015, 06:51 AM)fhntv24 Wrote: [ -> ]3. Beacos i want low memory usage, almost any scripting language wont be that good.Lua actually runs on microcontrollers that have only kilobytes of RAM. It is extremely efficient in memory management, unlike other scripting languages.
Quote:No-one really needs protected and private variables
(05-10-2015, 06:51 AM)fhntv24 Wrote: [ -> ]Why not lua:
1. It doesnt have "right" OOP with protected and private variables. You can only make local variable, or named protected variable. Isnt problem for plugins , its more for API with other plugins ( if there would be something like that ? )
2. LUA is fast, but i saw page with performance comparisons and lua wasnt best in speed.
3. Beacos i want low memory usage, almost any scripting language wont be that good.
Its really isnt that big problems, but for me they are. Even not first problem ( i can learn new languages, that isnt a problem ) - but 2 second ones are. Again , not big problem for some one - but its big for me. If you dont wont implement C++ plugins - i can implement by myself beacos MCServer is open source
  It compiles each plugin into native code.  I'm not really sure how Lua is that hard though, it's an extremely flexible dynamically typed syntax.  One could also use setmetatable() for "classes".  I picked Lua up in about 2 days and ever sice, I've learned to prototype plugins in only a couple of hours.  A C++ interface seems kind of overkill as no current Lua plugin has even come close to hitting the limits of the interpreter in terms of speed, much less LuaJIT.