English Why is Lua not a successful language?

5 replies
Goto Page
To the start Previous 1 Next To the start
Up
script favor
User
Offline Off
I wonder why LUA is not a successful language.That's a question I just need an answer to.
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif

Admin/mod comment:

Fixed your title / user Rainoth
10.03.19 12:30:36 pm
Up
DC
Admin
Offline Off
This topic is not directly related to CS2D. Moved to Off-Topic.
Also it's "Lua" (big L, small ua, because it's Portuguese for moon and NOT an abbreviation)

How do you define a successful language? Lua is used in tons of apps and games.

Just take a look at this...
https://en.wikipedia.org/wiki/List_of_applications_using_Lua

...and also this:
https://en.wikipedia.org/wiki/Category:Lua-scripted_video_games

It's not only a lot: There are also a lot of big and well known titles in these lists. With LÖVE there's even a game engine which entirely relies on Lua as language.

So in my opinion Lua is quite popular and "successful".

Of course it can't compete with the biggest languages like C(++), C# and Java. That's because it's a scripting language (slower) and I guess because there are less frameworks and less good IDEs for it. Moreover Lua itself does not have classic inheritance/OOP. It's possible with meta table stuff but that's a different approach and people are not used to it which leads to less acceptance.
Also it can't compete with JavaScript because JavaScript runs in every modern browser out of the box and is extremely optimized for that purpose.

I assume that it is one of the most popular scripting languages for games though (if not the most popular one). That's probably because it is easy to use/implement and because the Lua runtime code which needs to be included in projects is tiny, lightweight and doesn't require much memory.
edited 1×, last 10.03.19 12:38:41 pm
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
10.03.19 12:37:50 pm
Up
script favor
User
Offline Off
@user DC: Im gonna ask you , why don't you put a java language like minecraft bukkit plugins , it's also easier than lua you know, takes les s time.
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
10.03.19 12:44:42 pm
Up
DC
Admin
Offline Off
@user script favor: Java is much bigger and takes much more memory than Lua. It would make everything slower (especially loading times). Also it's way more complex and would most likely also lead to more security issues. So this wouldn't be a good idea. Additionally people who do not have the (huge!) JRE installed would have to do so just to run the game. With Lua this is not required because the Lua runtime environment is tiny and fully included.

The only reason why Minecraft is using Java for modding is because it was originally developed in Java. So all the Java stuff needed to be loaded anyway and simply using Java was the easiest approach.

Also I wouldn't say that Java is easier than Lua.
It depends on which language you learned first and used more.

Guess why all these games are using Lua instead of Java...
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
10.03.19 12:57:11 pm
Up
Talented Doge
User
Offline Off
Quote:
Im gonna ask you , why don't you put a java language like minecraft bukkit plugins , it's also easier than lua you know, takes less time.


Java was meant to be a language for all purposes. Lua was intended to be embedded.

You don't decide which language to use by simply saying XXX is using YYY.
Talented Doge
10.03.19 10:24:15 pm
Up
ohaz
User
Offline Off
user script favor has written:
... it's also easier than lua you know, takes les s time.
Lua and Java are basically equal in terms of being easy.
https://ohaz.engineer - Software Engineering
To the start Previous 1 Next To the start