Perl on Handhelds? 6
Jeremy Pruitt asks: "I'm wondering if there is a way for me to do some perl scripting on a handheld device. I know there is no port for WindozeCE yet, but I also know there are a few BSD/Linux ports for handhelds. Can I run Perl on these ported versions of BSD/Linux? If so, does anybody recommend a handheld/OS combo that I can do some scripting on?"
Re:EPOC (Score:1)
I've been meaning to ask Slashdot the same question as Cliff for a while, but slightly broader. I would like to be able to hack code where ever I am, but I am not fussy about the language. I will cheerfully code in dhtml, python, perl, C, C++, java, asm, or whatever is available.
I was guessing that the psion would a good choice, due to the quality of both the keyboard and the OS [not meant as a dig at winCE: epoc32 is meant to be *really* good.]
Having a Java runtime is good, but you'll also need a compiler. Is there one? I've done some Java bytecode hacking, so I could probaby write one if there is a demand.
Do you (/anyone else) have any experience of writing code on a Psion, good or bad?
cheers, G
Re:Yes (Score:1)
What OS / hardware combinations have you tried out?
How easy was it to replace winCE?
is it *really* a viable platform for coding on the road?
I mean - I don't need a pretty IDE, I don't even need X, but I at least need multiple virtual terminals, so I can code on one and compile on another.
Any stories of experience doing this will be appreciated.
cheers, G
Yes (Score:2)
Re:Yes (Score:2)
Right away I was able to telnet from my pc to the unit and I realized that my crippled-Windows z50 was now a multiuser powerhouse. Not bad.
Never did. Replacing WinCE would mean a FlashROM upgrade (which is being considered: see z50 new ROMs!!! give me your opinions please. [wincecity.com] ). Instead, I have to use pbsdboot.exe to load/boot NetBSD when I want to switch from WinCE to it. This became a major frustration, along with the fact that, at the time (April 2000) no power management or screen-power-off functionality was available. This meant that I had to shutdown and power off in order to stop using the battery (or leave it plugged in -- but the screen never would/could shut off; not even using the buttons -- those are software triggers, not direct hardware controls). Perhaps later versions/builds are capable of power management. I used it for actual work. I write web applications using vi (html, dom, javascript, perl/mason, and a legacy procedural business scripting language). This setup worked nicely, except one thing: no power management, no sleep mode, no way to gracefully end a session and pick it up later. Eventually I started staying in WinCE using pocketWord -- it read my unix text files just fine -- which I still do. I have removed NetBSD from my CF card (but am willing to give it a go when the power management features are enabled).The z50's battery life (8 hours, honest), the 95% keyboard (quiet and easy to use), the trackpoint (personal preference over a slide-square, or whatever), the VGA-size monitor (just not outside without shade)...awesome. WinCE is good enough for a textfile coder (which is what I mainly do).
Oh, apache runs great on the HPCMIPS NetBSD port, as does perl and your favorite compiler. But, I didn't load the compiler b/c I didn't have enough diskspace.
I think it's viable - but needs ... power management so I can suspend a session to return the volleyball that just bounced over toward me, and maybe join in the game for a while...
Re:EPOC (Score:1)
There is a Java compiler implemented in Java in the works here [bu.edu].
And (according to the web page) a fully working one here [www.dms.at].
I THINK that both of these should run in the JVM for EPOC, but I suggest checking before running out and buying a 5mx (~$500, but well worth it) strictly for Java use.
The other thing to keep in mind is the limited memory on these devices. You may need to add a CF card to hold all of your development environment. YOU HAVE BEEN WARNED!
EPOC (Score:2)
Alternatively, most of the machines I listed (with the exception of the Revo and possibly the Osiris) come with a programming language editor and byte-code compiler built in. The language is called OPL32 (organizer programming language 32-bit). OPL is a relatively powerful language (even if it is interpreted), with the capability to expand (i.e., graphical printing functions, multi-page dialogs) via
The newer machines (NOT the Series 5, and maybe not the Revo or Osiris) can also run Java. Which may also meet your needs.
If you would like to learn more about programming the EPOC OS, you can download OPL and Java SDK's, and the included emulator, from the Symbian site [symbiandevnet.com] (you have to register to download, but it's free. It does run only under Windows, though). One additional note, the Perl port will likely NOT run under the emulator (compiled OPL will run under both, C++, will not). You have been warned.