Archive for March, 2011

Hamlet Tricks

Mar 11 2011 Published by under Life,Religion and Mythology,Singularitarian

Like Odysseus, Shakespeare’s Hamlet played the role of the trickster to fulfill his mission. “How now! a rat? Dead, for a ducat, dead!”, Hamlet yells, when he suspects a spy, putting his sword through the wall. How about the play within the play where the king is poisoned? Then there is the incidence where he writes off two of his best friends and joins a pirate ship.

As in the Eternal Sunshine of the Spotless Mind,  Hamlet has overwritten parts of his memory several times. Each time, things happen differently, and he forgets in order to remember the parts relevant at present. What is left, what I believe about the past, is it the present or the past?

What actually happens in Hamlet is a scene being played over and over again in the mind. Hamlet is attempting the perfect revenge.  Each time, more characters are erased from memory, until an underlying factor turns.

Here, thou incestuous, murderous, damned Dane,
Drink off this potion. Is thy union here?

Hamlet finally comes to peace of mind.  Seen in this light, every single event in the play had a totality, beyond good and evil.

No responses yet

From Reiser3 to Reiser4 and Uncertainty Beyond

Mar 10 2011 Published by under Linux,Singularitarian

Reiser3 was the first Linux filesystem with journaling and received mass adoption in the period of 2001-2006. Reiser4 is designed with lessons learned from the mistakes in Reiser3. It is still the fastest Linux filesystem.  That is without filesystem compression. Reiser4 has been around since 2001, but it has never been accepted into the Linux kernel. It is a testament to the failure of a free society to recognize greatness. The Linux kernel maintainers are still human.

Before Namesys

Reiser was about 12 years old in high school when he was accepted into Berkeley. He studied on and off, working at companies like IBM, before earning a degree at middle age. The development of Reiser3 and Reiser4 can be traced to his senior thesis, in which he studied the difference between computer science and empirical sciences. As a result, Reiser3 and Reiser4 were exceptionally fast filesystems, because ideas conventionally regarded in computer science as junk were given a second chance.

To start Namesys, Reiser went to Russia in 1993 and hired a team of programmers. Russia had just come out of a huge failure. To summarize the period:

The Russians are just taking into their hands the ashes of incompetent industry, collectivized farming, Stalinist paranoia, military machoism, the Gulags, Leninist madness…

They turned out to be the best programmers that money could buy, full of bright ideas.

Reiser3 (ReiserFS)

When I used Windows 95/98, I remember those colorful screens and the long wait. It turned out the OS was checking the filesystem, because it didn’t shut down properly. So is there a way to make it start faster and not loose any data? Reiser3 was the first Linux filesystem to implement journaling, one method to solve both problems. With Reiser3, data centers did not have to worry about loosing power, even just for 1 second.

Major Linux distributions all offer Reiser3. SourceForge was hosted using  it, and Novell made it their default filesystem. Since then, there has been a decline due to kernel locks used extensively, resulting in non-concurrent operation on multi core systems. However, there are patches, because Reiser3 users still haven’t switched.

Reiser3 development was funded by DARPA and Linspire. Another source of funding when it was included with the kernel was database implementations.

Reiser4

Reiser4 is a non-continuous increment of Reiser3. A Reiser3 filesystem cannot be converted to a Reiser4 one. This decision in itself reflects how continuous innovations are adopted quicker. For example, C/C++ are almost synonymous compared to C# and Objective-C. Switching to Reiser4 means compiling a kernel with it, formatting another partition large enough, and copying all the data.

However, the benefits of being non-continuous outweighs the costs. Reiser4 is designed to support an on-disk database, within the filesystem. This is implemented by using two separate layers, graphs for relationships, and trees for efficient searching. Reiser4 also implements extents, mapping a section of a disk to a file, which makes fragmentation non-existent.

Another feature is the plugin system, where a userland SQL interface can be placed. Kernel developers argued for moving it to VFS, while Reiser insists on keeping it as part of the filesystem. There are many other reasons why Reiser4 was not accepted into the kernel. The plugin system allows compression and encryption of the entire on-disk structure. LZO compression increases filesystem performance by two times, placing Reiser4 head and shoulders above the rest.

Whereas Reiser3 became the standard journaling filesystem,  Reiser4 had no special feature associated with it. Being the best filesystem at the time, Reiser4 was never included in the kernel. Compared with ext3, which still used an H-tree and had a double write penalty for journals, Reiser4 was better technology-wise. If Reiser3 was adopted for data-loss protection, then Reiser4 needed a similar reason. An interesting application for the graph layer is a Baynesian network. It would have high scalability and performance due to its on-disk structure, and could be sold as an out-of-box solution, like Google Search for Enterprise. Such a product would have applications in real-time business analytics, data warehousing, and as a component of a CRM system.

