2005-01-12-0128Z


MrCreditRepair.biz will fix your credit rating!

I'm working on another port of the program, this time to the iPAQ, and this time using Ewe. It's a pretty cool little VM, similar to Java, but looks like it's more portable than other VMs, and it's still under active development. Ever tried to locate the Pocket PC runtime of Sun's PersonalJava? An exercise in futility. A lot of others, including HP's, have bitten the dust too. The Wabas don't have ServerSockets, so those are out.

Ewe does things right, in some cases, where even Java falls short. Java's puritanical distrust of any outside pollutants causes it to shun the system's environment variables unless you specifically pass them in:

jcomeau@USER ~/src/java/com/jcomeau/test
$ cat prop.java
public class prop {
 public static void main(String[] args) {
  for (int i = 0; i < args.length; i++) {
   System.out.println(args[i] + ": " + System.getProperty(args[i]));
  }
 }
}

jcomeau@USER ~/src/java/com/jcomeau/test $ java prop PATH PATH: null

jcomeau@USER ~/src/java/com/jcomeau/test $ java -DPATH=test prop PATH PATH: test

However, Ewe will pass in the environment so you can retrieve it with ewe.sys.Vm.getProperty(String key, String default). It's also got a neat and apparently low-overhead cooperative multitasking system similar in principle to F83's. Speaking of which: I've got to go visit Henry Laxen one of these days, and check out the weather down there. Mazatlan is the home of cerveza Pacifico, one of my favorite local brews. Never has that rusty taste you find so often in bottles of Dos Equis.

Well, gotta get back to work...

Back to blog or home page

last updated 2013-01-10 20:33:36. served from tektonic