DNA as seen through the eyes of a coder

We are, by now, accustomed to talking about “the genetic code.” But we rarely think about what that metaphor means.

So I was delighted to stumble across this fun essay: “DNA as seen through the eyes of a coder.” Bert Hubert, a programmer, compared DNA to computer code and finds a number of startling similarities. For example: DNA is highly “commented,” just like good computer code; indeed, junk DNA can be thought of as code that is “commented out” — i.e. old code left over from previous revisions that is no longer used, and surrounded by comments telling the processor to ignore it. DNA also exhibits “bug regression” — new, unexpected bugs that are caused when a programmer tries to fix an existing bug. (Mutations that emerged in Africans to create immunities to malaria, for example, accidentally made the hosts susceptible to sickle-cell anemia.)

But this is my favorite part of the essay:

Somebody recently proposed in a discussion that it would be really cool to hack the genome and compromise it so as to insert code that would copy itself to other genomes, using the host-body as its vehicle. ‘Just like the nimda worm!’

He shortly thereafter realised that this is exactly what biological viruses have been doing for millions of years. And they are exceedingly good at it.

A lot of these viruses have become a fixed part of our genome and hitch a ride with all of us. To do so, they have to hide from the virus scanner which tries to detect foreign code and prevent it from getting into the DNA.

The metaphor, of course, works both ways. Just as the mechanics of DNA are a useful metaphor to help understand how computer viruses work, the mechanics of computer programming are a useful metaphor to help understand how DNA works.

(Thanks to Justin Blanton for this one!)


blog comments powered by Disqus

Search This Site


Bio:

I'm Clive Thompson, a writer on science, technology, and culture. This blog collects bits of offbeat research I'm running into, and musings thereon.

Currently, I'm a contributing writer for the New York Times Magazine and a columnist for Wired magazine. I also write for Fast Company and Wired magazine's web site, among other places. Email or AOL IM me (pomeranian99) to say hi or send in something strange!

More of Me

Twitter
Tumblr
Flickr


Recent Entries

New technique renders objects at sea “invisible” to waves of water

Poll: Young people who use landlines are more conservative than those who use mobile phones

At Amherst college, 1% of first-year students have landlines, 99% have Facebook accounts

North Dakota the most outgoing state, according to study of “the geography of personality”

Why the next wave of high-tech CEOs will be as old as your parents: My latest column in Wired magazine

» visit the Collision Detection archives

Clive Thompson's Tumblr
a bunch of stuff

September 26, 2008 » 01:57 PM

From an interview with ethnobotanist and anthropologist Wade Davis:

One of the cultures you celebrate in Light at the Edge of the World is the Inuit. What do you most admire about them?

Davis: The Inuit didn’t fear the cold; they took advantage of it. During the 1950s the Canadian government forced the Inuit into settlements. A family from Arctic Bay told me this fantastic story of their grandfather who refused to go. The family, fearful for his life, took away all of his tools and all of his implements, thinking that would force him into the settlement. But instead, he just slipped out of an igloo on a cold Arctic night, pulled down his caribou and sealskin trousers, and defecated into his hand. As the feces began to freeze, he shaped it into the form of an implement. And when the blade started to take shape, he put a spray of saliva along the leading edge to sharpen it. That’s when what they call the “shit knife” took form. He used it to butcher a dog. Skinned the dog with it. Improvised a sled with the dog’s rib cage, and then, using the skin, he harnessed up an adjacent living dog. He put the shit knife in his belt and disappeared into the night.

September 25, 2008 » 11:21 AM
“Video from a camp north of Toronto in December 2005 shows a car spinning around in a nearby, snow-covered parking lot. Prosecutors characterized that as special driver training but the defense, and many outsiders, said it was nothing more than “cutting doughnuts,” a favorite winter pastime of young Canadian motorists.” - A key piece of evidence submitted in the trial of a gang of alleged young Canadian terrorists.

September 24, 2008 » 11:21 PM
“Life imitates art imitating life: just thought a gnat crawling across my monitor was part of a Flash-based ad. I clicked it.” - A Tweet from Bill Braine.

September 24, 2008 » 02:37 PM
“Funniest FB friend request ever: “Twitter friend hoping to get to second base (Facebook!) ;-).”” - A recent Tweet by Pistachio

September 24, 2008 » 12:28 PM
Chinese powdered-milk crisis creates a new market: The return of the wet nurse

» visit my Tumblr

Recent Comments

Photos

» see all of my photos on Flickr

Collision Detection: A Blog by Clive Thompson