Netuality

Taming the big bad websites

Archive for June, 2003

Haystack – small installation glitch and then The Big Wait(TM)

leave a comment

Ok I had to download the famous Haystack everyone is talking about…
First launch failed because apparently the monster is compiling some Java code during its execution. However it doesn't call the jdk but the jre – so the quickest solution was to copy tools.jar in haystack/lib/java. Then I've waited … and waited … and waited … some 45 minutes (Athlon xp 1800+, 512mb ram, some serious swapping noticed).
I'm not extremely enthusiastic about the software – probably my brain needs some time to re-adjust with the all-in-one paradigm … if it ever does :)

Written by Adrian

June 5th, 2003 at 3:05 pm

Posted in AndEverythingElse

Tagged with ,

SWT has an older brother … wx4j

leave a comment

wx4j is a Java wrapper around the *tried and tested* wxWindows widget framework. The main idea may be similar with one which gave birth to SWT : hide native widgets behing a [more or less] thin layer of Java. By “native” I mean widgets for Windows flavours, Linux/Unix with GTK+ or Motif, and MacOS as well. However I see some interesting differences :
+++ source code is available for native wxWindows, however not available for native part of SWT ?!?
+++ wx has considerably more C++ than Java. Some layers such as event loop are native to the OS thus (afaik) faster than SWT's.
— what about wxEmbedded ? would be nice to integrate also … SWT has already made some steps in this direction
— I find somehow questionable the sanity of the “native” approach, because we'll eventually end up writing small Java control layers manipulating native GUIs and native data sources (OTL anyone ?). But then again, this might be a valid approach.
As well as in SWT, there is some ["non-Javaic"] memory management needed such as destroying transient windows containers and deleting memory used by drawing contexts … Although the library is extremely young the doc is quite useful, even showing non-obvious things like how to deploy a wx4j app with webstart.

Written by Adrian

June 5th, 2003 at 2:43 pm

Posted in Tools

Tagged with , , , ,