Sunday, April 20, 2008

Why all PCs need 2GB RAM

Mem: 2065992k total, 1615628k used, 450364k free, 24k buffers
Swap: 5242872k total, 1118284k used, 4124588k free, 209792k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22034 nic 20 0 2087m 803m 26m S 0 39.8 9:52.67 java
15540 nic 20 0 375m 206m 22m S 27 10.2 93:32.82 firefox-bin

And I'd just shut down Jetty... Grails programming in Eclipse

Saturday, April 19, 2008

Home Virtualization Question

An open question to all:

Which virtualization solution should I use on my home server? You're choices are: Xen or VMware server.

The Host OS will probably be SLES 10 SP1 (which I think means Windows should run under Xen) - but what are the gotchas? I'm less familiar with Xen. Can you get a GUI session up on a Xen client? Can either solution mount partitions from the local server (useful providing a network share around the house without a huge OS image)?

nic

Wednesday, April 02, 2008

REDUCE


REDUCE
Originally uploaded by worldofnic
After yesterday's claim that MOP and Functional programming were a blast from the past - I bought this cheap, yet fully geeky T-Shirt from Primark. (It has a PDP-11 in the diagram, too). I didn't notice in the shop, but the microVAX in the diagram lists REDUCE as one of the programs it runs.

I loved REDUCE. So clean, so simple, so... what happened?

Tuesday, April 01, 2008

No, not April Fools.

While I sit here, hopefully upgrading our BusinessObjects installation, I thought I'd note a few things. Things that have either been on my mind, through my mind or out of my mind.

First, let us talk of Adobe AIR, and indeed AIR for Linux. Now here's a turn up for the books, while many apps seem to be going "on to the web" and running in a browser, AIR shows us a new way. Lots of apps that can run on a desktop. No, not klunky, minimal widgets, but full featured apps that read/write to apps "out there" in web-land. Pretty, damn schweet.

Now, some smart-arses may be thinking that this is nothing new. Indeed, this is what I thought MS were going to do with .NET and Windows 6/Longhorn/Vista, when .NET was initially mooted, but no. They chickened out. Which is a shame, because the .NET runtime (a.k.a CLR), C# and VB.NET aren't bad (being MS rewrites of the JVM, Java, and er.. a .NET-ified, "it's a proper language now" version of VB, respectively). However, the Adobe AIR runtime seems a lot better at memory management than the JVM, or my limited experience of Mono's CLR implementation - this makes it more suitable for desktop-based RIAs. Maybe there aren't enough, really rich apps out there yet for AIR to tell, but I'm sold.

Talking of .NET apps: why do I run more .NET (Mono) apps on Linux than I run .NET apps on Windows? On Linux:
  1. F-Spot
  2. Banshee
  3. Tomboy
  4. gTwitter (although I'm using Twhirl on AIR at the mo')
  5. beagle
On Windows XP:
  1. VisualBasic 2005 Express
  2. Trivial apps I've writting in VB.NET...
Talking of Mono (neat segue, here) - I've recently tried openSUSE and will be playing with SLES 10, somewhat soon. What do I think (bear in mind previous comments I've made), well the fact that GNOME is available (good job too, considering the number of GNOME/Mono experts at Novell!) and has the best interface of all GNOME versions is a boon. Being able to choose between drivers for my wireless card (unlike Ubuntu - old driver only, and Fedora - new borked driver only) was a cool addition. Things worked pretty well, and I'll blog more later in the year.

(Small interruption while BO thinks it's upgraded - let's see... Now redeploying wars...).

Mentioning .war files, I've been playing once more with Grails, now it's hit it's 1.0(.2!) release. It's a lot more polished and very, very cool. At this point in time, both Java and experienced, MVC-using PHP programmers can either choose to try (J)Ruby on Rails or Grails. Neither is perfect, but if you do bother learning one or the other your (future) productivity will rocket.

JRuby has the distinct advantage in Sun sponsorship, with Netbeans integration etc. Grails has the advantage of being written in Groovy/Java and thus you can get at all the Java classes for free. Grails also has the fine, familiar underpinnings of Spring, Hibernate, SiteMesh, GSP (which are so like JSP) which most Java-heads have dabbled with at least.

Groovy at least isn't particularly performant (as some recent bloggers have shown) but neither was Java all those years ago... (Unsure about Grails, which has large parts written in Java - my own apps aren't accessed often enough to tell).

It's funny how things come around: when I was a full-time postgrad (1992-6), Java 0.9 came about, but most "powerful" machines only had 32MB RAM and well-sub-100MHz CPUs. We were all LISP fans/programmers - OO stuff was used, but among the some of the faculty, Functional programming was often looked upon as some sort of god-like beauty. Now, Java 7, Groovy, Scala, ... are all closure/Functional-programming obsessed. The Art of the Meta Object Protocol will always stick in my mind because of how much a couple of people were excited by it (and it had a great cover) and look at all that lovely MOP in Groovy.

(BO upgrade/using wdeploy failed to notice previous version and duplicated entries in conf/server.xml - crap).

So either the modern computing industry is really 15 years behind theory, or... I don't know. I wonder if Order Sorted Algebra (my old field) will make it's way into modern rigorous computing! Heh.

Ah, BO is back up. All hail!

This is nic, signing off.