A morning with Dave Thomas, the other Dave

Today I spent a very enjoable morning with Dave Thomas. (http://www.davethomas.net/) Not the Pragmatic Programming Dave Thomas, aka Prag Dave.
The talk was about programming 2010-2020. In other words, not what the next big thing is, but something way in the future. Most of the talk was on DOD – Domain Oriented Development. For concrete details, the problem is that this stuff is being developed inside corporations. It is not publically available.
Still, after the session a group of talked about some trends happening in the nearer term. It was a good chance to think about these things.
Both Microsoft and Sun are adding dynamic languages and better support of these in the CLR and JVM respectively. A good discussion for the motivation here can be found at http://jcp.org/en/jsr/detail?id=292.
To quote:
“There is growing interest in running a variety of programming languages on the the Java platform, and consequently, on the Java virtual machine (JVM). This interest is increasingly focused on dynamically typed languages, in particular scripting languages.
To make it easier to produce performant, high quality implementations of such languages, we propose to add support at the virtual machine level.”
Dave is still a dedicated Smalltalker as are a number of the leading OOers. Maybe things are moving in that direction. Closures are something on their way into Java 7 (Dolphin) and C#. Closures, though introduced in Scheme, were a feature of Smalltalk, and one that has been missing from Java.
Of course if you want to do Smalltalk on a JVM, you could use http://www.missionsoft.com/. Not sure how well it works.

A Mac OS X/Linux/Unix script for finding large files

I sat down at my newish PowerMac this morning to do some hacking. I bought it in January 2006. It has a 149GB hard drive which is now full. My wife complained about iMovie HD being a little slow, which should have been a warning sign. Anyway time to dust off my old script to find the large files on the computer. I initially forgot I had such a script. I googled for something to grab and did not find much. So I will put this on my blog in the hope the next time I am looking for it it will be easier to find.

I am thinking about writing a Dashboard widget to do this. I wrote my first widget last night. It embeds a DOJO widget. Very nice and easy, with a few gotchas not covered in the documentation. I will blog about that another time. Why write a widget to execute a simple script? I am realising that there is a growing group of Mac power users who have not discovered the joy of Unix, and are probably unlikely to.

find . -type f -size +500000c -exec ls -ldh {} ; 2>/dev/null

The script above find all files from the directory you are in down of size greater than 500,000 bytes. Change the number up and down as desired. You will need to be root to find all files on the system. On Mac OS X it is a good idea to start at /Users, which is where most of the stuff you might want to delete will be.

And what you might be wondering did I find. We bought a Sony HDR-HC3 High Definition wide screen camcorder a few months back and have been shooting hi-def movies ever since, along with 4MB photos.

I am writing this

I am writing this on Writely which has impressed me with its WysiWig editing in JavaScript.

I have been doing a lot of architecture work lately using Confluence and discovered they have a Rich Text Editor mode.
It turns out that it, like Writely, does not support Safari as yet. I am using it in Firefox. But Confluence is using tinymce
(http://tinymce.moxiecode.com/) and it is cool.

One of the best things is that you can search within the page you are editing. Browsers do not support finding withing form fields,
which is what you are doing in the wiki editing mode. The ability to do this is huge. Writely also supports this. It is because I guess
it searches the DOM, and these tools write to the DOM as you type.