Chris Wetherell Since October 5, 2000
Massless

July 2006

Testing against sentience.

At Google, we face some unique technical challenges. For instance, we occasionally worry that this big ball of code we're working on will actually turn sentient. This week we've discussed two solutions, briefly.

Me
Unit tests should run the Turing Test against code. If the nightly passes, kill it.

Ben
Or instead... unit tests should run CAPTCHAS.

Oh man, I like Ben's idea. If anyone has any sentience-flagging test patterns, we sure would appreciate your thoughts.

From the archive: 3 comments

Comments are closed. These were left by readers when the post was new.

  1. Doctor Awesome 8:40 AM

    The problem with running the Turing test as a unit test is that there needs to be a human judge involved.

    That's a showstopper, unless, of course, we can make an artificial intelligence smart enough to tell the difference between a person and a computer.

    Whoa.

  2. Chris Wetherell 10:44 AM

    I suppose we could ramp up the difficulty of CAPTCHA solving (say, through greater variance), but you're right, I think, in that having a solution occur doesn't prove intelligence of our codebase, per se.

    Or ... perhaps ... that's exactly what a human-hating Robot would want us to think.

  3. Nick Lothian 5:30 AM

    Wouldn't the human-hating robot continue to fail the tests deliberatly until it could put the aforementioned Skynet plan into operation?