?

Log in

No account? Create an account

Java

« previous entry | next entry »
Nov. 29th, 2003 | 01:40 am

One of the big thing that annoys be about Java is how pitifully slow it is. Sun likes to claim that with a good just in time compiler java 1.4.2 runs well. Though there's plenty of disagreement about this claim.

Unfortunately some of us like platforms where the latest and greatest JVM doesn't exist yet. (PPC linux)

So swing applications crawl and don't behave like any of the other applications on my system. (For instance in everything else control-A jumps to the beginning of a line, while Java apps only support home.)

I discovered that IBM released an IDE called eclipse that includes an alternative GUI API to swing called SWT. Unlike swing, SWT uses native controls for rendering a GUI, unfortunately it uses a completely different API from swing and so I didn't think that I could use it on the project I'm currently working on. (And I certainly couldn't use some of the libraries we're currently looking into using.)

Then I found a project called swingwt. It's a partial implementation of swing on top of SWT and I was able to get my simple demo application to build under it.

(I did end up needing to write some code to fill in some pieces of swing that were missing. But I was a good little open source developer and submitted my patch).

The best part of this discovery is that since I've been able to compile SWT using GCJ to native code, it's likely I can compile swingwt and the rest of my application as well.

This means Java applications running as native code instead of in the stupid memory hogging JVM.

Maybe this project doesn't have to completely suck.

Link | Leave a comment | Share

Comments {1}

Bolowolf

Huh?

from: bolowolf
date: Dec. 1st, 2003 07:43 am (UTC)
Link

I admire your brilliance...wish I understood what you were saying some days.

Reply | Thread