---
title: A Brief History of Cutting Code in a Universe Three Doors Down
date: '2008-03-28T22:00:00Z'
categories:
- Technology
tags:
- C++
- Forth
- frivolous
- Java
- Lisp
- Smalltalk
summary: A brief history of programming languages as cutting tools, from the assembly flint knife onward.
original:
  url: http://bendiken.net/2008/03/28/cutting-code-three-doors-down
  archive: https://web.archive.org/web/20080725103405/http://bendiken.net/2008/03/28/cutting-code-three-doors-down
---

*Eventually upon a time, in a universe far far away — or three stack frames down
the line, to be precise...*

[Assembly](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Assembly_language)
is the ur-knife, known to man from the dawn of time. The flint edge is very
sharp, but uneven and brittle. These tools can be fashioned both into knives for
cutting and axes for hacking. In either case the edge will wear dull soon.
Rarely are these venerated instruments now brought out in the modern day, and
when they are, there is great ceremony involved. He who has the fortitude and
stamina to hack down a [Big
Tree](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Sequoiadendron)
using a mere assembly axe, all the while uttering the sacred ancient mantra the
meaning of which is now lost, will be much respected among his peers - though
perhaps not considered entirely sane.

[BASIC](https://web.archive.org/web/20080328/http://www.cs.virginia.edu/~evans/cs655-S00/readings/ewd498.html)
is a children's game that remains popular among youngsters. These [plastic
bricks](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Lego)
can be quickly assembled together to form a toy with a certain charmingly crude,
and entirely non-lethal, resemblance to an adult's blade. But beware of gravity,
little one, as with too long a blade your construction will surely shatter at
the midpoint. Some time-honored traditional techniques for counteracting this
brittleness are chewing gum and duct tape.

