Archive for January, 2008

Microkernels vs Monolithic Kernels

Thursday, January 31st, 2008

Via slashdot, Tanenbaum has created a new chapter in the debate between which is better. It’s a great read, even for those not familiar with the debate. Here’s a choice quote:

If you are wondering why microkernels aren’t even more widely used, well, there is a lot of inertia in the system. Why haven’t Linux or Mac OS X replaced Windows? Well, there is a lot of inertia in the system. Most cars in Brazil can run on home-grown ethanol so Brazil uses relatively little oil for vehicle fuel. Why doesn’t the U.S. do that and reduce its dependence on the volatile Middle East? Well, there is a lot of inertia in the system. Getting people to change, even to superior practices, is very hard.

I have always been a fan of the microkernel idea because it enforces a logical separation among components that makes it easier build securely and test an operating system. It is also useful, when you are working on something, to get a sense that there is a clear boundary. In a microkernel, there are no shared data structures across the whole kernel, so if you don’t like the way a module uses it or how the module is designed, you can wipe it out and not worry about breaking other parts of the system. This is a huge plus. Much of why and how we managed to get computers to do such complicated things is based on the idea of building small, simple pieces, and then building more complicated things that use those pieces. A microkernel is basically doing the same thing with operating system concepts.

He also mentions MINIX 1, which, a long time ago when I was an undergraduate I had many chances to play with. Apparently, there is now a MINIX 3. I must admit that right now I am really fighting the urge to download and try it over finishing my thesis… Maybe later.

Clever use of strace

Tuesday, January 29th, 2008

I found a clever use of strace that gives “cp” a progress bar. I will have to keep this in my bag of tricks.

Fun with Invisible Ink

Saturday, January 26th, 2008

One of my favorite toys when I was younger were invisible ink pens. You could write with them anywhere, and once the ink dried, you needed a black light or another special revealing pen to see your message again. I remember using them them for many things:

  • Hiding the key for my (poorly) coded messages
  • The locations of objects I had hidden
  • A personal diary (that lasted about a week)
  • Drawing unflattering pictures of my siblings, and flattering pictures of myself
  • Putting my name on things I owned (and didn’t own), so I could prove that I owned them to my dad when my siblings took them
  • Passing secret messages in class

The list goes on and on..Of course, the type of invisible ink I am referring to is the chemical reaction kind. There are also inks that react with heat, or that can only be seen under certain lights. Today I came across a great use of heated invisible ink. A food company ships its annual report printed in this ink. In order to read it, you have to “bake” the book properly. Very clever!

First Post

Wednesday, January 23rd, 2008

Currently working on the personal website, which is what this blog is meant to be a part of. I regularly post at the Punchscan blog, if you are looking for something to read!

Hello World!