跪拜 Guibai
← All articles
Programmer

Ada Lovelace Wrote the First Program, Then Lost a Fortune Trying to Predict Horse Races With Math

By 李剑一 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

The origin of programming is not a clean story of technical progress; Lovelace's life shows that the same conceptual boldness that creates breakthroughs can blind someone to the limits of probabilistic models when applied to human systems, a caution that still applies to data-driven claims today.

Summary

Born in 1815 as Lord Byron's daughter, Ada Lovelace was raised on a strict diet of mathematics to suppress any inherited poetic impulse. The strategy backfired: she fused the two, producing a vision of Babbage's unbuilt Analytical Engine that went far beyond arithmetic. Her 1843 notes, especially Note G, contain the first algorithm designed for a machine, a Bernoulli-number calculation now recognized as the first computer program.

She saw the engine could handle symbols, music, and text, not just numbers, predicting general-purpose computing a full century before the first electronic computers existed. But the same bold confidence led her to believe mathematical probability could predict horse races. She built a betting system, lost roughly £3,200, pawned family jewels, and slid into debt and scandal. She died at 36 of uterine cancer, the same age as her father, whom she never met.

Takeaways
— Ada Lovelace was born in 1815 to Lord Byron and Anne Isabella, who separated a month after her birth.
— Her mother designed an education heavy in mathematics and science to suppress her poetic side, but Lovelace kept her imagination alive.
— In 1843, Lovelace translated a French paper on Babbage's Analytical Engine and added Notes A-G; Note G contains a complete algorithm for calculating Bernoulli numbers, considered the first computer program.
— She envisioned the machine processing symbols, music, and text, not just numbers, anticipating general-purpose computing.
— She lost about £3,200 gambling on horse races using a mathematical prediction model, pawned family jewels, and fell into debt.
— She died in 1852 at age 36, the same age as her father, and asked to be buried with him.
— Ada Lovelace Day is observed on the second Tuesday of October to honor women in technology.
— The U.S. Department of Defense named the Ada programming language after her, used for high-reliability systems.
Conclusions

The article frames Lovelace's life as a collision of rationality and romance: her mother's attempt to erase her father's influence produced a thinker who saw mathematical machinery as a creative medium.

Her gambling scheme reveals a recurring pattern: she applied algorithmic thinking to a domain with too many variables and no way to account for human unpredictability, a mistake still common in data-driven prediction.

Her vision of general-purpose computing lay ignored for a century largely because Victorian institutions dismissed a woman's work, showing how bias can suppress genuine technical foresight.

Concepts & terms
Analytical Engine
Charles Babbage's design for a mechanical general-purpose computer, with memory, an arithmetic unit, and loop control; it was never built, but its architecture anticipated modern computing.
Bernoulli numbers
A sequence of rational numbers used in number theory and calculus; Lovelace's algorithm to compute them is recognized as the first computer program.
Ada programming language
A high-level programming language named after Ada Lovelace, developed by the U.S. Department of Defense for high-reliability systems in aerospace and defense.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