Well, it's been a while I haven't done a technical post, and well, I'm feeling a bit under the weather, so it might be a bit shoddy and make even less sense than usual, but you'll just have to deal with that, won't you?
Recently,
jdub (who has one of my favouritest domain name, I hope he'll give it to me in his will) was talking about
things that suck. Those too lazy to click the preceding link are probably wondering what thing and/or how so. Well, it's Python, that for what sounds like a totally lame excuse, has a maximum timeout of a hundred milliseconds in its select()-based main loop, in order to poll whether the interpreter received a signal. Polling.
Jebus,
it's 2006 already, somebody tell these people!
Now, someone like
apenwarr, who both wrote such code and sat beside me, consequently almost going deaf from my horrified screams, many times over. Note to others who think of writing such code: it might be
hazardous to your health! Save yourself! Write a byte to a pipe in your signal handler!
Now, of course, the primary reasons to do so would often be things like "not sucking" and "not going deaf", but power usage is getting to be an important problem in enterprise computing, not to mention longer autonomy for laptops, as well as quieter and cooler workstations, which can then be made smaller and less obtrusive.
Sun keeps
telling us, and Google is
having issues with it. Like
apenwarr once said, semi-famously, inspired by Spiderman's uncle, "with great power comes a great power bill", in the order of 1 to 2 millions $US per month!
As
kernelslacker is pointing out in
his experiments that you can actually look into these things at home, provided you have the
appropriate gadget. I'd be very interested in playing around with this, but I'd need to find myself a similar tool adapted to European power standards... Anyone has a lead for me?
Now, you might wonder what's the point of that post. Me too. I forgot. Stupid cold...