Product Chat (Early Access) / [SOLVED] Lua verses C#?

Author
Message
CaptCanada
2
Years of Service
User Offline
Joined: 22nd Jun 2022
Location: Canada
Posted: 26th Oct 2022 15:09
Hi all

Just wondering if Lua was chosen for a specific reason over C# as it's scripting language?

Would it be a huge undertaking and possible breaking the engine if the team switched to C#?

Thanks!

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 26th Oct 2022 21:48
Lua is far superior basically.

I've been coding for over 45 years now and Lua is by far the best language I have ever used.
Been there, done that, got all the T-Shirts!
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 26th Oct 2022 22:13 Edited at: 26th Oct 2022 22:25
Quote: "Lua can be used with primary programming languages like C, C++, Java, C#, etc.. and other scripting languages like Perl and Ruby, further extending its usability. "

Even Google uses LUA, among others as well.

Edit: This looks interesting as well: https://dascript.org/
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 27th Oct 2022 12:01
Yes sorry that's not going to change I'm afraid.
No one ever really leaves.
PM
Zigi
15
Years of Service
User Offline
Joined: 5th Jul 2009
Location:
Posted: 13th Nov 2022 12:58
This post has been marked by the post author as the answer.
Quote: "Just wondering if Lua was chosen for a specific reason over C# as it's scripting language?"

Lua was chosen because its syntax is somewhat similar to the BASIC programming language that the lead developer liked for its simplicity and nostalgic reasons.
Also originally GameGuru was built on the DarkBasic Pro codebase and it had a Lua plugin already and required no effort to implement it.

Quote: "Would it be a huge undertaking and possible breaking the engine if the team switched to C#?"

Yes, it would require a lot of effort to add C# support but C# does not offer any benefits really. C# become popular only because of Unity and .NET but otherwise Lua is superior in every way. Lua is a very fast, simple yet very powerful and capable programming language.

PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Nov 2022 15:57
Quote: "Lua was chosen because its syntax is somewhat similar to the BASIC programming language that the lead developer liked for its simplicity and nostalgic reasons."


Lua is nothing like BASIC!

It is closest to C in fact, just much cleaner and more sensible.

Been there, done that, got all the T-Shirts!
PM
Zigi
15
Years of Service
User Offline
Joined: 5th Jul 2009
Location:
Posted: 13th Nov 2022 17:00 Edited at: 13th Nov 2022 17:25
Quote: "Lua is nothing like BASIC!"

Yeah, It is not my words. It was Lee Bamber the lead developer the CEO of this place who compared it to BASIC when he chosen Lua. He said the syntax is remind him of BASIC which he liked very much.

C programming
int a = 1;
if (a == 1){a = 2;}

Lua programming
a = 1
if a == 1 then a = 2 end

BASIC programming
a As Integer = 1
If a = 1 Then a = 2 End If
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Nov 2022 19:45
What does Lee know, he is only a black belt.

Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-12-21 17:53:27
Your offset time is: 2024-12-21 17:53:27