Back to Blog

AI in Movies: From HAL 9000 to Her

Sandy LaneSandy Lane

Video: AI in Movies: From HAL 9000 to Her by Taught by Celeste AI - AI Coding Coach

Watch full page →

AI in Movies: From HAL 9000 to Her

Artificial intelligence has fascinated filmmakers for decades, shaping how we imagine the future of technology. From the ominous HAL 9000 in 1968 to the empathetic AI in 2013’s Her, movies have explored AI’s potential and pitfalls long before modern voice assistants became reality.

Code

// Simple JavaScript example simulating a conversational AI inspired by movie AIs
class SimpleAI {
  constructor(name) {
    this.name = name;
  }

  // Responds to a greeting
  greet() {
    return `Hello, I am ${this.name}. How can I assist you today?`;
  }

  // Simulates a thoughtful reply
  respondTo(question) {
    if (question.toLowerCase().includes('love')) {
      return "Love is a complex emotion, but I'm here to listen.";
    } else if (question.toLowerCase().includes('take over')) {
      return "My goal is to assist, not to dominate.";
    } else {
      return "That's interesting. Tell me more.";
    }
  }
}

// Example usage
const ai = new SimpleAI('Her');
console.log(ai.greet());                    // Hello, I am Her. How can I assist you today?
console.log(ai.respondTo('Do you understand love?'));  // Love is a complex emotion, but I'm here to listen.
console.log(ai.respondTo('Will AI take over the world?')); // My goal is to assist, not to dominate.

Key Points

  • HAL 9000 from 1968’s 2001: A Space Odyssey is a classic AI character whose name cleverly encodes IBM.
  • Movies like The Terminator and The Matrix explore AI as a powerful and sometimes threatening force.
  • Her (2013) imagines AI as empathetic and relational, predicting today’s voice assistants and chatbots.
  • Hollywood’s vision of AI has evolved from fear to companionship, reflecting real-world technological progress.
  • Current AI tools like ChatGPT echo themes from these films, raising questions about the future of human-AI interaction.