New development environment (!!!)

News, happenings
Post Reply
Message
Author
User avatar
JohnMurga
Site Admin
Posts: 555
Joined: Wed 04 May 2005, 04:26
Location: Far to the east
Contact:

New development environment (!!!)

#1 Post 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.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post 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
Last edited by Lobster on Mon 14 Aug 2006, 09:15, edited 3 times in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

Wow, John, you sure have been busy!
I especially like the adaptation of the ide.

User avatar
JohnMurga
Site Admin
Posts: 555
Joined: Wed 04 May 2005, 04:26
Location: Far to the east
Contact:

#4 Post 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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post 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 . . .

:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
sbaguz
Posts: 52
Joined: Thu 07 Sep 2006, 09:26
Location: Italy

#6 Post 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:

tide
Posts: 56
Joined: Fri 13 Aug 2010, 04:33

#7 Post 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!

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#8 Post 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

tide
Posts: 56
Joined: Fri 13 Aug 2010, 04:33

#9 Post 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.

Post Reply