Archive for February, 2005

Unit-testing Performance

Thursday, February 17th, 2005

Perfomance regressions: I was wondering this morning if it might make sense to write unit tests to verify performance of specific operations. The basic idea is that we have a unit test that prepares the run and executes a certain operation; a wrapper test then executes this performance test a ...

Utility Servers in the JVM

Tuesday, February 15th, 2005

Utilities Servers: I've been thinking more about Nailgun, the server which hosts small Java programs to be run from the command line. One question is, why can't (or don't we) use Java more often for common utility tasks? Think of all the command line utilities written as executable (binary) or ...

Easy 3D

Tuesday, February 15th, 2005

Cool Swing/3D demo! Just checked out a Swing-based Java3D demo from Romain Guy's Weblog and it looks pretty cool. You see books as 3D images from Amazon, and see them rotate in real time to display the spline as well as the front cover. To run it, you'll need to ...

Modality

Monday, February 14th, 2005

I was thinking about the MVC (Model-View-Architecture) design model while looking at an application with notifications. The application is mainly accessed through a complicated GUI client. Notifications are triggered by data-bound conditions, and on a notification, one either has colors on the screen change, or a popup window opened. But ...

Nailgun is Cool

Sunday, February 13th, 2005

I've been checking out Marty Lamb's Nailgun project, which is a Java server running classes, executed by a small command-line client in C, using a custom communication protocol. The C client, of course, starts up immediately, and the cost of starting the JVM is taken up when the Nailgun server ...

Ken Moore’s Law: A Rapidly Increasing Frustration

Saturday, February 12th, 2005

Rushing Towards Frustration My friend Ken Moore, a programmer like myself (but with much longer experience) writes to me periodically about his ongoing frustrations with programming. He's currently a Java programmer, but has also worked with COBOL (I think), C and C++, Perl, etc., as well as some 4GLs. He's been ...

Fun with XSL

Saturday, February 12th, 2005

Working on my Website (Part II) I started to work on this website again couple of weeks ago. Last year I'd written the content of my website in XML, and generated working XHTML with XSL. All of that was working, but there were problems, namely that I was terrified of changing ...

Writing with Ease

Saturday, February 12th, 2005

Writing and Markup What I really want is just to writeup my website without worrying about markup, and to have full control when I finally present it. The website pages are written and stored as XML, before being converted to the XHTML that visitors see.The downside is the amount of typing ...

Java Memory Management: A Tragedy of the Commons

Friday, February 11th, 2005

I was working with NetBeans the other day, debugging some of my own code. I had been running the debugger repeatedly, tracing through the code over and again. NetBeans gradually slowed down, and stepping through lines of code became downright painful. I finally stopped and restarted it. (I wrote this last Spring, in March 2004 ...

Dynamic Languages on the JVM

Friday, February 11th, 2005

Dynamic Language Integration in the JVM I've been interested to see the different languages built on top of the JVM. If you do a web search for "jvm languages", you'll find a whole slew of them listed, some of which are still in active maintenance. One newish one, Groovy, has been ...