Ben Affleck Says He Writes Python and Talks Neural Networks

Ben Affleck, the actor best known for playing a Boston janitor’s best friend in Good Will Hunting and later for wearing Batman’s cape, surprised fans last week by talking at length about tensors, convolutional neural networks and edge detection. In an episode of GQ’s interview series One More Question, he said he writes Python scripts, according to a report by the Chinese science outlet Guokr.
The clip spread quickly on X, where viewers joked that the math prodigy in Good Will Hunting — the role played by Matt Damon — should have been Affleck all along. For years, the film has been a shorthand for hidden genius, and Affleck’s casual fluency in the vocabulary of modern machine learning gave the joke fresh life.
Affleck’s comments were not a technical lecture. He described how computer vision systems break an image into edges and gradients, the kind of explanation a curious amateur might give after reading a few papers and tinkering with code. That is precisely what made the moment travel: a Hollywood star speaking the language of the AI boom without a product to sell.
He is not the first entertainer to dabble in code. Musicians, athletes and actors have increasingly picked up programming as a hobby or a second career, and some have launched AI-related ventures. Affleck said he had started a company working with AI, though details of the business were not the focus of the interview.
The timing helps explain the attention. AI has moved from research labs into everyday conversation, and the vocabulary of neural networks — layers, weights, training data — now appears in advertising, classrooms and office chat. When a celebrity uses those words correctly, it signals how far the terminology has spread into popular culture.
The reaction also says something about how audiences read actors. Affleck’s public image has long been shaped by tabloid coverage and blockbuster roles, so a glimpse of nerdy curiosity reads as a reveal. Fans online treated it as proof that the actor had more in common with his film’s mathematical hero than anyone suspected.
For Chinese readers, the story lands in a lively local conversation about AI literacy. Chinese social media regularly debates whether ordinary workers need to understand large language models, and short videos explaining concepts such as convolution and edge detection draw large audiences. A Hollywood actor joining that conversation, even casually, makes the subject feel less remote.
Affleck’s remarks are unlikely to turn him into an engineer. But they show how thoroughly the language of machine learning has entered mainstream life, and why a few sentences about Python in a magazine interview can become a global talking point.