Mathematicians, software developers, and everyone else who is wringing their hands about their craft becoming obsolete should look at how artists responded to the invention and deployment of photography.
Parallels: obvious; photography meant that the chief mundane purpose of art, visually depicting reality, was something that anybody could do,
Well not quite because early photography was an art in itself; the instant-camera model didn’t come until much later.
Solutions: artists shifted from depiction to expressivity, giving rise to various non-realist schools (impressionism, surrealism, etc.)
Antiparallels:
AI is eating everything at once and doing it much faster.
Software as an expressive art is not something people are very comfortable with.
Ok evaluate this, and there must be a vast literature on this so give me a summary
Your analogy holds up in places, but the familiar version of the story has three weak points. Your antiparallels are right, though they leave out the main problem.
Where the analogy is weaker than it looks
1. "Photography caused painters to turn to expression" is mostly a myth. The main text is Aaron Scharf's Art and Photography (1968). It showed that photography influenced painting heavily, and painters often copied directly from photographs (Aperture review). But Scharf's idea of "influence" has been criticised as loose and never properly examined (Baetens), and Kirk Varnedoe called his survey "inaccurate and misleading." Impressionism also had causes that had nothing to do with the camera, such as paint in tubes, painting outdoors, and new theories of colour. And abstract art arrived about 70 years after the daguerreotype. Photography fed into the change; it wasn't the only cause. Even the famous line "From today, painting is dead" from Delaroche can't be confirmed (Smithsonian).
2. You're comparing yourself to the wrong group. The painters who moved toward expression were the elite. The people whose work actually disappeared were the craft workers. Cheap photographic portraits made painted miniatures obsolete in the second half of the 1800s (Britannica). Many low-end miniaturists became photographers or earned a living hand-colouring photographs (ArtWeb). By 1900, "photographer" had replaced "miniature painter" as the main trade (Johnston Collection). Most working programmers are the miniaturists in this story, not Monet. The honest lesson is that the trade moved to the operators of the new technology, and the elite moved upmarket.
3. The escape route is exactly what's under attack this time. Photography couldn't produce style; generative AI imitates style directly. So "move to where the machine can't follow" was a real option for painters and is much less of one now. One commentator suggests photography will survive AI the way painting survived the camera: by being a record that someone was there (Santa Cruz Works). The general version of this escape is "the value lies in a human having done it." That points to chess after Deep Blue more than to impressionism.
Your antiparallels
Speed and breadth: correct, and probably the most important point. Painters had decades and one field under threat. Today there's no nearby field left untouched to retreat into.
Software as expressive art: partly correct. Knuth's 1974 Turing lecture "Computer Programming as an Art" made the case that both writing code and the code itself have an aesthetic (CACM). The idea exists. What's missing is a market for it. People pay for software because it works, just as they paid for portraits because they looked like the sitter.
Mathematics may be the exception. Thurston argued that the main achievement of mathematics is advancing human understanding, not producing theorems and proofs (summary). That gives mathematicians a principled place to stand that programmers don't clearly have. Venkatesh's recent writing on automation develops the same idea.
Missing antiparallels:
Cameras weren't built from painters' work, but generative models were trained on artists' work, mostly without consent or payment (same source).
Photography created a new job for a human operator. AI increasingly tries to replace the operator too.
The main literature
What people said at the time: Baudelaire, "The Modern Public and Photography" (Salon of 1859). He called photography "the refuge of all failed painters" (Comer Collection).
Theory: Walter Benjamin, "The Work of Art in the Age of Mechanical Reproduction" (1935). It's the standard account of how copying technology changes what art is for.
Art history: Scharf (1968) argues photography strongly influenced painting. Varnedoe's "The Artifice of Candor" argues against that.
AI-specific: Aaron Hertzmann, "Can Computers Create Art?" (2018). It explicitly treats photography as the key precedent and argues AI is a tool like the camera, not an artist (arXiv). For a counterargument, see critiques calling the camera comparison reductive (example).
Mathematics: Thurston (1994); Michael Harris, Mathematics without Apologies and his Silicon Reckoner newsletter; Venkatesh on automation.
Software: Knuth (1974); Paul Graham, Hackers and Painters.
Better comparisons to add
Human "computers": a job title wiped out entirely, which is the closest match for routine mathematical work.
Chess after 1997: the activity kept its value because humans doing it was the point.
The handloom weavers: fast, broad displacement where the losses fell on ordinary workers. That's the economic shape your speed-and-breadth point suggests.
Bottom line: the photography story fits the field as a whole (the medium lived on and changed) better than it fits the people working in it. It's comforting mainly if you assume you're one of the elite.