The Museum of HP Calculators

HP Forum Archive 16

[ Return to Index | Top of Index ]

Lua for the 49g+/50g
Message #1 Posted by hugh steers on 19 Nov 2006, 2:11 p.m.

Hi guys,

I've been porting the LUA programming language (www.lua.org) to the hp50g. I have have a working "alpha" release. So its a bit unfinished, but it works enough for me to write a few demos.

Right now you can get the lua.hp binary and demo progs from Voidware. Sorry, I havent packaged LUA as an application yet. you have to launch it from the ARMtoolbox.

also, i plan to upload the whole project on sourceforge next week in case anyone else would like the source code or like to help fix my bugs :-)

Warning: not tested (at all) except on my 50g, could explode and kill you and your kids/dogs/cats/hamsters/calculators. You're on your own, and have been warned.

good luck,

      
Re: Lua for the 49g+/50g
Message #2 Posted by the person formerly known as dot on 20 Nov 2006, 9:26 a.m.,
in response to message #1 by hugh steers

This is really interesting. I didn't think there would be enough RAM to write it without evil hacks. Please consider posting it to the newsgroup.

            
Re: Lua for the 49g+/50g
Message #3 Posted by hugh steers on 20 Nov 2006, 11:09 a.m.,
in response to message #2 by the person formerly known as dot

its pretty cool. get the hplua-0.1.zip alpha release and install the ARMtoolbox then the lua.hp program and run it. LUA has a small footprint. you can even compile and save LUA programs on the actual calculator.

try some of the demo programs like sunset.lua and sudoku.lua. here's a picture of my sudoku program solving a puzzle.

> dofile("sudoku.lua") > board(test14) -- prints out start position > solve(test14) -- solves the puzzle.

      
Re: Lua for the 49g+/50g
Message #4 Posted by Paul Dale on 20 Nov 2006, 4:35 p.m.,
in response to message #1 by hugh steers

Lua seems to work fine on my 49g+.

- Pauli

            
Re: Lua for the 49g+/50g
Message #5 Posted by hugh steers on 21 Nov 2006, 5:33 a.m.,
in response to message #4 by Paul Dale

i'm in the process of setting up http://hplua.sourceforge.net, but it won't be ready for a few days. There's still several known bugs in the alpha and some new features i'm working on for it.

i'm hoping to catalog the what's and not what's on the site. also, hpgcc has a library to access the 50g graphics, i'm hoping to start on a lua library that allows access to this in the language. which could be cool.

good luck,


[ Return to Index | Top of Index ]

Go back to the main exhibit hall