Lean code #2: Luxury computing

Efficient code is green code, as I blogged a few weeks back. And more than that, efficient code is just really, really nice to use.

I’ve been using LXDE for a couple of months now. This is a “desktop environment” – that is, the window manager, panel, all the “GUI” stuff, that makes up the top layer of a Linux distribution. I’m using it with Mandriva (and like other major desktop environments, it also works with many other distributions).

And this is a very lightweight distribution – i.e. it’s efficient code. It’s much smaller than even XFCE, one of the best known lightweight alternatives. But here’s what it means to me:

  • Stability. The last time I restarted my laptop was about 20 days ago – in that time I have suspended and woken the machine several times every day, with no hiccups. My browser (Swiftfox, a slightly faster and lighter version of Firefox) has crashed a few times, thanks to way too many tabs, and to a document-viewing site called scribd.com. But the operating system has been rock solid.
  • Speed. I wanted a lightweight distro so that I could just open my laptop and be writing in seconds rather than minutes, before I forget the idea I’m planning to write down. I thought that would be hard to achieve, but it was as easy as installing LXDE. Plus, I rarely get the hangs and long waits I used to get with Windows, and to a lesser extent with fatter Linux systems. (If I do, it’s usually because I have a file search going that I’d forgotten about, and that’s quickly fixed.)
  • Much more flexibility. I can now keep open whatever programs I want, without upsetting the system. I always have multiple documents open in Abiword and text editors, Skype, often I have two browsers open, plus a PDF viewer and more. Even when most of the memory is in use, when Mandriva with heavier desktops would be slowing to a crawl, Mandriva with LXDE is perfectly happy and responsive. And with its smaller footprint, it’s harder to use up the memory in the first place.

Perfect, huh? Well, not quite. It’s a work in progress, and while I’m told everything works well on LXDE with Debian or other distros, I have problems on Mandriva: I have no audio, no flash video, and USB drives and external hard drive don’t work at all. I live with this for now, because the speed and stability is letting me get my work done in a way that no operating system – Windows, Mac or any Linux distribution – has ever done for me before. For the occasional backup, I can boot up in Openbox and the USB connection works perfectly. (Openbox is an even lighter option, just the window manager used by LXDE with no “desktop environment”, but it’s slightly confusing for newbies.)

At some point soon, I plan to bite the bullet and switch to Debian. But whatever system I end up using, one thing is sure – LXDE has spoiled me. I have experienced sleek, efficient code, and there’s no going back.

Footnote: In the interests of better documentation, and making life easier for newbies, I’ve been adding what I learn to the Mandriva and LXDE wikis. Of course!