[C++](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/C++) is
the leading brand of gas-guzzling, noisy chainsaws. It'll fell the tree quickly
all right, but needs serious muscle and experience for correct handling. The
attrition rate among woodcutters is high, with many junior apprentices never
returning from their first trip to the woods. Even senior loggers are often
missing the occasional superfluous limb or two, but no matter: they've developed
the forbearance and impressive skill to properly handle these beasts in
single-handed combat. As they say, [good
judgement](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/The_Mythical_Man-Month)
comes from experience, and experience comes from [bad
judgement](https://web.archive.org/web/20080328/http://www.darwinawards.com/) -
if you survive it.

[Java](https://web.archive.org/web/20080328/http://www.paulgraham.com/avg.html)
is now the most
[widely-used](https://web.archive.org/web/20080328/http://www.google.com/trends?q=Java)
electric kitchen knife in the world. To prevent people accidentally cutting
themselves up too badly, the blade is manufactured to a guaranteed consistently
dull quality. Indeed this tool was originally developed in response to all the
woodcutting accidents taking place with C++, which is perhaps curious
considering that its [safety
features](https://web.archive.org/web/20080328/http://c2.com/cgi/wiki?BondageAndDisciplineLanguage "bondage and discipline")
make it somewhat tedious to hack at anything more
[ambitious](https://web.archive.org/web/20080328/http://lispers.org/#steele)
than saplings. But, safety first or not, it remains splendid at cutting bread.

[Smalltalk](https://web.archive.org/web/20080328/http://www.smalltalk.org/) is a
voodoo stick. Wave it over a carefully constructed model of the real world, and
stuff happens - trees fall, timber is cut to spec, and paper flows freely. It
has long been a jealously guarded trade secret how this works, exactly, but we
do know that the
[inventor](https://web.archive.org/web/20080328/http://bc.tech.coop/blog/060224.html)
is associated with Lisp - which we'll get to in a minute. Unfortunately, this
powerful technology was and remains so far [ahead of its
time](https://web.archive.org/web/20080328/http://blip.tv/file/568689) that it
languished in obscurity long enough for the patent to expire, allowing some
eastern philosophers to popularize a commercially [highly
successful](https://web.archive.org/web/20080328/http://www.rubyonrails.org/)
[clone](https://web.archive.org/web/20080328/http://www.ruby-lang.org/).
Catering to slightly more vulgar tastes, this clone may have sacrificed some of
the original aesthetics, but not much of the seemingly supernatural power.

[Forth](https://web.archive.org/web/20080328/http://thinking-forth.sourceforge.net/)
self-assembling nanoblades represent the keenest
[baryonic](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Baryon#Baryonic_matter)
blade edge currently available. Formed out of femtoscale building blocks that
spontaneously stack themselves into arrangements of
[factorially](https://web.archive.org/web/20080328/http://factorcode.org/)
increasing complexity, these axes will hack through a trunk with a single heave.
They will also continuously and autonomously repair themselves so as to maintain
the perfect edge down to the molecular level. The best neurosurgeons now refuse
to use any other scalpel, and the razor blades made of this material provide for
the closest shave you've ever had - just watch out that you don't shave off a
little extra.

These are all ingenious inventions of man. But of all the cutting and hacking
devices known to us, there is one
[exalted](https://web.archive.org/web/20080328/http://bc.tech.coop/blog/060224.html "the most important idea in computer science")
above all others, and it lacks an earthly origin.

[Lisp](https://web.archive.org/web/20080328/http://lispers.org/) is, as far as
we can determine,
[magical](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Clarke's_three_laws "any sufficiently advanced technology is indistinguishable from magic").
Obscure in
[origin](https://web.archive.org/web/20080328/http://bc.tech.coop/blog/080101.html)
but manifesting itself in our corporeal reality in the form of
[lightsabers](https://web.archive.org/web/20080328/http://xkcd.com/297/ "weapons for a more civilized age"),
the crystal nanocircuitry of these devices appears to transcend the ordinary
laws of nature as we presently understand them. Infinitely
[sharper](https://web.archive.org/web/20080328/http://gilesbowkett.blogspot.com/2008/03/why-only-emacs-uses-lisp.html)
than any scalpel, indestructible under a thousand atmospheres of pressure, these
[elegant](https://web.archive.org/web/20080328/http://www.lightsabertemple.blogspot.com/)
instruments are made of an unknown alloy and keyed to their owner in such a way
as to ensure they will never cut him.

Brace yourself when you initially [receive yours](/2007/01/the-road-to-lisp)
from your [elders](https://web.archive.org/web/20080328/http://lispers.org/).
When you grasp the 'saber in your hands for the first time, parentheses and
other cuneiform symbols will flicker in and out of your inner vision, and your
ears may ring with thunderclaps not unlike the sound of continuous [stack
overflows](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Stack_overflow).
You may indeed have reason to wonder if the red pill you washed down with that
lambda-tinted kool-aid at your initiation ceremony wasn't some form of
psychedelic drug after all.

Fear not; while research is still ongoing, this is thought to be a harmless
side-effect of
[nanites](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Nanorobotics)
that have slipped into your bloodstream through the handle and are reconfiguring
your brain to accept their base code. The symbols you may see are hypothesized
to be a transient interface adapter between the human visual cortex and the
[alien
technology](https://web.archive.org/web/20080328/http://www.lisperati.com/logo.html)
of the 'saber, quickly supplanted by some more direct mechanism that we haven't
quite figured out yet.

If you persist in confusion for a moment longer, the hieroglyphics will soon
begin to fade into the background, becoming a subconscious part of your inner
vision and lending your perception an acuity you didn't even know was missing.
You will perceive not merely the apparent [hierarchy of
nature](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/On_Intelligence)
but penetrate yet deeper to the underlying infinitely more [subtle
relationships](https://web.archive.org/web/20080328/http://www.lisperati.com/tellstuff/rdf.html)
and interconnections between things.

Once the symbiotic link with your 'saber is fully established, you will be able
to, at will, slice through the molecular bonds of any [Gordian
Knot](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Gordian_knot)
as if they were made out of air. Given that you may will the width of the
blade's swath to reconfigure itself from picometers upwards, your 'saber is
easily the most precise and
[capable](https://web.archive.org/web/20080328/http://www.paulgraham.com/power.html)
instrument known to man. The rush and elation, and yes, the pride, of wielding a
lightsaber is enough to make anyone giddy. You should understand that with great
power comes great responsibility, and you are advised to review the ethical code
from time to time.

After further meditation and practice, you may eventually come to understand
that it is not the blade that cuts, but your mind that [sculps
reality](/2007/01/lessons-from-the-science-of-nothing-at-all) according to your
imagination. This insight is reported to be the last thing uttered by some of
the legendary Lisp grand masters before they, somehow, cut the ties that bound
them to our sphere of reality, thus vanishing into thin air.

There is some speculation that, after contemplating year upon year on the grid
lines that all Lispers are able to perceive in the night sky, these Lisp masters
[held
infinity](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Auguries_of_Innocence)
in the palm of their hand and found a nearby quantum [activation
frame](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Call_stack#Structure),
unlocking a suspended gateway
[continuation](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Continuation)
that allowed them to
[ascend](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Ascension_(Stargate))
to some higher plane of being that, evidently, encompasses and sustains our own.

A competing hypothesis among those of a more hedonistic bent is that perhaps the
vanished masters managed to [construct](/2007/04/god-sure-didnt-write-in-java) a
private, entirely self-contained [lexical
scope](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Scope_%28programming%29#Static_scoping),
i.e. sub-universe, of their own, a form of personal nirvana obeying their own
choice of [evaluation
rules](https://web.archive.org/web/20080328/http://www.paulgraham.com/rootsoflisp.html)
and containing [the promise of limitless
futures](https://web.archive.org/web/20080328/http://en.wikipedia.org/wiki/Future_(programming))
to explore and indulge in.

There is only one way to find out -
[apply](https://web.archive.org/web/20080328/http://www.gigamonkeys.com/book/)
for a [wizard's
robe](https://web.archive.org/web/20080328/http://mitpress.mit.edu/sicp/) today
and begin your own journey from caveman to first-order hacker of the heavenly
spheres in this universe and beyond.
