I\'ve been developing a new scripting system for the Zaurus for a while now. I\'ve called it
zPocketScript,
and I\'m kind of hoping that it\'ll be a bit more useable for on the move development and prototyping than some other languages...
I\'ve got commandline versions of the interpreter for running scripts on the Zaurus or a desktop PC, a Qtopia GUI debugger version with all the usual stuff you\'d expect of a debugger (stack trace, single step, breakpoints, variable inspections, etc) and also a remote mode, so you can debug scripts with the Zaurus that are actually running on another machine (another Zaurus or a desktop).
The language itself uses my own ECMAScript interpreter, with plugin object libraries extra functionality (the standard core object\'s are in there already for String\'s, regular expressions, Array\'s, etc). Don\'t laugh \'til you\'ve tried it - ECMAScript/JavaScript is really a quite powerful OO language.
For example, a simple HTTP connection to my website can be coded up as:
craigsServer=new Host("angela1.data-uncertain.co.uk")
s=new Socket(Socket.PF_INET,Socket.SOCK_STREAM)
connected=s.connect(craigsServer,80)
if(connected)
{
s.writeln("GET / HTTP/1.0");
s.writeln("");
}
I\'ve also got some simple interface Objects for using the ZSurface library from ECMAScript as well.
It\'s reaching the point where it\'s probably at least a little useful to people, so I\'ll hopefully release (at least an initial version) in the next couple of weeks, but I\'d be interested to hear if anyone has some suggestions for useful object libraries.....the obvious one\'s I\'ve already done are File (file io), Host (simplifies DNS lookups), Socket (for network stuff).
Comments?