Skip to content
quotesby

About this quote

What does it mean?
Wall admits avoiding backtracking, noting that his version is theoretically more correct.
In plain terms
He skips backtracking, making his approach theoretically stronger.
What can you take from it?
Sometimes a simpler algorithm can be more theoretically sound.

Where it applies

  • algorithm design
  • performance tuning

Putting it to work

  • choose algorithms with clear theoretical guarantees

Questions to consider

  • When does theoretical superiority outweigh practical speed?

Another view

Practical performance may still favor backtracking.

More from Larry Wall

  1. 'Course, that doesn't work when 'a' contains parentheses.

    Permalink to quote #146
  2. Not that I'm against sneaking some notions into people's heads upon occasion. (Or blasting them in outright.)

    Permalink to quote #148
  3. That gets us out of deciding how to spell Reg[eE]xp?|RE . . . Of course, then we have to decide what ref $re returns... :-)

    Permalink to quote #145

Related quotes

  1. To add speed, add lightness.

    Colin ChapmanColin Chapman quote #4
  2. Any car which holds together for more than a race is too heavy. (Also tongue-in-cheek, as race cars must test and qualify before the start of any race.)

    Colin ChapmanColin Chapman quote #5
  3. Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi.

    Larry WallLarry Wall quote #59