Programming with Lua

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

What's the scripting language of your choice?

Bash
2
18%
Csh
0
No votes
Python
3
27%
Perl
1
9%
Ruby
0
No votes
Lua
1
9%
C/C++
4
36%
Java
0
No votes
 
Total votes : 11

Programming with Lua

Postby solutionguy » Thu Jun 21, 2007 10:56 am

Dear All,

Please post any Lua (www.lua.org) Programming resources you know about. I see this language as a very simple alternate to the heavyweights that proves to be quick, easy and effective for a sysadmin.

If you are new to Lua, do consult http://en.wikipedia.org/wiki/Lua_programming_language before voting ....

Thanks.
chmod a-x /bin/chmod
solutionguy
Cadet
 
Posts: 7
Joined: Fri Jul 21, 2006 10:25 am
ICQ: 15986063
WLM: abbas_ahmed_76@hotmail.com
Yahoo Messenger: abbas_ahmed@yahoo.com
AOL: AbbasAhmed

Re: Programming with Lua

Postby lambda » Thu Jun 21, 2007 1:04 pm

solutionguy wrote: If you are new to Lua, do consult http://en.wikipedia.org/wiki/Lua_programming_language before voting ....
why before voting? your poll is about scripting languages of our choice. if someone hasn't used or heard of lua before voting, it's unlikely that they'll change their language of choice after reading the wiki page. i mean, language of choice implies something you actually use.

while lua is faster than some of the alternatives, its problem is that it doesn't have anything like this, or this (as far as i can tell). without a good set of ready-to-use modules (or libraries, or components, whatever you want to call them), you might have to do more work to solve a particular problem. for example, lua (at least, 5.0) doesn't have a regex implementation.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby solutionguy » Fri Jun 22, 2007 2:12 pm

I agree with you about shortage of modules/libraries for Lua, but I can recall Python and Ruby also started out thin on these. Keeping in mind the comparative age of Lua, it might grow from that aspect in the years to come.
chmod a-x /bin/chmod
solutionguy
Cadet
 
Posts: 7
Joined: Fri Jul 21, 2006 10:25 am
ICQ: 15986063
WLM: abbas_ahmed_76@hotmail.com
Yahoo Messenger: abbas_ahmed@yahoo.com
AOL: AbbasAhmed

Postby lambda » Fri Jun 22, 2007 2:42 pm

solutionguy wrote:Keeping in mind the comparative age of Lua, it might grow from that aspect in the years to come.
that depends on whether it's a design goal or not. ruby started out the same year as lua, by the way. python's only two years older (1991).
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby abdul_mateen » Thu Jun 28, 2007 11:37 pm

I think you are surely mistaken C/C++ are not generally scripting languages but they are generally real world langauges and other langugaes such as Perl and Python are built onto ANSI C.

Well! I donot think you can call C/C++ scripting languages they have much called compiled languages scripting languages generally are interpreted one.


Python is the best scripting language really best easy to program and maintain.I am learning it and writing some of the adminstrative applications.

Correct me if I am wrong!
Abdul Mateen,
Google Android Developer & Linux Administrator
Addictive Mobility,CA
www.addictivemobility.com.
abdul_mateen
Battalion Havaldaar Major
 
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
WLM: abdul_mateenkhatri
Yahoo Messenger: abdul_mateenkhatri
Location: Rampuria Mansion

Postby lambda » Fri Jun 29, 2007 11:05 am

perl and python are also "real world languages". their runtimes do not need to be implemented on c, by the way (see jython, pypy and jruby as examples).

many scripting languages are also compiled. it all depends on their implementation. perl and python are compiled, ruby isn't (at present; this will change soon).
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby abdul_mateen » Fri Jun 29, 2007 12:13 pm

So that's mean that there is not much different between C/C++ and the scripting languages.
Abdul Mateen,

Google Android Developer & Linux Administrator

Addictive Mobility,CA

www.addictivemobility.com.
abdul_mateen
Battalion Havaldaar Major
 
Posts: 267
Joined: Tue Nov 18, 2003 10:28 am
WLM: abdul_mateenkhatri
Yahoo Messenger: abdul_mateenkhatri
Location: Rampuria Mansion


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron