Page 1 of 1

New development environment (!!!)

Posted: Sat 12 Aug 2006, 13:19
by JohnMurga
Hey

There was a hidden feature in the last version of MeanPuppy.

This is what I intend to become the main development language for
MeanPuppy and many of my smaller Linux projects ...

It's murgaLua (!)

Read more here :

http://www.murga.org/devPages/murgaLua/index.html
http://www.murga.org/devPages/murgaLua/ ... 0.1.tar.gz

(the name is unfortunate, but I couldn't think of anything better)

My current travels haven't allowed me to dedicate the time I would
like to it, but I think it is about ready for an initial release.

If you do the following in MeanPuppy :

Code: Select all

ls /usr/sbin/*.lua
You'll see a series of test scripts, these where thrown in there
quickly and include a buggy initial version of the PuppyWizard.

However, they do all run and the version of MurgaLua in MeanPuppy
is the one I am releasing today.

Enjoy and please let me know what you think.

I know it needs a little work.

Cheers
JohnM

PS : Won't see any feedback for a couple of days as I'll be in the air.

Posted: Sat 12 Aug 2006, 14:00
by Lobster
Image

:)

Very interesting John (and fly safely)

I am within half an hour, hacking your code to create this very useful fish counter . . .
Anyone with real programming skill should check this out

DSL uses Lua - maybe we can pick up some script and tips . . . The Lua forum is very friendly. I am actually quite excited by this because Lua is small - extensible with C and an interpreted language similar to Python and Ruby. It also has a heavy game creator contingent . . .

. . . OK I better try and write something in Lua - "Hello world" is usually my limit

for those of you attempting the tutorial
the command is
/usr/bin/murgaLua helloWorld.lua

not just bin
bin/murgaLua helloWorld.lua
for "hello world"

success - I am a Lua programmer (settle down that cructacean)

Update - actually this is incredible
Wanna start programming check out what John has done - a complete tutorial. He has created an IDE (Integrated Development Environment)
Also found this:
"The lua scripting langauge, and tklua adding Tk support to lua, is an external package." in Puppy News for 2004 - was this rleased as an unleashed package?

Thanks John :)

Wiki page here . . .
http://puppylinux.org/wikka/LuaProgramming

Posted: Sat 12 Aug 2006, 15:24
by BarryK
Wow, John, you sure have been busy!
I especially like the adaptation of the ide.

Posted: Tue 15 Aug 2006, 11:47
by JohnMurga
Just back from Crete, in Brussels right now :-)

Anyway, murgaLua is also based on the cutting edge Lua (5.1.1), and has very good FLTK support which I believe puts it head an sholders above what's out there right now.

Now what I need is feedback from people trying to use it so that I can improve it further.

Cheers
JohnM

Posted: Tue 15 Aug 2006, 12:35
by Lobster
Hope you are having fun travelling. Sure you are ;)

I agree with Barry - the IDE is neat.
I also liked your examples.

Trouble is you are a smart cookie and
I am just not designed to program.
(lack of brain cells)

What you have done so far works.
I followed and compiled -
I got as far as the 'create a simple chat prog'
It worked. I printed the code and stared at it. And stared.

What did it mean?

Lua itself is faster than Python so I may spend
more time with it.

Python learning is on hold because the Puppy implementation
does not have Idle, an IDE or the complete libraries.
I was using Python in Windows.
Nothing is more annoying then 90% of a language. I want it all.

I think your tutorial was excellent. It certainly is worth developing.
The Ide was a little confusing but it worked and the LUA code generated was simple and straightforward.

The name is fine
but I would also suggest "Ooh La Lua" or "Lua More" or "Ola Lua"

DSL has (IMO) made a wise decision to adopt LUA and has some
programs that use it - for example a save you settings online component . . .

Maybe we can collaborate with DSL and/or make use of that
or other code . . .

:)

Posted: Wed 17 Jan 2007, 10:02
by sbaguz
I discovered MurgaLua only yesterday: it's fantastic!!! :D Thanks again John!

Only an information for people trying to use it on Puppy 2.02 (like me): the libsqlite3.so.0 is missing and murgaLua bin doesn't work.
Download this, unrpm the needed libraries to /usr/lib and all works fine.

:wink:

Posted: Sat 01 Oct 2011, 16:55
by tide
Can't for the life of it find out how to get lua to work on Puppy 4.2.0.
Downloaded and extracted the Tarball to /usr/local/bin, went fine.
Then tried to start Lua from the console but it complained about a missing library libredline.so.6 Did a search for that and came up with libreadline6_6.0-5_i386.pet from here.
Seems to have worked.
Now Lua complains about /lib/libc.so.6: version GLIBC_2.7 and GLIB_2.11 not being found. Where can I get them?

ldd libc.so.6
/lib/ld-liux.so.2 (0xb7e76000)
linux-gate.so.1 = (0xffffe000)

#ldd lua
./lua: /lib/libc.so.6: version 'GLIB_2.7' not found (required by ./lua)
./lua: /lib/libc.so.6: version 'GLIB_2.11' not found (required by ./lua)

Help appreciated!

Posted: Sun 02 Oct 2011, 03:22
by seaside
tide,

You can download a .deb file from here-
http://ftp.de.debian.org/debian/pool/ma ... 0_i386.deb

Then you'll need to convert the .deb file to a pet file -
http://murga-linux.com/puppy/viewtopic. ... 36&t=39756

You should be all set after installing the pet file.

Cheers,
s

Posted: Sun 02 Oct 2011, 07:56
by tide
Thanks a million, worked! Typing "lua" at the command line resulted in an "illegal instruction", argh. Another look and it dawned on me: "murgaLua" (cap sens) and I'm up and running.