![]() |
#1 |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
![]()
Hello All,
I have assembled an installable package to install Lua5.1 on the Iliad. Lua is a scripting language. It is lean and mean, while being a full fledged and elegant language. It has a small memory footprint. The total install size is less than 1MB! It can do xml and network stuff. It is great to have it running on the Iliad :-) I'll post a nice example application later (a small webserver running on the Iliad). More details (and the sources for those who want to build the package themselves) can be found at https://dev.mobileread.com/trac/luailiad/wiki The package file can be download here: https://dev.mobileread.com/dist/hansel/luailiad/ Have fun! EDIT 20090404: new versions: luailiad-1.5.0, lgob-0.1.5 EDIT 20090917: new versions: lgob-iliad-0.1.7.ipk (based on lgob-9.09) Last edited by hansel; 09-17-2009 at 03:06 PM. |
![]() |
![]() |
![]() |
#2 |
Master of the Universe
![]() Posts: 54
Karma: 64
Join Date: Dec 2008
Location: Paris, France
Device: Irex Iliad 2/e
|
Well, well, well, I love it!
Thanks for bringing us Lua. I've got to know it when i switched from kde to ion3, and have loved it ever since. It is indeed an elegant & lean scripting language. Gotta install it right away! Thanks again, hansel. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Master of the Universe
![]() Posts: 54
Karma: 64
Join Date: Dec 2008
Location: Paris, France
Device: Irex Iliad 2/e
|
BTW, when you say it can do network stuff, what do you mean exactly?
I've been thinking about writing something in python to parse a pdf's doi (for scientific articles) and automagically download the corresponding reference in bibtex format in order to have a well organized paper database and also to create the manifest file accordingly (title, author, journal & year). Do you think it is possible with this release of lua? Thanks again. |
![]() |
![]() |
![]() |
#4 | |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
Here is how you would fetch a page: Code:
local http = require("socket.http") b, c = http.request("http://www.google.com/search?q=lua+iliad") file = io.open('/tmp/page.html', 'wb') file:write(b) -- b is the content file:close() print('status= ', c) -- 200=ok, 404=not found... Last edited by hansel; 01-17-2009 at 06:06 AM. Reason: added small example |
|
![]() |
![]() |
![]() |
#5 |
Fully Converged
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,171
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
|
Somehow unrelated, but I just wanted to add that a few caching features on MR's webserver go through Lua scripts. Those are every powerful and fast!
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Added posix library
The luaposix library contains Lua bindings for many handy Posix functions: access, basename, chdir, chmod, chown, crypt, ctermid, dirname, dir, dup, errno, exec, execp, fdopen, fileno, files, fork, getcwd, getenv, getgroup, getlogin, getpasswd, getpid, glob, hostid, kill, link, mkdir, mkfifo, pathconf, pipe, readlink, rmdir, rpoll, setenv, setpid, sleep, stat, sysconf, times, ttyname, unlink, umask, uname, utime, wait
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2008
Device: Iliad 2nd
|
Thanks Man for Lua package !
Lua I one of may favourite scripting languages ![]() I hope with nice UI library we can make a lot of usefull software for iLiad. Especially, Lua is so lightweight ! ![]() |
![]() |
![]() |
![]() |
#8 |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
![]()
Hi All,
![]() I finally (after a long search, lots of downloads, lots of compile attempts) found a gui toolkit for the Iliad: UIP. It has the following properties:
I've managed to port it to the Iliad. I'll make a decent package for it later, but I am so happy now that I wanted to let you know! I can feel the karma already ;-) Have a look here to see what this is all about...
I think that this toolkit (in combination with Lua and Antartica's xepdmgr) boost the development of small smart apps for the Iliad. Have fun! Last edited by hansel; 01-30-2009 at 05:03 PM. |
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Fascinating!!! You are really brilliant.
I know the difficulity because I tried to port PyGTK once. And I gave up. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2009
Device: iLiad
|
I've actually used this library before (I'm a big fan and frequent user of Lua), I'm interested in seeing an application running on the iLiad though; even if it is just the samples.
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I haven't tried to make a GUI program in LUA, but I have a question:
Can I access GDK and Pango lib (they are fundamental lib of GTK+) in LUA? Being able to access GTK widget is good, but I still need some function provided by GDK and Pango. Added: There seemed a Lua-Gnome project several years ago. But this project was stopped. Last edited by ericshliao; 01-31-2009 at 02:10 AM. |
![]() |
![]() |
![]() |
#12 | ||||
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
![]() If ported FOX once. https://www.mobileread.com/forums/showthread.php?t=28733. That was easy because it only depends on X11. I've also ported Ruby (easy) and the FOX binding FXRuby but it resulted in huge libraries (Full Ruby was a 6MB install, FOX about 5 MB), but the FXRuby lib was 16MB ![]() Quote:
Quote:
Quote:
Last edited by hansel; 01-31-2009 at 03:36 AM. |
||||
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2009
Device: iLiad
|
Yeah, I was after an example of the GUI running on the iLiad. I already know about the web-server
![]() I'd also like to know (empirically) how IUP works out in the refresh sense (as Minimo for example runs fine, but looks crap without decent refresh on eInk screen). |
![]() |
![]() |
![]() |
#14 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
I'm eager to try it... Being able to do scripted GUI on the iliad opens a lot of usefullness and easy experimentation. Wow again. |
|
![]() |
![]() |
![]() |
#15 |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Refresh will always be a bit ugly... with xepdmgr it will work without programming effort and a small delay (say 1-2 sec). without it the refresh must be programmed in the application.
|
![]() |
![]() |
![]() |
Tags |
gtk+, iliad, lgob, lua, networking, xml |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pandigital announce the black Novel | Nate the great | News | 0 | 08-18-2010 05:21 PM |
iLiad China iLiad users can get developer package. | ericshliao | iRex Developer's Corner | 35 | 03-20-2010 05:21 AM |
iLiad Announce: Glade4Lua, develop graphical apps for the Iliad | hansel | iRex Developer's Corner | 1 | 10-27-2009 05:00 PM |
Sony to announce colour e-book ? | markiehill | News | 11 | 08-22-2009 12:45 PM |
Proud to announce our new moderator! | Alexander Turcic | Announcements | 5 | 12-08-2003 11:18 PM |