[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  Programming
. -> [Folder]  General
. . -> [Subject]  Jscript, LUA, ???

Jscript, LUA, ???

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by FishOnSpeed   USA  (31 posts)  [Biography] bio
Date Mon 19 Nov 2007 02:15 AM (UTC)
Message
what is the difference and which is better for mush scripts?

i need to know which is more capable when it comes to writing scripts.

id appriciate any help that can be offered.

~FishOnSpeed
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #1 on Mon 19 Nov 2007 02:30 AM (UTC)
Message
Are you talking about using these languages to write MUSHclient scripts or to embed into a MUD server?

The languages are rather similar from a semantics standpoint (i.e. what their properties are) but personally I find Lua's syntax to be more enjoyable; Javascript is kind of a weird halfway point between too many languages. (IMO of course.) But it's not as if one language will let you do things that the other wouldn't.

One thing to keep in mind is that you are probably more likely to get help for Lua on this site than Javascript.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by FishOnSpeed   USA  (31 posts)  [Biography] bio
Date Reply #2 on Mon 19 Nov 2007 03:15 AM (UTC)
Message
i want to right scripts to use on a mud that i play using mushclient.

it sounds like lua would be the friendlier one to use.

~FishOnSpeed
[Go to top] top

Posted by KP   (24 posts)  [Biography] bio
Date Reply #3 on Mon 19 Nov 2007 03:33 AM (UTC)
Message
If you have any programming experience with any language, you should probably choose something that comes close to it (keep in mind that MC supports virtually anything that works with windows scripting API - VisualBasic, Perl, Python, etc.. probably even PHP).

Otherwise, go for something you wish to learn anyway.

Otherwise, go for something that is easy to learn - that would mean LUA, I guess.


There is no crucial difference between all the languages. In fact, 95% of every program or script will always be the logic, not the tools you use.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #4 on Mon 19 Nov 2007 03:40 AM (UTC)
Message
As a nitpick (sorry), Lua isn't an acronym, so it's written just Lua, not "LUA".

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by FishOnSpeed   USA  (31 posts)  [Biography] bio
Date Reply #5 on Mon 19 Nov 2007 03:42 AM (UTC)
Message
well i took 2 years of college java, but its been awhile since ive coded. and i dont particularly like java.
lua and java seem similar and i would like to learn something new.

most of my questions will be about making my scripts work with the client.

~FishOnSpeed
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Mon 19 Nov 2007 04:14 AM (UTC)
Message
Quote:

i need to know which is more capable when it comes to writing scripts.


In terms of capability, probably any script language will be adequate.

However to get questions answered quickly, I would choose Lua. There are some special features offered by MUSHclient which are only available to Lua (for example, getting style runs in a trigger.

Some of the frequent posters here use Lua these days, so you are more likely to get a quick response to a question if your script language is Lua.

Also, help for Lua is built into the MUSHclient help file, whereas help for other languages is in their separate help files.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #7 on Mon 19 Nov 2007 04:23 AM (UTC)
Message
Quote:
lua and java seem similar and i would like to learn something new.

I'm not sure what you mean by "similar" in this case; personally I would have said that Lua and Java (note: not Javascript) are rather different languages.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Mon 19 Nov 2007 05:08 AM (UTC)
Message
Quote:

One thing to keep in mind is that you are probably more likely to get help for Lua on this site than Javascript.


I agree with David here.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Mon 19 Nov 2007 05:09 AM (UTC)
Message
Quote:

personally I would have said that Lua and Java (note: not Javascript) are rather different languages.


They both have variables, loops, functions, that sort of thing.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #10 on Mon 19 Nov 2007 05:33 AM (UTC)
Message
Yes, but in that sense, almost every language used these days is similar. :-) So I was wondering which kind of "similarity metric" (if I may use such a term) was being used.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Mon 19 Nov 2007 06:21 AM (UTC)
Message
Quote:

Yes, but in that sense, almost every language used these days is similar. :-)


Yes, I was making a little joke. :-)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by FishOnSpeed   USA  (31 posts)  [Biography] bio
Date Reply #12 on Mon 19 Nov 2007 12:54 PM (UTC)
Message
from looking at code from both languages it looks to me like they are both set up, organized, and executed in similar mannners. i didnt say they were the same just similar.

but i guess your right ... going by that most current languages are similar.

i was very tired last night, and i dont mix well with code while im tired :)

~FishOnSpeed
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


24,229 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]