The End

Now as Reiser4 has been forgotten for 4 years, you may wonder how the story ended. Sadly, the story ends with a telltale heart, which I saw as a play and now in real life. Reiser must have liked Lord of the Rings a lot, since he used metaphors in his talks. It’s usually popular with Dungeons and Dragons players, or Linux fans. The terminal is another way of seeing the world.

No responses yet

Ron Tite at UW

Mar 04 2011 Published by under Life

Ron Tite’s talk last Tuesday was both educational and entertaining. Some key points he made were about how organizations work, the power each individual has in a digital society, and whole brain thinking.

Organizations are People Driven

Decisions within organizations are made on an individual level. Each day, hundreds of decisions are made. The successful organizations adapt and evolve. He gave examples using the most popular brands, of these brands:

  • IBM no longer sells computers
  • Microsoft is now focused on cloud computing and cloud services
  • McDonald now sells salads

Google is relatively new on the list. The people driven organizations are able to evolve, rather than sticking to the status quo and maintaining the bottom line.

Digital Requires Perfection

Because machines do exactly what they are programmed to do, humans must become more machine like in a digital world. No transaction (searching on Google, commenting on Facebook, sending an email) happens without being recorded forever. He told a story from personal experience. He lost his luggage when he got off the plane with Air Canada, so he posted on facebook and Twitter about it. After several phone calls to ask for the luggage and more posts, he gets 415 people on facebook saying, “Give Ron Tite His Bag Back“.  The story ended with the CEO of Air Canada sending a replacement (gift) bag for what he might have carried, a few minutes after getting his own bag back.

Brands Last, Technology Changes

According to him, the funniest line in stand-up comedy is in There’s Something About Mary.

Hitchhiker: You heard of this thing, the 8-Minute Abs?
Ted: Yeah, sure, 8-Minute Abs. Yeah, the excercise video.
Hitchhiker: Yeah, this is going to blow that right out of the water. Listen to this: 7… Minute… Abs.
Ted: Right. Yes. OK, all right. I see where you’re going.
Hitchhiker: Think about it. You walk into a video store, you see 8-Minute Abs sittin’ there, there’s 7-Minute Abs right beside it. Which one are you gonna pick, man?
Ted: I would go for the 7.
Hitchhiker: Bingo, man, bingo. 7-Minute Abs. And we guarantee just as good a workout as the 8-minute folk.
Ted: You guarantee it? That’s – how do you do that?
Hitchhiker: If you’re not happy with the first 7 minutes, we’re gonna send you the extra minute free. You see? That’s it. That’s our motto. That’s where we’re comin’ from. That’s from “A” to “B”.
Ted: That’s right. That’s – that’s good. That’s good. Unless, of course, somebody comes up with 6-Minute Abs. Then you’re in trouble, huh?
[Hitchhiker convulses]
Hitchhiker: No! No, no, not 6! I said 7. Nobody’s comin’ up with 6. Who works out in 6 minutes? You won’t even get your heart goin, not even a mouse on a wheel.
Ted: That – good point.
Hitchhiker: 7’s the key number here. Think about it. 7-Elevens. 7 dwarves. 7, man, that’s the number. 7 chipmunks twirlin’ on a branch, eatin’ lots of sunflowers on my uncle’s ranch. You know that old children’s tale from the sea. It’s like you’re dreamin’ about Gorgonzola cheese when it’s clearly Brie time, baby. Step into my office.
Ted: Why?
Hitchhiker: ‘Cause you’re fuckin’ fired!

So the Brick advertises blowout prices just after Boxing Day. Poor advertising consistent with worthless furniture. Successful advertising is in alignment with core values. He mentions being genuine among other ones, which seems to be a message from the same movie.

When New Coke came out, people took it for an poser.  Old Coke with the new formula is actually what is now on the market. He mentions paying tax for firefighting and some hesitation about actually getting rescued by a firefighter due to connotations with being womanly. In the end, what’s real and what’s not is vague. It just depends on what works. Organizations adapt to it.

He definitely had some points to make, as he did bring his notes. Overall, the talk was crazy. I mean it felt like taking a tour of a 3-year old’s playroom, but that craziness amounts to a lot of laughs.

No responses yet