Programming and Scripting :: Learning (murga)Lua
I've got some questions about learning murgaLua. Is it an easy programming language to learn, especially for somone who knows PHP well? Will it be worth learning it? (Functional enough?)
Do you know some sites where i can learn murgaLua through tutorials or so? Do you know some e-books about murgaLua?
I hope it won't be too hard to learn, cos then i can help DSL some more .
Lua is very easy to learn. As far as I can tell, it is quite basic compared to PHP, Perl or other popular scripting languages, but it seems that is intentional since it's designed to be a complement to other programming languages or embedded in other programs.
MurgaLua has, as far as I see, a fully fuctional Lua interpreter, and it includes some modules that handle some common things that Lua itself cannot do. Additionally it has the uncommon feature of having graphical widgets (FLTK) included, so it's easy to build interfaces for existing commandline applications as well as Lua apps.
Over the past several months I've been working on a package of demos that I hope will help people in learning how to use murgaLua. I visit the murgaLua forum daily, and regularly post the results of my tests there, as well as updates to the demos package
There are others there also who can help with things that are beyond my abilities. Some users are quite good with C and other programming languages, which can help in translating what you know in PHP to Lua.
is "murga-lua" the lua in dsl, or is it an extension ?
murgaLua is *the* Lua in DSL since about DSL 3.0 or 3.1
I believe it's pretty much compatible with proper Lua 5.1
I think the main difference is that murgaLua is not embeddable as proper Lua is, and is not available as a dynamic library.
There are probably 60 some lua and lua fltk scripts in DSL.
I started with Jay Carlson's LuaFltk which was a binding of Lua 4 and FLTK widget set. Jay no longer updates this. DSL was one of the first distributions to actually use Lua and Lua/Fltk as a standalone scripting language.
When John Murga wrote to me to inform me that he was going to do a new binding based on Lua 5 and FLTK. I was very happy and converted some 50+ scripts to murgaLua. John Murga has been keeping murgaLua updated with curent Lua versions as well as FLTK. His bindings also include sockets, luasqlite, lua filesystem, and xml.
His bindings are more closely aligned FLTK standards and I find his system very nice to work with.
Take a look at
$ ls -l /usr/local/bin/*.lua for just some of the Lua and murgaLua now being used in DSL.
Many times to study and modify from these examples will get you started. I have included murgaLua scripts from several users.
Explore, Learn, and have fun.