The incredible story of the world's first programmer Ada Lovelace. Ada Lovelace: biography, personal life, achievements, photos

On December 10, 1815, a girl named Ada Augusta was born in England. Her parents were legendary people. Mother, Anna Isabel, belonged to the famous aristocratic Milbank family, possessed not only beauty and wealth, but also an extraordinary mind. And the girl’s father was the famous poet George Gordon Byron...

Soon after the birth of Ada Augusta, an event occurred in the Byron family, which is still talked about in all literature textbooks - the poet left England and went to Europe. And at the same time he left his small family and newborn daughter forever.

But Anna Isabel, having survived the initial shock, still did not break and managed to raise her daughter as a truly unique personality. girl with early years showed an extraordinary interest in mathematics, and her mother happily supported this hobby in her.

The fact that Ada’s mother, after the departure of her poet husband, disliked literature and all the fine arts, also played a role here. The exact sciences seemed to her a symbol of an orderly and honest life. Anna Isabelle was herself interested in mathematics, and her husband once, during their happy family life, came up with the nickname “Queen of Parallelograms” for her.

Her first acquaintance with the outstanding mathematician and inventor Charles Babage, the creator of the first program-controlled digital computer, which he called “analytical,” dates back to 1834. Babbage, who knew Lady Byron, encouraged young Ada's passion for mathematics. Babbage constantly monitored Ada's scientific pursuits; he selected and sent her articles and books, primarily on mathematical issues.

Augusta Ada's family life was happy. In 1835, Ada Byron, aged nineteen, married 29-year-old Lord King, who later became Earl of Lovelace. The husband had nothing against his wife’s scientific pursuits and even encouraged her in them. True, highly appreciating her mental abilities, he lamented: “What an excellent general you could become!” The Lovelace couple led a social lifestyle, regularly hosting receptions and evenings at their London home and the Oakhut Park country estate. Ada's marriage did not alienate her from Babbage; their relationship became even more cordial. At the beginning of their acquaintance, Babbage was attracted by the girl’s mathematical abilities. Subsequently, Babbage found in her a person who supported all his bold endeavors. Ada was almost the same age as his daughter who died early. All this led to a warm and sincere attitude towards Ada for many years.

The Lovelace couple had a son in 1836, a daughter in 1838 and a son in 1839. Naturally, this took Ada away from mathematics for a while. But soon after the birth of her third child, she turns to Babbage with a request to find her a mathematics teacher. At the same time, she writes that she has the strength to go as far in achieving her goals as she wishes. Babbage, in a letter dated November 29, 1839, responds to Lovelace: “I think that your mathematical abilities are so obvious that they do not need testing. I made inquiries, but at present I have not been able to find a person whom I could recommend to you as a teacher. I will continue searching"

From the beginning of 1841, Lovelace began seriously studying Babbage's machines . In one of her letters to Babbage, Ada writes: “You must tell me basic information regarding your machine. I have good reason for wanting this." In a letter dated January 12, 1841, she outlines her plans: “...For some time in the future (maybe within 3 or 4, or perhaps even many years) my head may serve you for your purposes and plans... Exactly I want to have a serious conversation with you on this issue." This offer was gratefully accepted by Babbage. Since that time, their cooperation has not been interrupted and has produced brilliant results.

December 29, 2016 at 03:52 pm

Ada Lovelace. The world's first program and a look into the future

  • Mathematics ,
  • Programming

Ada Lovelace

On December 10, 1815, Ada Lovelace was born, known to most of us as the world's very first programmer. It just so happens that this title belongs to a representative of the fair sex. Today marks the two hundred and one year anniversary of the birth of this man. And in this post I would like to talk a little about the most interesting moments from her life, without getting off with fragmentary phrases, but without going too deep into details. The material can be found anywhere with the Internet at hand. However, few people will go looking for it just for fun. Therefore, if anyone is interested, welcome to cat.

While studying at school, sitting in literature classes, I knew very well who George Byron was.


We read and, if desired, memorized his poems. After a while, having chosen a profession for myself, I learned about who the mysterious Ada Lovelace was - the first girl programmer, the daughter of that same Lord George Byron. Then it turned out to be an amazing discovery for me. For the rest of my life I remembered who Ada was and, somehow completely unnoticed by myself, I forgot about Byron himself.

Augusta Ada King (later Countess Lovelace, but more on that later) was the daughter of the English poet Lord George Gordon Byron and his wife, Anna Isabella Byron. However, Byron left them a month after the birth of his daughter, and they never saw each other again. Byron himself died when Ada was eight years old. He himself recalled his daughter more than once in his poems.

It is clear that Ada herself grew up in a rather talented family. Her mother, Anna Isabel, was very interested in mathematics even before the birth of her daughter, for which she once received a funny nickname from her husband - “the queen of parallelograms.” This was a truly unusual family. Anna, after her husband left, still managed to raise her daughter alone and this is what came of it.

At the age of twelve, Ada assembled her own flying machine! Before this, a twelve-year-old girl locked herself in her room from her mother for some time and wrote something. Her mother was afraid that she would start reading her father’s poems and go down the same path. However, all this time she was drawing.

Mathematical logic occupied her more than anything else. One day Ada fell ill and spent three years in bed. But all this time she wanted and continued to study. A variety of doctors and teachers came to see her. One of them was Augustus de Morgan, a famous mathematician and logician (yes, de Morgan’s law is named after him). Since then, Ada has become even more immersed in the world of mathematics.


As a result, Ada grew up to be a unique girl. She was beautiful and smart, just like her mother, she studied mathematics, and even surpassed the guys from Cambridge and Oxford in conversations on scientific topics. Among other people, mostly women, this caused hidden anger and envy. It was often spoken of as something dark, even devilish. It must be said that Ada herself felt unusual powers (it’s funny, but in Russian her name actually sounds a little devilish). But there is nothing unusual in this, since a girl mathematician in the high English society of that time - from the outside it really looked strange. Meanwhile, many men were crazy about her.

Mathematics is mathematics, but how did it happen that programmers remember it first of all? One of Ada Lovelace's most fateful meetings was her meeting with Charles Babbage, the inventor of the first analytical computer.


At that time, in France, where Babbage arrived, a large-scale project was launched to create tables of values ​​of logarithms and trigonometric functions. Babbage began to dream of automating this work, at the same time eliminating possible human errors, since at that time it was people who manually created such tables. So Babbage thought about building his difference engine (calculating a polynomial using the difference method).

He created a huge number of drawings, and the prototype itself was completed in 1832, the same one that Ada Lovelace would see a year later.

In 1835, Ada would marry a very worthy man - Baron William King, who was subsequently awarded the title of Earl, and Ada herself became Countess of Lovelace. Four years later they already had three children - two sons and a daughter. The sons of Hell were named after their father - one was named Ralph Gordon, and the other - Byron.

But what about that very first program in the world? And what is the fate of Babbage's machine? In 1842, Italian scientist Luis Manebrea would write a book about Babbage's machine. Ada, at Babbage's request, will translate it. During the translation of the book itself, she made a huge number of comments, seeing in this machine seems more than Babbage himself.

Here are her words: “The essence and purpose of the machine will change depending on what information we put into it. The machine will be able to write music, paint pictures and show science ways that we have never seen anywhere.” Alan Turing subsequently read her notes, introducing into his works the term Lady Lovelace’s objection to the ability of machines to think.

At the same time, when describing Babbage's machine, it was Ada who coined such computer terms as cycle and cell. She also compiled a set of operations for calculating Bernoulli numbers. This is what essentially became the very first computer program. Babbage never built his machine; it was assembled after his death and is now kept in the Science Museum in London.

Ada Lovelace herself died on November 27, 1852, at just 36 years of age. Exactly as long as her father lived. She was buried in the family crypt along with her father, whom she never recognized.
The Ada programming language, developed in the 1980s by the US Department of Defense, was named after Ada Lovelace.

P.S. Probably, those people for whom the phrase “The first programmer was a girl” causes dissatisfaction or a smile should at least once take an interest in the biography of this person. People like Ada Lovelace or Alan Turing and many others are worth remembering. And for some, these stories are another reason to understand that nothing is impossible in the world.

Thanks to those who read this article. Share your opinions, comments or observations).

Her whole life was the apotheosis of a great battle between the world of emotions and the world of logic, between the subjective and the objective, between poetry and mathematics, between poor health and explosions of energy!

Betty Toole. Ada: The Enchantress of Numbers


The life of Ada Lovelace forms a kind of mythic resonance with our digital age: respectful visits to Ada's grave now outnumber pilgrimages to the grave of her father, the poet Byron.

Bruce Sterling


December 10 became Programmer's Day in honor of the first representative of this not very ancient profession, Ada Byron. Precisely because the daughter of the poet Byron remained in the history of science - rightly or wrongly - good fairy, leaning towards the cradle of the first computer. Declaring herself the “Grand Priestess of Babbage’s Machine,” Ada was indeed more than just a symbolic figure in Victorian salons...

Ada Augusta Byron-King, Countess of Lovelace, was born exactly 200 years ago, on December 10, 1815 in London into an extraordinary family for a conservative, prim country. At the insistence of her father, the poet George Noel Gordon, Lord Byron, in whose veins flowed the blood of the powerful Scottish clan of the Gordons, the girl received her first name Augusta (Augusta) in honor of his half-sister, with whom he was rumored to have had an affair. novel and to which the poet dedicated the famous “Stanzas to Augusta”. Father, first and foremost last time who saw his daughter a month after birth, leaving his wife, went to revolutionary Garibaldian Italy when the girl was two months old, and never appeared in the family circle again. On April 21, 1816, Byron signed a formal divorce. Numerous biographers invariably mention that the father dedicated just a few touching lines to little Ada, his only legitimate child, in “Childe Harold’s Pilgrimage” (translation by G. Shengeli):
"O my daughter! I am in your name
Opened the chapter; they need to finish it.
I will remain your family forever,
At least I can’t glance at you.
Only you - in the shadows of distant years - are a consolation.
In your visions my future
A melody, forgotten by me from childhood, will enter,
And touch your heart with live music,
When mine dies in an icy grave
".
Several more stanzas follow in the same tone, and they end with a father’s blessing:
"Sleep sweetly in the cradle, without worry:
I'm across the sea, from a mountain height
I send you my blessings, my beloved,
What could you become for my languor!
",

But at the same time, in a letter to his cousin, he was worried in advance: “ I hope that the gods gave her everything except the poetic gift - one madman in the family is enough...". But there were other lines dedicated to the daughter. Here is an excerpt from “Farewell to Lady Byron” (translation by I. Kozlov):
"And at the hour when you caress our daughter,
Admiring the babble of speeches,
How are you hinting about your father?
Her father is separated from her.
When the little one catches your gaze,
When you kiss her, remember
About the one who begs you for happiness,
Who found heaven in your love.
And if there is any resemblance in it
With the father you abandoned,
Your heart will suddenly flutter,
And the trembling of the heart will be mine
".

The upbringing of the world's first programmer fell entirely on the fragile shoulders of her mother - the lovely Anna Isabelle (Anabella) Milbank, Lady Byron, “an extraordinary woman, poetess, mathematician, philosopher,” as Byron described her back in 1813, who gave her the nickname “Queen of Parallelograms.” . However, not right away: the mother of the newborn, having given the child to her parents, went on a health cruise. She returned when it was time to start raising the child. Various biographies make different claims as to whether Ada lived with her mother: some claim that her mother took first place in her life, even in her marriage; according to other sources, she never knew either parent. The poet’s wife did not fall into melancholy and despondency, but, disdaining secular gossip, raised her daughter and gave her the opportunity to receive the most advanced education at that time. The girl became interested in music and mathematics early on, which could not but please Lady Byron. For all the fears of her world were hidden in other spheres - in the field of literature and poetry. Lady Byron desperately tried to protect her daughter from the fatal (this is not a metaphor!) influence of her “fugitive” father. From any of his influence, to the point that all her father’s books were removed from the family library, and at the same time all poetry! In addition, after the divorce, her mother and mother's parents never called her Augusta, but only Ada.

And then something terrible happened: Ada Augusta fell ill with measles. Treat this serious illness at the beginning of the 19th century they still didn’t know how, the girl became disabled and spent three whole years in bed. However, this time was not wasted. The indomitable Lady Byron hired the best teachers in London, and the girl continued her education at home.

The period of illness brought into Ada Byron's social circle the magnificent Scottish mathematician, logician and mystic Augustus de Morgan, her mother's former teacher, and his wife, the famous Mary Somerville, who for outstanding achievements in mathematics and translated works with commentaries (in particular from the French "Treatise on celestial mechanics" mathematician and astronomer Pierre-Simon Laplace) was called the "queen of science of the 19th century". De Morgan, a great specialist in esoteric numerology, charmed an impressionable girl thirsting for a miracle with the magic of numbers, turned the strict logic of mathematics into magic that determined later life the future Countess of Lovelace. The teacher had such a high opinion of his student's abilities that he compared her with the Italian mathematician Maria Agnesi. Mary became a role model for her pupil... Lady Byron never managed to erase poetry from her daughter’s heart. She wrote poetry obsessively - with the help of mathematics.

Byron died at the age of 36 (in 1824), in Greece, for which he fought (Greek War of Independence, Greek Revolution - the armed struggle of the Greek people for independence from the Ottoman Empire, 1821-1832), giving it all of himself - his strength, talent and means. His remains were transported to England - to the family crypt in the Hunkell Torcard Church, near Newstead Abbey. Ada was only 9 years old at that time, and she had just begun to recover, getting out of bed.


Ada, in the most unexpected way, lived up to her mother's hopes. At the beginning of 1828, she suddenly developed a tendency to spend all her free time from studying behind the closed doors of her room. Lady Byron quite naturally suspected her daughter of writing poetry and was seriously frightened. The “father’s shadow” loomed clearly and terribly on the family horizon. For several difficult evenings, Anna Isabelle desperately overcame her maternal instinct in favor of “breadth of views,” and then her patience snapped, and she demanded an account from her daughter. The twelve-year-old girl pulled out a stack of papers from under the bed and, blushing desperately with embarrassment, showed Lady Byron... professionally executed drawings of an aircraft of her own design. At the age of 12, Ada dreamed not of a fairy-tale prince, but of mechanical wings that could tear her off the ground and lift her into the sky. And she didn’t just dream, she created wings! Ada inherited from her mother a love of mathematics and many of her father’s traits, including a similar emotional character... They say that since then, not only “Myths of Ancient Greece”, but also the works of Blaise Pascal, Isaac Newton, and brothers spent the night in the young lady’s room Bernoulli and other mathematical giants. However, there is evidence that Ada secretly wrote poetry, ashamed of it like some kind of hereditary plague. She realized her poetic inclinations much later. At thirty, Ada wrote to her mother: " If you cannot give me poetry, will you then give me poetic science?"

And now Ada turned 17. Her first appearance in public awaits... Ada Byron made a splash. The capital's gentlemen besieged the beautiful young lady in droves, instantly losing their orthodox British stiffness. To understand the origins of the Ada phenomenon, it is necessary to understand what high society in Great Britain was like at the beginning of the distant 19th century. The defeated Bonaparte was still languishing on the island of St. Helena, and Europe had already healed its war wounds and rushed “to science.” Discussions of “fish and sea creatures,” “the movement of the celestial spheres and luminaries,” and “the belts of the Earth’s structure” became fashionable, and then, in the 20s and 30s, they became a mandatory norm, an indicator of advanced European secularism. Of course, all this gentlemanly scholarship smacked of amateurism. Even the word “scientist” had not yet been invented (the term “scientist” was introduced into use only in 1836). However, it cannot be denied that high society was fully prepared for the appearance of a female mathematician in its midst. Moreover, society longed to adore such a woman!

And Ada did not disappoint them! Slender, exquisitely pale (3 years of imprisonment had an effect), intelligent, superbly educated, and besides, by nature, to a large extent - the daughter of that same Byron, lord and poet! She danced beautifully, played several instruments, dressed beautifully and tastefully, and knew several languages. But these were far from her only advantages. The passion sown at the time by de Morgan bore abundant fruit. With a charming smile, she could make the most imperturbable gentleman blush, turn pale and stutter with her questions, and, if rumors are to be believed, she knew evil spirits, otherwise where did such intelligence and logic come from that baffled the London dandies who had Oxford or Cambridge behind them? Beauty, Mathematics and Mysticism - this is the real portrait of Ada Augusta Byron. Of course, there were some jealous rumors - one of the ladies spread “true information” that it was not without reason that she was enjoying such a resounding success - the devil himself could not do it without it! How did Ada Byron react to these insinuations? No way. She only smiled brighter, which, in turn, led to a paradoxical result: society fell in love with her even more. However, this is easy to explain - mysticism in its many manifestations was revered in those days as the same science as everyone else. In the end, what is more mysterious - the pride of Lucifer, the fallen angel of Light, or the theory of numbers? Where are there more secrets? Or is the measure of their mystery equal?... The girl immediately received her first lifelong title: London's high society proclaimed her the Diadem of the Circle.

At one of these social events (very characteristic of the era - it was a technological exhibition), young Ada Byron was introduced to the outstanding mathematician, professor of mathematics at Cambridge University, member of the Royal Scientific Society, Charles Babbage - a man whose fate was inextricably intertwined with the fate of our heroine. Young Miss Byron first heard the name Charles Babbage at the dinner table from Mary Somerville. A few weeks later, on June 5, 1833, they met for the first time. However, in order to get closer to understanding the origins of Charles Babbage's mathematics, it is necessary to return to the character already mentioned above - Napoleon I Bonaparte.

So, France, 1790. The genius of the great emperor reforms continental Europe. No, we are not talking about driving on the left side here. Let's remember another, much more revolutionary innovation: metric system measures and weights. The Emperor summoned the head of the Census Bureau, Baron de Prony, and gave him a task. It was necessary to prepare new, progressive tables of logarithms in the shortest possible time. The baron was not strong in mathematics, but he had a very good understanding of the theory of production. In particular, what we, thanks to school social studies, call the division of labor. And, obeying the imperial order, de Prony developed the technology. He divided the entire calculation process into three stages: the first - the strongest mathematicians, led by Adrien Legendre and Lazare Carnot, developed mathematical software, the second - the “middle link” organized the calculation process and made sure that it did not fail, the third - dozens of the most common ordinary counters carried out direct calculations. Does this distribution remind you of anything? Mathematical (software) software - organization of calculations - calculation (data processing). Is it necessary to mention that “human computers” in this system were called “computers” (from English “ compute" - "calculate")?

De Prony was unlucky. The tables developed by his Bureau were never published due to the war. However, four decades later, de Prony’s works ended up on Babbage’s desk. The Englishman, having studied the French method of dividing mathematical calculations, was completely delighted. Then he had an idea: what if “human computers,” this “unreliable human material,” were replaced by more advanced mechanical devices? After all, the calculations of “computers” are not at all complicated, representing the addition and subtraction of small numbers. There are just a lot of them. The project started in 1822, it was called the Difference Engine and was supposed to be (in modern terminology) a huge, extremely complex adding machine. However, despite government funding that was good at that time, it happily died out in 1834, its documentation ended up in warehouses and on the shelves of scientific offices. There were many reasons for this; the main ones are the negligence of chief engineer Joseph Clement and the loss of interest in the project of Babbage himself. The fact is that already in 1833, the mathematician conceived an even more revolutionary step: to make the machine work under the control of an external program, and not to replace one process with a mechanical device. This unit, called the Analytical Engine, was developed by Charles Babbage on paper in 1834. This was the world's very first fully functional computer. It featured a central processor (in Babbage's terminology, a "mill"), input of programs ("instructions") using perforated cards (such a term did not yet exist, but the prototype of the modern card was well known and was used since 1801 in a weaving loom Jacquard), a memory block (“barn”) with 1000 registers, in which the initial data and intermediate results were stored, a printing device, the role of which was performed by a printing press. The internal representation of numbers was decimal. Numbers could be transferred to the “mill”, processed there and returned to one or another register of the “barn”. The author intended to power the unit, which consisted of thousands of mechanical gears, with the only force known at that time—steam. By the way, in 1991, English scientists built a mechanical computer based on Babbage’s drawings (located in the Kensington Science Museum). One division or multiplication operation takes her 2-3 minutes. The speed of modern computers is 10 to the 8th power of operations per second.

However, let's not focus on the details. A detailed description of Babbage's machine is a topic for another discussion. Much more important for us is that in 1833 Babbage met young Ada Augusta Byron. At a technology exhibition, Babbage publicly announced his new development for the first time. Naturally, his speech was oversaturated with mathematical terms and logical calculations, which were difficult for an unprepared London dandy to understand. And Ada understood. De Morgan, not without pride in his student, describes Ada’s first meeting with the proto-computer: “ While some of the guests looked in amazement at this amazing device through the eyes of savages who saw the mirror for the first time, Miss Byron, still very young, was able to understand the operation of the machine and appreciated the great merit of the invention"Moreover, she bombarded Charles with questions about the essence of the problem. Babbage was completely fascinated by the girl’s talents, and Ada finally became clear what exactly she was looking for. The young lady’s obsession with mathematics was embodied. And what! A new, unknown opportunity opened up with the help of mathematicians to force a machine to help a person solve mathematical problems! Is it only mathematical problems? Yes, only. However, are there many areas in the life of enlightened humanity in which mathematical problems do not appear?...

Babbage, who knew Annabella Byron, supported the girl’s passion for mathematics, constantly monitored Ada’s scientific studies, selected and sent her articles and books, primarily on mathematical issues. Ada plunged headlong into Babbage's project. Mathematics spread its wings and soared. The dialogue between Babbage and Ada Augusta, in personal meetings and in lively correspondence, continued for many years. Charles Babbage sincerely fell in love with this girl; he found in her the main thing that he valued in people - sharpness of mind. Perhaps the fact that Ada was almost the same age as his daughter who died early also played a role. All this led to a warm and sincere attitude towards Ada.

It cannot be said that Ada Augusta’s life interests focused exclusively on mathematics and computer technology. So, in July 1835, at the age of 20, Ada Augusta married her longtime admirer William, the eighth Lord King. Really long ago - Lord King courted his betrothed for 10 years. Sir William, who was 29 years old at the time, was a calm, even-tempered and affable man. He approved of his wife's scientific pursuits and even encouraged her in them.

The autocharacteristic given by Ada in one of her letters to Babbage is very expressive: “ My brain is more than just a mortal substance; I hope time will tell (unless my breathing etc. progresses too quickly towards death). I swear to the devil that within ten years I will suck some of the life-blood from the mysteries of the universe, and in a way that ordinary mortal minds and lips could not do. No one knows what terrifying energy and power lie still untapped within my little flexible being. I said "terrifying" because you can imagine what that means in some circumstances. Count L. sometimes says: “What kind of general could you be.” Imagine me over time in social and political concerns (I always dreamed of having world power, strength and glory - this dream will never come true...). It is good for the universe that my aspirations and ambitions are forever connected with the spiritual world and that I do not intend to deal with sabers, poisons and intrigues".

It is unlikely that Count William felt like the true head of the family. Despite the high-profile title, the mother-in-law, Lady Byron, ruled the house, once again proving her unbending character. At first, the count still tried to change something, to insist on something, but then he shrugged his shoulders in the British way, decided that health was more important, and devoted himself entirely to managing the fief. Countess Ada taught children, was interested in music, and continued her dialogue with Babbage. The Lovelaces led a social lifestyle, regularly hosting receptions and evenings at their London home and country estate of Oakhut Park. Ada's marriage did not alienate her from Babbage; their relationship became even more cordial.

The Lovelace couple had a son named Byron on May 12, 1836, a daughter named Annabella (Lady Anne Blue) on September 22, 1837, and a son named Ralph Gordon on July 2, 1839. Naturally, this took Ada away from mathematics for a while. At the same time, Lord and Lady King were granted an earldom, and with it the titles of earldom. This is how our heroine received her full name - Ada Augusta Byron-King, Countess of Lovelace. Soon after the birth of her third child, she turns to Babbage with a request to find her a mathematics teacher. At the same time, she writes that she has the strength to go as far in achieving her goals as she wishes. Babbage, in a letter dated November 29, 1839, responds to Lovelace: “I think that your mathematical abilities are so obvious that they do not need testing. I made inquiries, but at present I have not been able to find a person whom I could recommend to you as a teacher. I'll keep searching".

Ada was vertically challenged, and Babbage, when mentioning her, often called her a fairy. The editor of Examiner magazine once described it as follows: " She was amazing, and her genius (and she had genius) was not poetic, but mathematical and metaphysical, her mind was in constant motion, which was combined with great demands. Along with such masculine qualities as firmness and determination, Lady Lovelace was characterized by delicacy and refinement of the most refined nature. Her manners, tastes, education... were feminine in in a good way of this word, and the superficial observer could never have guessed the power and knowledge that lay hidden beneath the feminine attractiveness. As much as she disliked frivolity and banality, she loved to enjoy real intellectual society."

From the beginning of 1841, Lovelace began seriously studying Babbage's machines. In one of her letters to Babbage, Ada writes: " You must provide me with basic information regarding your car. I have good reason for wanting this". In a letter dated January 12, 1841, she outlines her plans: " ...Some time in the future (maybe within 3 or 4, and perhaps even many years) my head can serve you for your goals and plans... It is on this issue that I want to seriously talk with you". This proposal was accepted with gratitude by Babbage. Since then, their cooperation has not been interrupted and has produced brilliant results. However, clouds soon began to gather over Babbage. In his homeland, his incomprehensible device went out of fashion, and the inventor was forced to go to the continent with lectures.

In October 1842, the outstanding Italian mathematician and engineer Luigi Federigo Menabrea, teacher of ballistics at the Turin Artillery Academy (later a general in Garibaldi's army, and then Prime Minister of Italy) published in the Public Library of Geneva "An Essay on the Analytical Engine Invented by Charles Babbage", based on Charles Babbage's seminar on his Analytical Engine. The book was written in French, and Babbage turned to Ada Augusta with a request to translate it into the language of Foggy Albion. Countess Lovelace, reasonably judging that her mother had enough to deal with her son-in-law, grandchildren and a large staff of domestic servants, happily returned to the world of mathematics, deciding to devote herself entirely to her favorite science, working on Babbage’s machine and its wide popularization. Thus, marriage not only did not prevent Ada from enthusiastically surrendering to what she considered her calling, but even made her work easier: she had uninterruptible source financing in the form of the family treasury of the Earls of Lovelace.

For nine months, the Countess worked on the text of the book, simultaneously supplementing it, on Babbage’s advice, with her own comments and observations. The translation of Menabrea's article took 20 pages, while Ada Lovelace's notes took two and a half times more, 50 pages. This comparison alone shows that Ada Lovelace was by no means limited to the role of a simple commentator. Moreover, Menabrea's article dealt more with the technical side of the matter, while Lovelace's notes dealt more with the mathematical side. After receiving the first proofs on July 4, 1843, she writes to Babbage: " I want to introduce an example in one of the notes: the calculation of Bernoulli numbers as an example of a machine computing an undefined function without first solving it using the human head and hands. Send me the necessary data and formulas. Am I the devil or the angel? I work like the devil for you, my dear Babbage: I sift through Bernoulli numbers for you"At her request, Babbage sent all the necessary information and, wanting to save Ada from difficulties, he himself compiled an algorithm for finding these numbers. But he made very gross mistake in drawing up an algorithm, and Ada immediately discovered this. She independently wrote a program to calculate Bernoulli numbers. This program, recognized as the first program specifically implemented for playback on a computer, is of exceptional interest, since the size, complexity and mathematical formulation of this problem cannot be compared with elementary examples. This example allowed Lovelace to fully demonstrate the technique of programming on the Analytical Engine and the advantages that the latter provides with a suitable method of calculation. On July 6, 1843, the work was transferred to the printing house. And a miracle happened - these comments and remarks made her famous in the world of high science, and at the same time introduced her into history.

Anticipating the “stages” of computer programming, Ada Lovelace, like modern mathematicians, begins by stating a problem, then chooses a calculation method convenient for programming, and only then proceeds to compiling a program. This program delighted Babbage; he spared no words of praise for its author, and they were well deserved. Support and kind words strengthened Ada's confidence and gave her strength to work. Success came to her with great stress and not without damage to her health, which she repeatedly complains about in letters to Babbage. Lovelace wanted this and subsequent works that she dreamed of to be somehow associated with her name. However, at that time it was considered indecent for a woman to publish her works under her full name, and Ada decides to put only her initials on the title - AAL (Augusta Ada Lovelace). Therefore, her works, like the works of many other women scientists, remained in oblivion for a long time.

Lovelace's comments laid the foundations for modern programming, based on the ideas and principles that she expressed. They contained the world's three first computer programs, compiled by her for Babbage's machine. The simplest of them and the most detailed is a program for solving a system of two linear algebraic equations with two unknowns. When analyzing this program, the concept of work cells (work variables) was first introduced and the idea of ​​sequentially changing their content was used. From this idea there is one step left to the assignment operator - one of the fundamental operations of all programming languages, including machine ones. A second program was written to calculate the values trigonometric function with repeated repetition of a given sequence of computational operations; For this procedure, Lovelace introduced the concept of a loop, one of the fundamental constructs of structured programming: " A cycle of operations is any group of operations that is repeated more than once.". The organization of cycles in the program significantly reduces its volume. Without such a reduction, the practical use of the Analytical Engine would be unrealistic, since it worked with punched cards, and a huge number of them would be required for each problem being solved. In the third program, designed for calculating numbers Bernoulli, recurrent nested loops had already been used.In her comments, Lovelace also expressed the excellent insight that computational operations could be performed not only on numbers, but also on other objects, without which computers would remain just powerful, high-speed calculators.

Charles Babbage found in Ada an exceptional promoter of his invention. Whether she was talking about the Analytical Engine, that “the possibilities of its mechanisms are so extensive that it will become the right hand of any specialist in abstract algebra,” or about the machine’s ability to “weave algebraic ideas in the same way as Jaccard’s loom weaves flowers and leaves,” Ada could find clear and precise words. Already at that time, Ada Lovelace was fully aware of the colossal “breadth of the spectrum” of the capabilities of a universal computer. At the same time, she very clearly understood the limits of these possibilities: " It is advisable to caution against exaggerating the capabilities of the Analytical Engine. The Analytical Engine does not pretend to create anything truly new. A machine can do everything that we can tell it to do. She can follow analysis; but it cannot predict any analytical relationships or truths. The functions of the machine are to help us obtain what we are already familiar with". She saw in the car something that the inventor himself was afraid to think about: " The essence and purpose of the machine will change depending on what information we put into it. The machine will be able to write music, draw pictures and show science ways that we have never seen anywhere.".

By the way, it was no coincidence that music was Ada’s second passion, after mathematics. She believed that the language of music, like the language of mathematics, brings her into contact with the Higher Powers - “another language for unearthly conversations.”

Explaining that Babbage's machine works not only with numbers, but also with abstract connections between concepts, Ada refers to the "fundamental relationships between sounds in the science of harmony and musical composition" that will make possible the "scientific composition of musical works of any complexity and duration." . Ada Augusta foresaw the purpose of the computer even before it was created. What has entered our lives today - a multifunctional tool for solving a huge number of applied problems - Ada saw in the distant 40s. XIX century! But the Countess took the next step, identifying the promising capabilities of the machine: " Development and batch processing of any functions... A machine is a mechanism for expressing any indefinite function of any degree of generality and complexity.".

Despite the girl’s unheard-of aplomb (“I think that I possess a unique combination of qualities that condemn me, like no one else, to discover the hidden reality in nature...”, “It is good for the Universe that my aspirations and ambitions are forever connected with the spiritual world, and that I am not going to deal with sabers, poison and intrigue instead of X, Y and Z"), who, however, having been deceived in her hopes regarding the flower of British science, subsequently became interested in mesmerism, Babbage admitted to sincere friendly feelings for his “mistress of numbers” , as evidenced by the small note announcing his arrival, dated September 9, 1843:
"My dear Lady Lovelace!
Desperate to wait until I had free time, I decided to drop everything and go to Ashley, taking with me enough papers to forget about this world, all its worries and, if possible, its countless charlatans - in short, about everything except the Lady of Numbers.
Do you currently live in Ashley? Will my arrival distract you from your business? I will arrive on Wednesday, or Thursday, or any other day, if it is more convenient for you. Should I turn off at Taunton or Bridgwater? Is Arbogast [author of the book “On the Calculus of Derivatives”] with you? I wanted to bring several books devoted to this monstrous problem - the three-body problem, which is almost as obscure as the famous De Tribus Impostoribus1. So if you have Arbogast, I'll bring something else.
With God, my dear and venerable interpreter.
Yours as never before
Ch. Babbage
".

Since 1844, Ada Lovelace became more and more interested in racing, especially since she herself rode well and loved horses. Both Babbage and William Lovelace played at the races, and Babbage, who was interested in applied issues of probability theory, considered the game at the races from these positions and looked for the optimal gaming system. In addition, in this way they wanted to get the missing amount for the construction of Babbage's Analytical Engine. Unfortunately, only their organizers manage to get rich from gambling. The “system” did not live up to expectations, having lost a rather impressive amount, Babbage and Count Lovelace refused to participate in improving the “system”. But Lady Ada, gambling and stubborn, became a gambling addict, bogged down in debt and even pawning the family jewels. London society was frightened by the pressure with which this woman begged for money under her protégé. Inflamed, she turned for help to everyone she knew, including her great contemporaries: Michael Faraday, David Brewster, Charles Wheatstone, Charles Dickens (who seriously believed that after her visits a trail of evil spirits remained in the house) ... alas, mostly receiving a refusal . Moreover, Lady Ada became close to a certain John Cross, who subsequently blackmailed her. She spent almost all her funds, and by 1848 she had derailed her husband's fortune. Then her mother had to pay off these debts, and at the same time buy incriminating letters from the notorious John Cross...

Perhaps these persecutions, threats, and failures to create a win-win system undermined the health of this amazing woman. In the early 50s, Ada Lovelace showed the first signs of illness. In November 1850 she writes to Babbage: " My health... is so bad that I want to accept your offer and show up to your medical friends when I arrive in London."Despite the measures taken, the disease progressed and was accompanied by severe suffering. Ironically, it was Charles Dickens, the singer of the fight against the dominance of machines, who yielded to Lady Lovelace's last wishes and came to read several pages of David Copperfield at her bedside. November 27, 1852 Ada Lovelace died from bloodletting while trying to treat uterine cancer, before reaching the age of 37. Along with her outstanding intellect, her father also passed on this terrible heredity - an early death - the poet died at the same age and also from bloodletting... According to the will, she was buried in the family crypt Byron in Nottinghamshire next to the grave of a father whom she had never seen in her life - a father from whom our heroine, despite all her mother’s tricks, inherited the understanding: to live means to burn! According to contemporaries, from that time on, the graves of two geniuses - father and daughter - became a place of pilgrimage, and more often people came to worship not the great poet, but an amazing woman who was able to look into the future.

Time has not erased the memory of this amazing woman. The name of Ada Lovelace was resurrected from obscurity in the mid-1930s in connection with the work of the English mathematician Alan Turing, who introduced the concept of a logical algorithmic structure, called the “Turing machine,” as well as the subsequent creation of the first electronic computers.

Two small cities in America are named after Ada Lovelace - in the states of Alabama and Oklahoma. There is also a college named after her in Oklahoma.

The Ada language is named in memory of Ada Lovelace. By the late 1970s, research conducted by the US Department of Defense revealed that there was no high-level programming language that could support all the major steps in software creation. The use of different programming languages ​​in different applications led to incompatibility of developed programs, duplication of development and other undesirable phenomena, including an increase in the cost of software, many times higher than the cost of the software itself. computer technology. The way out of the crisis was seen in the development of a unified programming language, its support environment and application methodology. All three components of this project were developed very carefully with the involvement of the most qualified specialists from different countries. In 1975, the US Department of Defense decided to begin developing a universal programming language for the US armed forces, and subsequently for the entire NATO. In May 1979, the winner of a language development competition was the language "Ada", named after Ada Augusta Lovelace and proposed by a group led by the Frenchman Jean Ishbia. The minister read the historical excursion prepared by the secretaries and without hesitation approved both the project itself and the proposed name for the future language - “Ada”. On December 10, 1980, the language standard was approved. In the USSR in the 80s, a working group on the language of Ada was organized under the State Committee for Science and Technology. The group studied all open (as well as, according to rumors, secretly obtained by intelligence) data on the Ada language and investigated the possibility and feasibility of the development and use of Ada in the USSR. The activities of this group led by the end of the 80s to the development of Ada compilers for almost all computers used in the USSR. Several books on the language of Ada have been published in Russian. At Moscow State University, work was carried out to create their own packages for testing ada translators for compliance with standards. At Leningrad State University, to create the Ada system, the Pallada system, previously developed for the implementation of Algol-68, was used, which was transferred to Ada. The system contains an integrated development environment, a compiler, a text editor, a debugger, libraries, a version control system and a command interpreter. After the collapse of the USSR, work on distributing Ada was practically interrupted. True, three programs for the development of software development in Ada were adopted (in the Ministry of Defense, the Ministry civil aviation and the Ministry of Education and Science), but their development is slow and uncoordinated. As a result, the language of Ada is little known in Russia; most modern Russian programmers They consider it a “dead language” and know nothing about it. Ada is used in Russia and the CIS by individual enthusiasts. In addition, Ada has, albeit very limited, application in the field higher education: Special courses on Ada are taught at Moscow State University and Kharkov University.
Example program "Hello, world!" on ADA:
with Ada.Text_IO ; procedure Hello is use Ada.Text_IO ; begin Put_Line("Hello, world!" ); end Hello ;
However, the language is used for industrial software development. There are several known projects developed at Ada operating in Russia, among them a set of standard flight, navigation and communications equipment for the Russian Beriev Be-200 amphibious aircraft. The development was carried out by the Research Institute of Aviation Equipment in Zhukovsky, together with the American company Allied Signal, Florida, USA. The development complex of ada systems from DDC-I on the Intel 80486 platform was used.

Russian witty programmers did not fail to play up the ambiguity of such a name (in the Russian sound, of course) and, as a counterweight to the language of “Hell,” they created their own algorithmic language, “Heaven.” The attack of the Soviet international journalist Melor Sturua, an ardent anti-Americanist, is also widely known: “ The Pentagon's language is the enemy of peace. The language of “Hell” is the voice of thermonuclear hell... In the language of “Hell” one can hear a curse on the human race". Well, this “Marx – Engels – Lenin – October Revolution” (this is how the name Malor stands for), as they say, went too far. Today not only the Pentagon, but not a single person in the civilized world can do without a computer and its software system. what Charles Babbage and Ada Lovelace worked so selflessly on is an unconditional gift to all of humanity.And that is why modern computer scientists celebrate July 19, when Ada wrote the first program, and December 10, when Ada Augusta Byron was born, as unofficial programmer days.

In 1997, Lynn Hershman-Leeson's fantasy film "Conceiving Ada" was released, the main character of which, Emmy, seeks to use time manipulation to find herself in the past in order to meet Augusta Ada King, played by Tilda Swinton. . In an effort to achieve her goal, Emmy even experiments with her own DNA, despite the danger of possible side effects... Lynn Hershman Leeson: " In her time, the “foremother of all programmers,” Ada Byron-King, Countess of Lovelace, created the first computer language and predicted its use in music, poetry and art. Ada was born in the Victorian era and was forced to lead double life. Therefore, the film is built on the principle of a double helix, forming a mysterious relationship between the story of Ada and the story of how DNA strands make genetic memory pass through four generations. Each episode is constructed and filmed using an image of a DNA molecule as a model. I felt it was extremely important to use the technology Ada discovered in my work because it provides another dimension to her story. A virtual reality and digital sound seemed to allow her to gain freedom of movement in time and thereby gave her appearance visibility and tangibility"Unfortunately, this wonderful film has not been translated into Russian.

A huge number of legends are associated with the image of Ada Augusta. Some of them are certainly true; some, as usual, are dubious.

So what if the Countess came to mathematics through esotericism? So what if Lady Ada's autographs are oversaturated with occultism and mysticism? Is this a reason to hang straw Voodoo dolls around your monitor and hold séances on your Windows desktop?

So what if the car that Ada loved so much was never built during her short life? In the 30s–40s. In the twentieth century, devices similar to the Analytical Engine were finally embodied in metal, briefly preceding the appearance of electronic computers.

So what if the decline of Ada Augusta's short life is overshadowed by ridiculous attempts to create a system for calculating win-win bets in gambling? Wasn't that brave? The search for squaring the circle is the lot of the restless and daring, to whom, as you know, we sing glory.

We have the main thing! Countess Lovelace's notes to Luis Menebrea's book take up only 52 pages. By and large, this is all that Ada Lovelace left for history. Some scientists work for decades and leave behind hundreds of works that are forgotten before the grave mound settles over the final resting place of their creators. Ada Lovelace, the great daughter of the great Byron, only needed 52 pages to go down in history. Often 52 pages can turn the world beyond recognition. Think about these words when you work with your computer, communicate on the Internet, or simply move the “kerchief”.

There can't be many opinions here:
smart as a daughter, great father!
Isn’t that why it arose then?
her genius is not at all feminine,
what incomprehensible thing did you comprehend?

Why does the Countess need a "subroutine"
and "index register" why?
Her destiny is perfume cream
and on the handkerchief there is a monogram,
and there wouldn't be any big problems.

But it’s nice when they’re like that
There are countesses in our world!
We sing honor to them today,
and people's praises
we can relate to sciences...

© Copyright: Philosophical Saksaul, 2010 Certificate of publication No. 110121001437

Based on materials:
Wikipedia
habrahabr.ru
chernykh.net
schools.keldysh.ru
Eleonora Mandalyan "Charles Babbage's Digital Computing Machine"

(George Gordon Byron) - was 27 years old, and at this age he gained great popularity in England thanks to his poetry. Her mother, Annabella Milbank, a 23-year-old progressive, inherited the title of Baroness Wentworth. Her father said he named her Ada because the name was short, ancient and melodious.

Ada's parents are a kind of study of opposites. Byron led a turbulent life, and perhaps became the most colorful "top bad boy" of the 19th century - with dark episodes from his childhood and adolescence and a large number of romantic and other stories. In addition to writing poetry and flouting the social norms of his time, he often did something unusual: keeping a tame bear in his room while studying at Cambridge, for example, or living with poets in Italy and “five peacocks on the main staircase” (quote from one of his acquaintances) Byron), wrote a textbook on Armenian grammar, and, if he had not died so early, would have led troops in the Greek War of Independence (as commemorated by the large statue in Athens), despite his complete lack of military training.

Annabella Milbank was an educated, religious and very correct woman, passionate about reforms and good deeds, whom Byron nicknamed “The Princess of Parallelograms.” Her marriage to Byron did not last long, and fell apart when Ada was only 5 weeks old; Ada never saw her father again (even though he kept a photograph of her on his desk and mentioned her in his poetry). He died aged 36 at the height of his fame, when Ada was 8. There was a huge fuss about him, spawning hundreds of books and a “holy war” between sympathizers of Lady Byron (as Ada’s mother imagined herself) and Byron himself, which lasted a century, if not more.

Ada spent her childhood isolated on her mother's rented estate, with governesses, teachers and her cat, Mrs. Puff. Her mother was often absent for various (rather stupid) reasons related to health activities, providing Ada with a rich education system with many hours of classes and self-control exercises. Ada studied history, literature, languages, geography, music, chemistry, sewing, cursive writing and mathematics (taught partly with an empirical approach) to the level of elementary geometry and algebra. When Ada was 11, she went with her mother and entourage on a year-long trip to Europe. When she returned, she was quite enthusiastic about learning what she called flyology, thinking about how the flight of a bird could be reproduced using steam engines.

Ada then contracted measles (and possibly encephalitis), ending up bedridden and in poor health for 3 years. She managed to fully recover by the time when, according to the customs of society of that time, girls should join society: closer to 17, she left for London. On June 5, 1833, 26 days after she was "presented at Court" (i.e., met the king), she was received by 41-year-old Charles Babbage (whose eldest son was the same age as Ada). She apparently charmed the owner, and he invited her and her mother to a demonstration of his newly created difference engine: a 60-centimeter tall, manually operated contraption with two thousand brass components, which can now be seen in the Science Museum in London:

Ada's mother called her a "thinking machine," and then said that she could find the roots of quadratic equations, as well as raise some numbers to the second and third powers. This event changed Ada's life.

Charles Babbage

What is the story of Charles Babbage? His father was a successful and enterprising jeweler and banker. After various schools and private tutors, Babbage went to Cambridge, where he studied mathematics, but soon became inspired by the idea of ​​modernizing the approaches to mathematics adopted there, and together with his lifelong friends John Herschel (son of the discoverer of Uranus) and George Peacock ( who later became a pioneer in abstract algebra), founded the Analytical Society (which later became the Cambridge Philosophical Society) to promote reforms such as, say, replacing Newton's dot notation (British) in calculations with Leibnizian (Continental) based on functions.

Babbage graduated from Cambridge in 1814 (a year before the birth of Ada Lovelace) and went with his wife to live in London, where he realized himself on the scientific and social scene. He did not have a job as such, but he lectured on astronomy and wrote several well-received papers in various mathematical fields (functional equations, infinite products, number theory, etc.), and was supported by his father and his wife's family.

In 1819, Babbage visited France and learned of a large-scale government project to create tables of logarithms and trigonometric functions. Mathematical tables in those days were of great importance in the military and commercial fields, and were used in science, finance, engineering calculations, and navigation. It has often been said that errors in tables can ground ships and destroy bridges.

Returning to England, Babbage founded a project with Herschel to create tables for their new astronomical community, and in attempting to test these tables, Babbage is said to have exclaimed: " I pray to God that these tables will be obtained by the power of steam!", which marked the beginning of his lifelong work in an attempt to mechanize the creation of these tables.

Level of development of this area

There were mechanical calculators long before Babbage. Pascal made one in 1642, and now we know that there was at least one in ancient times. But in Babbage's time, such machines were very rare and not reliable enough for regular use. Tables were created by human calculators (that was a profession), work was distributed across teams, and the most low-level calculations were based on estimating polynomials (say, series expansion) using the difference method.

Babbage thought that there might be such a device - difference engine- which will be able to calculate any polynomial up to a certain degree using the difference method, which will then automatically produce the result, reducing human factor, thereby, to zero.




(Museum of the History of Science)

By early 1822, 30-year-old Babbage was studying different kinds mechanisms, creating prototypes and thinking about what a difference engine could be. The astronomical society, of which he was a co-founder, awarded him a medal for his idea, and in 1823 the British government agreed to provide funding for a similar machine.

In 1824, Babbage went slightly off topic with his idea for a life insurance company, for which he made many calculation tables. However, he set up a workshop in his stable (his "garage") and continued to develop ideas on how to implement a difference engine using the components and tools of his time.

In 1827, a table of logarithms, compiled by hand, was finally completed, after which it was reprinted for approximately a hundred years. Babbage printed these tables on yellow paper, with the idea that this would reduce the number of errors when using them. (When I was studying at primary school, tables with logarithms were still the fastest way to calculate products).

In addition, Babbage's father died in 1827, leaving him an inheritance of about one hundred thousand pounds sterling, which is approximately equal to $14,000,000 in modern expression, and this money ensured Babbage's life for the rest of his life. That same year, however, his wife also died. She left him with eight children, of whom only three lived to adulthood.

Depressed by the death of his wife, Babbage went on a trip to continental Europe, and, impressed by the scientific achievements he saw, wrote a book - Reflections on the decline of science in England- which gave rise to sharp criticism of the Royal Society (of which he was a member).

Although often distracted, Babbage continued to work on the difference engine, producing thousands of pages of notes and design drawings. He was quite good at creating blueprints and experimenting with mechanisms. But he was not very good at managing the engineers he hired, nor was he very good at managing finances. However, by 1832, a small working prototype of a difference engine (without a printing device) was successfully completed. And this was exactly what Ada Lovelace saw in June 1833.


(Science Museum/Science and Society Image Library)

Back to Ada

Perhaps it was after Ada saw the difference machine that her interest in mathematics awoke. She met Mary Somerville, a translator of Laplace and a renowned expositor of science, and, partly under her influence, soon became an enthusiastic student of the works of Euclid. In 1834, Ada took part in a charity tour of factories in northern England organized by her mother, as a result of which she was impressed by the high-tech equipment they had by the standards of those times.

Upon her return, Ada taught mathematics to some of her mother's friends' daughters. She continued to teach classes by mail, noting that it could be " the beginning of a mathematical correspondence for many years between two ladies of the highest rank, which, no doubt, may hereafter be published as an instruction to mankind (mankind) or the feminine part of it (womankind - a play on words; man both as a man and as a man)“Ada’s letters did not contain complex mathematics, but she expressed it very clearly, accompanying the letters with instructions like “you should never limit yourself to indirect evidence if possible direct." (Much of Ada’s correspondence was underlined here in italics.)

Babbage, perhaps, initially underestimated Ada, trying to interest her in a toy, which was a mechanical doll ( Silver Lady automaton toy), which he demonstrated at his receptions. But Ada continued to communicate with Babbage and Somerville, both separately and together. And Babbage soon introduced her to many topics, including the problem of government financing of his project to create a difference engine.

In the spring of 1835, when Ada was 19, she met 30-year-old William King (or Lord William King to be precise). He was a friend of Mary Somerville's son, educated at Eton (the same school I went to 150 years later) and Cambridge, and then a civil servant, later at an outpost of the British Empire in the Greek Isles. William appears to have been an accurate, conscientious and decent man; maybe a little tough. But, in any case, Ada quickly got involved with him, and on July 8, 1835, they got married without announcing it until the last minute, fearing publicity and excessive press attention.

The next few years of Ada's life seem to be devoted to raising three children and running a large household, although she devoted some time to horse riding, learning to play the harp, and mathematics (including topics such as spherical trigonometry). In 1837, Queen Victoria (then 18) ascended the throne and, as a member of high society, Ada met her. In 1838, in connection with his public service, William was created an earldom and Ada became Countess of Lovelace.


(Powerhouse Museum in Sydney)

A few months after the birth of her third child in 1839, Ada returned to mathematics with a serious attitude. She told Babbage that she wanted to find a mathematics tutor in London, asking that her name not be used, probably for fear of publicity.

In correspondence with Babbage, Ada showed an interest in discrete mathematics and was surprised, for example, that solitaire " can be combined with mathematical formulas and solved"But in accordance with the traditions of mathematical education of that time (which extend to our time), de Morgan taught Ada mathematical analysis.


(British Library)

Her letters to de Morgan regarding calculus were not very different from those for students of calculus today, but they were something quite unusual for the times. Victorian England. Even many of the misconceptions are the same, although Ada was hurt more than usual by unfortunate notations in calculations (“ why can't you multiply by dx?", etc.). Ada was a persistent student, and seemed to enjoy plunging into the depths of mathematics. She was glad to discover her mathematical abilities and de Morgan's high assessment of them. She kept in touch with Babbage, and in one of his visits (in January 1841, when she was 25 years old), she charmingly told the then 49-year-old Babbage, “If you ice skating, promise to bring skates to Occam; it’s the hottest place right now and a must-visit.”

Ada's relationship with her mother was very difficult. From the outside it seemed that Ada treated her mother with great respect. But she seemed to constantly struggle with her mother's attempts to control and manipulate her. Ada's mother often complained about her health, lamenting that she was about to die (but in fact she lived to be 64 years old). She often criticized Ada on issues of raising children, housekeeping, and behavior in society. But on February 6, 1841, Ada had enough confidence in herself and her mathematics studies to write a very detailed letter to her mother about her thoughts and aspirations.

She wrote: " I consider myself to have a very rare combination of qualities ideally suited to make me a discoverer of the hidden realities of nature" She talked about her ambitions to create something great, about her "restless and restless energy", which, in her opinion, she found an application for. And she said that after 25 years she became less "secretive and suspicious" in relation to her.

But three weeks later, her mother revealed that Byron and his half-sister had a baby before Ada was born, and this news unsettled her. Incest was not illegal in England at the time, but it was a scandal. Ada found this difficult to accept, and for some time she distanced herself from mathematics.

Ada periodically had health problems, and in 1841, apparently, the situation worsened, and she began to systematically take opiates. She really wanted to succeed at something, and began to think that perhaps she should devote herself to music and literature. But her husband William seems to have dissuaded her from this idea, and at the end of 1842 she returned to mathematics.

Returning to Babbage

What was Babbage doing all this time? With a variety of things and with varying degrees of success.

After several attempts, he was able to secure a position as Lucasian Professor of Mathematics at Cambridge, but subsequently he did not visit there much. Nevertheless, he wrote, as it later turned out, a very important book - Economics of technology and production(On the Economy of Machinery and Manufactures), which dealt with how to allocate production tasks (a question that actually arose in connection with mathematical table calculations).

In 1837 he studied natural theology, popular at that time, adding his Bridgewater's Ninth Treatise into a series of treatises written by other people. The central question sounded something like this: " Are some observable features of nature and environment? "Babbage's book is quite difficult to read (and translate!); take, for example, the quote: “ The concepts we derive from ideas and plans are born from comparing our observations of the creation of other beings with the aspirations in which we see our own endeavors.” (“The notions we acquire of contrivance and design arise from comparing our observations on the works of other beings with the intentions of which we are conscious in our own undertakings.”)

Clearly resonating with some of my work, published 150 years later, he discusses the relationships between mechanical processes, natural laws, and free will. In his book he states that " complex calculations can be carried out using mechanical means", but then goes on to claim (with very weak examples) that a mechanical engine can produce sequences of numbers that exhibit unexpected changes, comparing it to a miracle.

Babbage tried his hand at politics, running for parliament twice on a pro-industrial agenda, but failed to win the election, partly due to claims of mishandling of public money allocated for the difference engine.

Babbage continued to host high-class parties at his home in London, attracting such luminaries as Charles Dickens, Charles Darwin, Florence Nightingale, Michael Faraday and the Duke of Wellington, who was often accompanied by his elderly mother. But even with the number of titles and honors that were listed in the six lines after his name, he was greatly upset, as he believed, by the lack of recognition.

At the center of all this was the fate of the difference engine. Babbage hired the best engineers of his time to build the machine. But, for some reason, despite ten years of work and many high-precision machines and tools, the machine was never built. Let's go back to 1833; Shortly after meeting Ada, Babbage tried to take full control of the project, but as a result the chief engineer withdrew from the project and insisted that he was entitled to all the drawings of the difference engine, even those made by Babbage himself.

But at the time, Babbage believed that he probably had a better idea about the future of this machine. Instead of a machine that would simply calculate differences, he imagined " analytical engine", which would support many different operations that could be specified in some programmed sequence. At first he imagined a machine that calculated some specific formulas, but later he added new features, such as conditions, and explained , often suggesting very elegant ways to implement this or that functionality using mechanisms. But, most importantly, he understood how to control the steps of calculations using punched cards, similar to those invented in 1801 by Jacquard to set sewing patterns on looms.


(Museum of the History of Science)

Babbage created some very complex designs, and it now appears that they could work just fine. But let's go back to 1826, when Babbage invented what he called " Mechanical notation"Its purpose was to symbolically represent the operations of mechanisms in the same way that mathematical notation describes operations in mathematics.

By 1826, Babbage was very depressed that people did not appreciate his invention. No doubt people did not understand him, since even now it is not clear how his inventions worked. But apparently it was his greatest invention, the design and operating principles of which he was able to describe in great detail.

Babbage's project to create a difference engine cost the British crown £17,500, which in today's money is about $2,000,000. This was a very modest amount compared to other government expenditures, but the project, due to its unusual nature, was widely discussed. Babbage liked to point out that, unlike many of his contemporaries, he did not receive money from the government for his work (except for payments to upgrade his workshop to a fireproof one, etc.). He also claimed to have spent £20,000 of his own money - the majority of his fortune (I'm not entirely sure where that number comes from) - on his various projects. And he continued to try to obtain additional government support, outlining a plan for his No. 2 difference engine, which required only 8,000 parts instead of 25,000.

By 1842, the government had changed, and Babbage insisted on meeting the new Prime Minister (Robert Peel), but this did not work out, which made him very angry. In parliament, the idea of ​​funding the difference engine eventually sank under the weight of jokes about its use. (The transcripts of the debate about the difference engine are quite fascinating, especially when it comes to discussions of its possible applications for government statistics, which have a surprising resonance with today's computing capabilities of Wolfram|Alpha.)

Ada's article

Despite the lack of support in England, Babbage's ideas gained some popularity elsewhere, and in 1840 Babbage was invited to lecture on the Analytical Engine in Turin, where he was honored by the Italian government.

Babbage never published any detailed review of the Difference Engine, and wrote nothing at all about the Analytical Engine. But he was talking about the Analytical Engine in Turin to a certain Luigi Menabrea, a 30-year-old military engineer who 27 years later became Prime Minister of Italy (and also contributed to the development of structural analysis in mathematics).

In October 1842, Menabrea published an article in French based on his notes. When Ada saw his article, she decided to translate it into English language and present it in the British edition. Many years later, Babbage said that he suggested to Ada that she write her own paper on the Analytical Engine, to which she replied that the idea had not occurred to her. However, in February 1843, Ada decided to make a translation and add extensive notes to it.

Over the following months, she worked very hard on this topic, conducting an almost daily exchange of letters with Babbage (despite the presence of other “urgent and unavoidable meetings”). And although in those days letters were sent by mail (which arrived 6 times a day in London in those days), or sent by messenger (Ada lived about a mile from Babbage when she lived in London), they were quite similar to modern e -mail exchanged between project participants, except for the fact that this took place in Victorian England. Ada asks Babbage questions; he answers; she explains something; he comments on this. Obviously she was submissive, but it was felt that she became quite annoyed when Babbage, for example, tried to make his own changes to her manuscripts.

It is very fascinating to read Ada's letters about how she is working on debugging her system for calculating Bernoulli numbers: " My dear Babbage. I'm pretty confused when faced with these numbers, so I don't have a chance to sort it all out today... So I'm getting back to riding. Tant mieux (the better - French)."Later she wrote to Babbage: " I worked non-stop all day, and quite successfully. You will be extremely fascinated by the resulting tables and charts. They were made with extreme precision, and all the signs were collected in great detail and scrupulously."She then added that William (or 'Lord L.' as she called him)" very kindly outlined everything in ink for me. I had to do everything in pencil first..."

View illustrations...


It appears that it was William who suggested that she sign the translation and notes. As she wrote to Babbage: " It wasn't mine desire– sign, at the same time I wanted to add something that would help identify me, connect this text with future works signed as A.A.L." (Ada Augusta Lovelace).

By the end of July 1843, Ada had almost completed her notes. She was proud of them, just as Babbage spoke very flatteringly of them. But Babbage wanted something else: to add an anonymous preface (written by him) that talks about how the British government failed to support the project. Ada thought this was a bad idea. Babbage insisted, saying that without a preface the publication should be withdrawn. Ada was furious and told Babbage about it. Eventually, Ada's translation appeared, signed "A.A.L." and without preface, containing her notes in the chapter “Translator's Notes.”

Ada with great joy sent her mother a copy of the article, explaining that " no one can estimate the scale of the problem and endless labor that requires double-checking everyone mathematical formulas for printing. This is a joyful prospect, because it turns out that many hundreds and thousands of similar formulas will, to one degree or another, come from my pen". She said that her husband William enthusiastically distributed copies to his friends, and also wrote that " William introduces me to this righteous light that no one else could compare with him in this. He also told me that my work had a good impact on his reputation."

For several days, the entire community discussed Ada's publication. She explained to her mother that she and William " did not at all strive to do this in secret, but at the same time did not want importance this event was exaggerated and overrated"She saw herself as a successful interpreter and interpreter of Babbage's works, presenting them in a clearer light.

And although Babbage’s foreword was not a good idea, it was precisely this that prompted Ada to write him a very exciting and very frank 16-page letter on August 14, 1843. (Unlike her usual letters on small folded pages, this one was placed on large sheets.) In it, she explains that while he is often "implicit" in his speeches, she herself is "always an explicit function of x." She says that “Your affairs have deeply occupied and occupied both me and Lord Lovelace... And it so happens that I have plans for you...” Then she moves on to the question: “If I introduce you to one or two year is a very worthy offer for creating your car... will there be any chance of allowing me ... to manage this business; this will allow you to fully concentrate on your work..."

In other words, she proposed to take on the role of manager and Babbage to become technical director. This was not easy, especially given Babbage's personality. But she skillfully did her job, and as part of this she talked about the structure of her motives. Ada wrote: “My own immutable principle is the desire to love truth and God more than glory and honor...", while your "love for truth and God... is eclipsed desire for fame and recognition." But she further explained: “I wouldn’t be myself if I denied the influence of ambition and thirst for fame on myself. No living soul was more imbued with this than I was... and I, of course, would not deceive myself or others by pretending that this is not at all an important motive and component of my character and nature.”

And she ended the letter like this: “I wonder if you will continue working with your lady-fairy?”

The next day at noon she wrote to Babbage again asking for help on "final edition." Then she added: “You received my long letter this morning. You may no longer want to deal with me. But I hope for the best..."


(New York Public Library)

At 5 pm that same day, Ada was in London and wrote to her mother: “I do not understand how the matter with Babbage will turn out ... I wrote to him ... very specifically, presenting to him my own conditions... He is so convinced of the advantage of his supremacy that he will certainly refuse; although I demanded that he make strong concessions. If If he accepts my offer, then I may need to take care of his situation and get his car completed (however, based on what I have seen of him and his habits in the last three months, it seems to me that this is unlikely to happen , at least, unless someone greatly influences him and forces him). Sometimes he is extremely disorganized and unsystematic. I’m ready to do it for the next three years if I see decent chances of success.”

On a copy of Ada's letter to Babbage, he wrote: "Saw AAL this morning and refused all her offers."

However, on August 18, Babbage wrote to Ada that he would bring notes and drawings the next time he visited her. The following week, Ada wrote to Babbage: “We are very pleased with your (somewhat unexpected) proposal” (after a long visit to Ada and her husband). After Hell she wrote to her mother: “Babbage and I, I believe, are better relations now than ever. I have never seen him so sweet, so sensible and in such a good spirit! „

Then, on September 9, Babbage wrote to Ada, expressing his admiration for her and (flatteringly) calling her “the number charmer” and “my dear and delightful interpreter.” (Yes, he is often misquoted; he wrote “numbers”, not “numbers”).

The next day, Ada replied to Babbage: “You are a brave man for allowing your sorceress to lead you!”, and Babbage signed his name in the next letter as “Your humble servant.” And in her letter to her mother, Ada described herself as " High Priestess of Babbage's Difference Engine".

After the article

But, unfortunately, everything did not work out as expected. For a time, Ada took care of family and home affairs, neglected during the period when she was concentrated on her notes. But after that, her health deteriorated greatly, and she spent many months on doctors and various “healers” (her mother suggested her “mesmerism,” that is, hypnosis).

However, she still admired science. Ada communicated with Michael Faraday, who nicknamed her " rising star of science." She spoke of her first publication as " his firstborn“, “in colors and with implications (very implicitly expressed) about her very general and extensive metaphysical ideas.” She wrote: “It (her work; she calls it “He” - approx.) will become (as I hope) a wonderful chapter a large family with many brothers and sisters."

When her notes were published, Babbage said: “You should write your own paper. However, if you wait a little, you can make it even more beautiful.” But in October 1844, David Brewster (inventor of the kaleidoscope, among other things) decided to write about the Analytical Engine, and Ada asked that perhaps Brewster could suggest another topic for her, saying: " I think that some topics from the field of physiology might suit me; however, like any other."

Indeed, in the same year she wrote to her friend (who was also her lawyer and the son of Maria Somerville): “I do not believe that the structures of the brain are less subject to mathematicians than the movements and properties stars And planets; quite, if you choose to consider them the right point of view. I would like to leave it to future generations computational model nervous system ." An impressive vision, and this is 10 years before, for example, George Boole raised the question of such things.

Both Babbage and Mary Somerville began their scientific careers with translations, and she saw a similar path for herself, saying that perhaps her next work would be reviews of Whewell and Ohm, and that she might eventually become " prophet of science".

Of course, she also had obstacles. Such as the fact that women at that time did not have access to the library of the Royal Society in London, although her husband, partly thanks to her efforts, was a member of the society. But the most serious problem remained Ada's health. She had many problems, although in 1846 she still spoke with optimism: “All that is needed is another year or two of patience and taking care of your health.»

There were also problems with money. William had a never-ending range of complex and often quite innovative building projects (he seems to have been particularly interested in towers and tunnels). And with a request for funding, they were forced to turn to Ada’s mother, who was often difficult to deal with. Ada's children were already entering adolescence, and she had to devote a lot of time to them.

Meanwhile, she had a good relationship with Babbage and began to see him more often, although in her letters she talks about dogs and pet parrots more often than about the Analytical Engine. In 1848, Babbage had the reckless idea of ​​building a tic-tac-toe machine to tour the country to raise money for his projects. Ada dissuaded him. Babbage's idea centered on a meeting with Prince Albert to discuss his machines, but this never happened.

William also published. He already had short works with titles such as “a method of growing beans and cabbage on the same land” and “On Chard beets.” But in 1848 he wrote another paper comparing the performance Agriculture France and England, based on detailed statistics, with remarks like " It is easy to show that the French are not only much worse than the English, but that they now eat even worse than in the worst times of the empire."

1850 was an important year for Ada. She and William moved to a new house in London, increasing their presence on the London scientific scene as a result. She was deeply impressed after visiting her father's family home in the north of England for the first time, which led to an argument between her and her mother. Then she became interested in betting on horse races and lost some money on it. (Not to say that it was her or Babbage's style to develop some kind of mathematical scheme for betting, but there is no evidence that they did this.)

In May 1851, the World Exhibition opened at the Crystal Palace in London. (When Ada decided to visit her in January, Babbage wrote to her: " Please wear woolen stockings, cork-soled shoes and any other things that will keep you warm.") The exhibition showcased the cutting-edge of Victorian science and technology, and Ada, Babbage and their scientific circle were impressed (though Babbage expected more). Babbage distributed leaflets on his mechanical notation in large quantities. William received a prize for his manufacturing solution bricks.

However, this year Ada’s health situation has become very difficult. For a while, her doctors simply advised her to spend more time at sea. But eventually they found she had cancer (based on what we know now, it was most likely cervical cancer). Opium no longer suppressed pain; she began experimenting with marijuana. By August 1852 she wrote: " I begin to understand death; it creeps up imperceptibly and gradually every minute, and it will never be the work of any specific moment.“And on August 19, she asked Babbage’s friend, Charles Dickens, to come to her and read a story about death from one of his books.

Her mother moved into her house, keeping other people away from her, and on September 1, Ada made some unknown confession that clearly upset William. She seemed close to death, but, overcoming the pain, she held on for another three months, and finally died on November 27, 1852, at the age of 36. Florence Nightingale, who looked after Ada and was her friend, wrote: " They say that she could not have lived so long if it were not for the enormous vitality of her brain, which did not want to die."

Ada chose Babbage to be the executor of her will. And, to the chagrin of her mother, she was buried in the Byron family crypt next to her father, who, like her, died at the age of 36 (Ada lived 266 days longer). Her mother built a memorial that contained a sonnet written by Ada called "The Rainbow".

After Ada's death

Ada's funeral was very modest; neither her mother nor Babbage were present. But the obituaries were friendly, in the spirit of the Victorian era:

William survived her by 41 years, eventually remarrying. Her eldest son, with whom Ada had many difficulties, joined the Navy a few years before her death, but then deserted. Ada thought he might have gone to America (apparently he was in San Francisco in 1851), but he actually died at 26 while working in a shipyard in England. Ada's daughter married a very eccentric poet, spent many years in the Middle East and became the world's largest breeder of Arabian horses. Ada's youngest son inherited the family title and spent most of his life on the family estate.

Ada's mother died in 1860, but even then gossip about her and Byron continued to appear in articles and books, including Lady Byron acquitted 1870 by Harriet Beecher Stowe. In 1905, a year before his death, Ada's youngest son, raised largely by his grandmother (Ada's mother), published a book about all this, with a basic agenda in the style of " there is nothing interesting in the life of Lord Byron, except for what has already been discussed many times".

When Ada died, her personality was surrounded by a whole tangle of gossip and rumors. Did she have any affairs? Did she have huge gambling debts? Arguments and evidence were very scarce. Perhaps this was a reflection of the idea of ​​​​her father as a “bad guy”. But long before that there were rumors that she had pawned (twice!) her family jewels, and lost what some said was £20,000, maybe even £40,000 (equivalent to about $7,000,000 in today's money) on horse bets .

It seemed that Ada's mother and her youngest son were against her. On September 1, 1852 - the day of her confession to William - Ada wrote: " My earnest dying message to all my friends who have letters from me: give them to my mother Lady Noel Byron after my death." Babbage refused. The rest agreed. But later, when her son systematized them, he decided to destroy some of them.

True, many thousands of pages from Ada’s letters are still scattered all over the world. Letters and responses to them are similar to modern correspondence - arrangements for meetings, conversations about health and illness. Charles Babbage complains about the postal service. Three Greek sisters ask Ada for money because their dead brother was Lord Byron's page. Charles Dickens talks about chamomile tea. Courtesy notes from a man Ada met at Paddington Station. And household calculations, diluted with notes, inserts of musical parts, recipes for various sweets. And then, mixed in with all of the above, serious intellectual discussions about the Analytical Engine and many other things.

What happened to Babbage?

So what happened to Babbage? He lived another 18 years after Ada's death and died in 1871. He tried to continue work on the Analytical Engine in 1856, but did not achieve much success. He wrote articles like " Beacon statistics", "Table of relative frequencies for the causes of destruction of glass windows", "About ancient artifacts of human art mixed with bones of extinct animal species".

Then, in 1864, he published his autobiography - Excerpts from the life of a philosopher- a very strange and bitter creation. The chapter on the Analytical Engine opens with a quote from Byron's poem - " If they make a mistake, then time takes revenge for it" (“Man wrongs, and Time avenges”; Chyumina O. in 1905 translated as follows: " Injustice is in the world, but vengeance is in the future"), and continues in the same vein. There are chapters on theatre, travel tips (including advice on how to organize transportation in Europe in some kind of modern caravan), and, perhaps most strangely, on troubles on the street. For some reason, Babbage waged a campaign against buskers, who he claimed woke him up at 6 a.m., causing him to lose a quarter of his productive time. It is unknown why he did not develop some kind of soundproofing solution , but his campaign was so prominent, and so strange, that when he died, it was the main message.

Babbage never remarried after his wife's death, and his last years seem to have been rather lonely. The gossip column of the time wrote the following about him:

Apparently he liked to say that he would gladly give up the rest of his life for three days spent 500 years in the future. When he died, his brain was preserved and it is still on display...

And even though Babbage never built his difference engine, a Swedish company did it for him, even demonstrating part of it at the world exhibition. When Babbage died, many of the documents and components of his Difference Engine project passed to his son, Major General Henry Babbage, who published some of these documents, and privately assembled several devices and some components of the computational part of the Analytical Engine. Meanwhile, a fragment of the difference engine, built in Babbage's time, was exhibited at the Science Museum in London.

Reopening

After Babbage's death, his life's work - the work on creating computers 1 - was forgotten by everyone (although, for example, they were mentioned in). However, mechanical computers continued to develop, gradually giving way to electromechanical ones, which in turn gave way to electronic ones. And when people began to delve into programming in the 1940s, Babbage’s work and Ada’s notes were remembered again.

People knew that "AAL" was Ada Augusta Lovelace, and that she was Byron's daughter. Alan Turing read her notes and coined the term " Lady Lovelace's objection" (about the inability of AI to create and create) in his 1950 paper on the Turing test. But Ada herself was represented in it only as a footnote.

There was one Bertram Bowden, a British nuclear physicist who went into work in the computer industry and eventually became Secretary of State for Education and Science, and who "rediscovered" Ada. In his book Faster than thoughts from 1953 (yes, about computers) he writes that he contacted Ada's granddaughter Lady Wentworth (daughter of Ada's daughter), who told him about the family knowledge about Ada, both accurate and not so accurate, and allowed him to study her work . It's interesting how Bowden notes that in the book Ada's granddaughter “About purebred racing breeds and their pedigrees» uses the binary system in pedigree calculations. Ada, like the Analytical Engine, of course, used the decimal system, without considering the binary system in any way.

But even in the 1960s, Babbage and Ada were not particularly well known. The prototype of Babbage's difference engine was given to the Science Museum in London, but although I visited there many times as a child in the 60s, I am sure I never saw it there. However, in the 1980s, especially after the US Department of Defense named its ill-fated programming language after Ada, awareness of Ada Lovelace and Charles Babbage began to increase, and their biographies, sometimes full of idiotic errors, began to appear (my favorite is where is the mention " three body problem", in a letter from Babbage is interpreted as a romantic triangle between Babbage, Ada and William, although it was about the three-body problem from celestial mechanics!).

As interest in Babbage and Ada grew, so did curiosity about whether the difference engine would work if built according to Babbage's designs. The project was started, and in 1991, after herculean efforts, a completed version of the difference engine was built (and the printer was added in 2000) with only one correction in the drawings. Surprisingly, the machine worked. Construction cost about the same (adjusted for inflation) as Babbage asked for from the British government back in 1823.

As for the Analytical Engine, no version of it has ever been created, not even a model simulating it.

What did Ada actually write about?

So now that I've talked (in great detail) about the life of Ada Lovelace, what exactly was in her notes on the Analytical Engine?

She begins without introduction: " the function whose integral the difference engine must calculate is..." She then explains that the difference engine can calculate the values ​​of any sixth-degree polynomials, but the analytical engine is different in that it can perform the operations in any order. Or, to quote: " The Analytical Engine is reflection of the science of operations , constructed in such a way that abstract numbers are the subjects of these operations. The difference engine embodies only one specific, and, moreover, very limited set of operations..."

Quite fascinating, at least for me, considering how many years I spent on Mathematica; a little later she writes: " We can consider the car as material and mechanical embodiment of analysis, and that our actual capabilities in this branch of human knowledge will be used more effectively than before. This is necessary in order to keep up with our theoretical knowledge of these principles and laws. And this is realized through gaining complete control over the handling of algebraic and numerical symbols, which the machine gives us."

A little later she explains how punch cards are used to control the analytical engine, and then quotes the now classic phrase: " analytical engine weaves algebraic patterns like a jacquard loom weaving flowers and leaves."

Ada then breaks down how the Analytical Engine would carry out a sequence of separate types of calculations with " transaction cards" which define the sequence of operations, and " variable maps", by which values ​​are specified. Ada talks about loops, and loops of loops, etc., now known as loops and nested loops, defining a mathematical notation for them:

Ada's recordings contain much that seems very contemporary. She writes that “ there is a beautiful woven Jacquard portrait that required 24,000 cards to produce" She then discusses the idea of ​​using loops to reduce the number of cards, and the value of reordering operations to optimize their execution for the analytical engine, ultimately showing that with just three cards it is possible to do what would require 330 without loops.

Ada discusses how far the Analytical Engine can go, making things computable (at least with some accuracy) that previously seemed impossible. And as an example she cites the three-body problem, and the fact that at one time " in calculation of 295 coefficients of lunar disturbances“Many calculations didn’t add up.

Finally, in my Note G(can be translated as note G, or as note G - a play on words) she writes: " The Analytical Engine cannot create something new. She can do anything we ourselves know how to do it... its purpose is only to help us carry out what we are already familiar with".

Ada seemed to be very clear about the traditional view of programming: we create a program that does the things we want. But then she notes that the performance " facts and formulas of analysis"in a form suitable for the machine, " will reveal many areas of knowledge in a new light, making them more deeply developed"In other words, as I have often noted, if we program something, we will learn something new about it; it will open up new horizons of understanding for us.

She says that " in bringing mathematical truths into a new form in which they will be used will give us a new vision, which, in turn, will influence the theoretical component of this field of knowledge". In other words, as I have often said (see post on Habré "Computable Knowledge and the Future of Pure Mathematics") - presenting mathematical truths in computable form is likely to allow them to be better understood.

Ada seemed to understand that " operations science" performed by a machine can be used for more than just traditional mathematical calculations. For example, she notes that if " The fundamental relationships between sounds in the science of harmony would be amenable to abstract operations, then the machine could use them to scientifically write musical works of any complexity". Not a bad level of understanding for 1843.

Calculating Bernoulli numbers

Ada's most famous piece of writing was the calculation of Bernoulli numbers in Note G. This topic seems to be a development of her letter to Babbage in July 1843. The letter begins like this: " I work hard like the devil himself; (which I may be)". She then asks a few background questions and then writes: " I want to talk about Bernoulli numbers in one of my notes as an example of how an implicit function can be calculated by a machine without occupying human minds and hands... Please provide me with the necessary data and formulas".

Ada's choice of Bernoulli numbers to demonstrate the Analytical Engine was quite interesting. In the 17th century, say, some people spent their entire lives developing tables of sums of powers of integers, in other words, tabulating values ​​for various m And n. But Jacob Bernoulli discovered that all such sums can be expressed as polynomials in m, with coefficients that are now called Bernoulli numbers. And in 1713, Bernoulli proudly announced that he had calculated the first 10 Bernoulli numbers “in a quarter of an hour,” reproducing many years of work by other people.

These days, of course, they can be instantaneously calculated in, say, the Wolfram Language:

And it just so happens that a few years ago, as part of a demonstration of new algorithms, we calculated 10 million of them.

Okay, but how did Ada plan to do this? She began with the fact that Bernoulli numbers appear when expanded in a series:

Then, rearranging the components of this expression and sorting by powers X, she obtained a sequence of equations for the Bernoulli numbers Bn, which she guessed to represent in recurrent form:

Ada then explained how to calculate this on the Analytical Engine. First, she used the fact that all odd Bernoulli numbers other than B 1 ) are equal to zero, then calculated B n, which is our modern B 2n(or BernoulliB in Wolfram Language). Then she started with B 0 , calculating then B n for large n, while storing each value obtained. Here's what the algorithm she used looked like (in modern form):

The idea of ​​analytical engine computing was to implement a sequence of operations (which are specified by "operation cards") by means of " number crushers" (Mill), with operands coming from " store" (with addresses indicated on " variable map"). (In the store, each number was represented by a sequence of wheels, each of which had to be scrolled to the required number.) To calculate Bernoulli numbers, Ada wanted to use two nested loops of operations. With the analytical engine model available at that time, Ada had to unroll these loops. But in the end she successfully described how to calculate B 8 (which she called B 7 ):

Essentially, this is a trace of a program on an analytical engine, which is executed in 25 steps (plus a loop). Each trace step shows which operation is performed on which variable map, and which variable map the result is written to. Having no symbolic designation for cycles, Ada simply put them in brackets and explained that these fragments should be repeated.

In the end, the final result of the calculation is written to position 24:

As you can see, Ada has an error in line 4, causing the fraction to be upside down. But if you fix this, you can easily get a modern version of what Ada did:

And here is what the same scheme will produce for the two subsequent (non-zero) Bernoulli numbers. Ada found that to calculate subsequent numbers, more memory (which is implemented by variable maps) will not be required, but only large quantity operations.

The Analytical Engine, developed in 1843, was supposed to store a thousand 40-digit numbers, which would allow calculations up to perhaps B 50 (=495057205241079648212477525/66). And this would happen very quickly; The analytical engine was designed for a performance of 7 operations per second. So the calculation B 8 would take 5 seconds, but B 50 - about a minute.

Interestingly, even the record-breaking performance calculations of Bernoulli numbers a few years ago used basically the same algorithm that Ada used, although there are now slightly faster ones that effectively calculate the moduli of the numerators of Bernoulli numbers as a sequence of primes, and then restore them to of a complete number using the Chinese remainder theorem.

Babbage vs. Hell?

The Analytical Engine and its creation were Babbage's life's work. So what did Ada bring? Ada saw herself primarily as an interpreter of his work. Babbage showed her many plans and examples of the Analytical Engine. She wanted to present a big picture vision of it, how everything is connected; as she put it: " bring a general, large-scale, metaphysical vision".

The surviving archive of Babbage's papers (found years later in the leather suitcase of their family lawyer) contains a large number of descriptions of the operating principles of the Analytical Engine - from 1830 onwards for decades, with headings like “ Analytical Engine" And " The Science of Numbers Reduces to Mechanisms" Why Babbage did not publish any of them is not clear. They present very detailed descriptions of the basic principles of the machine, although they certainly seem decidedly less interesting than Ada's work.

Babbage died while working on " History of the Analytical Engine", which was then completed by his son. It contains a dated list of " 446 remarks about the analytical engine", each of which tells how some operation - say division - can be implemented on it. The dates begin in the 1830s, continuing into the 1840s, but with almost no entries in the summer of 1843.

Meanwhile, in the collection of Babbage's papers on display at the Science Museum, there are some sketches of high-level operations for the Analytical Engine. For example, an entry from 1837: " difference between two first degree equations", which is the essence of the assessment of a rational function:

There are some very simple recurrence relations:

Then, in an entry from 1838, the calculation of the coefficients of the product of two polynomials is described:

But there is nothing in his notes comparable in complexity and clarity to Ada's calculations of Bernoulli numbers. Babbage certainly helped Ada in her work, but she was definitely at the head of this work.

So, what did Babbage say about this? In his autobiography, written 26 years later, he wrote few good things about anyone or anything. Here's what he writes about Ada's recordings: " Together we discussed various illustrations that could be submitted for publication; I suggested several, but the choice was entirely hers. There was also work on various algebraic problems, except, of course, those related to Bernoulli numbers, which I volunteered to solve on my own in order to protect Lady Lovelace from unnecessary trouble. She then forwarded the corrected version to me, having discovered the blunder I had made."

When I first read this, it was as if Babbage was saying that he was the literary negro of all Ada's notes. But re-reading, I realized that he was only saying that he offered Ada various options that she could accept or refuse them.

To me, there is no doubt about how it went: Ada had an idea about what the Analytical Engine could do, and asked Babbage how it could be implemented. In my personal experience working with hardware designers, their answers were often quite detailed. Ada's achievement was to connect these parts into a clear representation of the principles of the machine - something Babbage never did. (In his autobiography, he often simply refers to Ada’s notes.)

Babbage's Secret Ingredient

For all his shortcomings, the fact that Babbage figured out how to build a (functioning) difference engine, let alone an Analytical Engine, is quite impressive. So how did he do it? I think the key was in its mechanical notation. He first wrote about it in 1826 in an article entitled " Methods for designating machine operations using signs"His idea was to take the detailed structure of a machine and represent it using symbolic diagrams of how the components should interact with each other. As a first example, he gives a hydraulic device:

He then gives the example of a watch, showing in a sort of "execution trace" on the left how the parameters of the watch's components change, and on the right what appears to be a flowchart of their interconnections:

It's pretty good way a representation of how a system works, which is similar in some respects to modern timing diagrams, but still different in some ways. And over the years that Babbage spent working on the Analytical Engine, his notes began to contain increasingly complex diagrams. It's not entirely clear what the following means:

However, one can notice a surprising similarity with modern ideas in the Modelica language, like, say, Wolfram SystemModeler. (One of the differences with modern representations is that nowadays subsystems are represented much more hierarchically, and also that all representations are now computable, and from them the actual behavior of the system can be modeled.)

Babbage made extensive use of his various diagrams in his writings, but never published anything about them. Indeed, his only other printed work on mechanical notation is a booklet distributed at the 1851 World's Fair - apparently as a step towards standardizing the drawings of mechanical components (and notations like the above appear periodically on Babbage's diagrams ).

I'm not sure why Babbage didn't write more about his mechanical notation and diagrams. Perhaps he was bitter that people in 1826 failed to recognize the value of these ideas. Or perhaps he saw them as " secret ingredient", allowing him to create his own projects. And even though engineering systems have come a long way since the time of Babbage, his ideas can still serve as a source of inspiration.

On a larger scale

So what does what happened with Ada, Babbage and the Analytical Engine look like on a larger scale?

Charles Babbage was energetic person, had a lot of ideas, and some of them were quite good. In his 30s, he wanted to create mathematical tables using a machine, and he never gave up his idea for the next 49 years, while inventing the Analytical Engine to achieve this goal. He was excellent, perhaps even gifted, when it came to engineering. But he was very bad in choosing a trajectory for the project, in its management.

Ada Lovelace was an intelligent woman who became friends with Babbage (there is no evidence they ever had anything romantic). Thanks to Babbage, she described the working principles of the Analytical Engine, and in doing so brought a more abstract vision of it than Babbage's, as well as an idea of ​​​​the incredibly powerful idea of ​​​​universal computing.

Difference engine and similar devices are computers special purpose, the hardware of which is designed only to do one specific thing. It would seem that in order to do many different things, you would need a large number of different computers. But that's not true. Instead, we are faced with the fundamental fact that it is possible to make general-purpose computers where a single, fixed piece of hardware can be programmed to perform any computation. And it was this idea of ​​universal computing that enabled software to exist, which launched the computer revolution of the 20th century.

Babbage's basic concept for the Analytical Engine was to automatically create mathematical tables and then print them or display them as graphs. He envisioned these tables being used by humans, plus he was developing the idea of ​​some pre-computed map libraries that would be machine-readable versions.

Nowadays, in, say, the Wolfram Language, there is no need to store mathematical tables; you can simply figure out what you need and when you need it. But in the time of Babbage, with his idea of ​​​​a huge analytical engine, this was simply unthinkable.

Okay, but would the Analytical Engine be used for anything other than calculating mathematical tables? I think yes. If Ada had lived as long as Babbage, she would have seen the 1890s, the time when Herman Hollerith was developing a map-based electromechanical device for the census (who, incidentally, was one of the founders of what would become IBM ). The Analytical Engine could provide much more.

Perhaps Ada would realize her idea of ​​​​using the Analytical Engine to automatically create algorithmic music. Perhaps the machine would be used to solve the three-body problem; maybe even through simulation. If they had thought of using a binary system, perhaps they would have implemented systems like cellular automata.

Neither Babbage nor Ada ever made money from commerce (and, as Babbage was at pains to emphasize, his government contracts served only to pay his engineers, and he himself received nothing). If they developed an analytics engine, could they find a business model to implement it? Surely they would sell several versions to various government agencies. Perhaps they would create some kind of remote computing service in the service of Victorian science, technology, finance and other things.

But none of this actually happened, and instead Ada died young, the Analytical Engine was never completed, and the potential of computing was only rediscovered in the 20th century.

What were they like?

If you met Babbage, what would he seem like? He was, it seems to me, a good conversationalist. At the beginning of his life he was an idealist (" do my best to leave the world wiser than the one I came into"); later he became an almost Dickensian caricature of a bitter old man. He gave wonderful parties and attached great importance to connections with the intellectual elite. But, especially in recent years, he spent most of his time alone in his large house, filled with books, articles and unfinished projects.

Babbage had little understanding of people, and even in his eighties he was like a child in his polemics. He also had problems focusing on any one problem - he was constantly distracted by his new ideas. There was only one big exception - his almost 50 years of work in trying to automate the computing process.

I myself have been pursuing similar goals (more precisely, their modern versions) in my life (..., Mathematica, Wolfram|Alpha, Wolfram Language, ...), but so far only for forty years. I'm fortunate to live in a time when technology makes this much easier to achieve, but every major project I've undertaken has required a tremendous amount of dedication, tenacity, and leadership to see it through to completion.

So what can we say about Hell? First and foremost, he is a articulate and clear-thinking individual. She came from upper class, but didn’t wear it much fashionable clothes, and was much less a stereotypical countess than an intellectual. She was an adult and emotionally mature person; probably more mature than Babbage, and seems to have had a good applied understanding of people and the world around them.

Like Babbage, she was rich and did not have to work to support her life. But she was ambitious and wanted to do something herself. I guess behind the mask of a high-society Victorian lady was a kind of nerd with math jokes and other trappings. She was also very focused and persistent, spending several months writing her notes, for example.

In mathematics, she successfully reached the level of knowledge of those times; perhaps equaling Babbage. However, we do not know, unlike the situation with Babbage, what exactly she did in mathematics, so it is difficult to judge her level; Babbage was respected, although unremarkable.

When you read Ada's letters, you seem to be an intelligent, complex person with a clear logical thinking. Her speeches are often cloaked in Victorian pleasantries, but underneath are clear and often powerful ideas.

Ada was clearly aware of her position in society, and that she was “Lord Byron’s daughter.” In a way, her success story is based on her ambition and desire to try something new. (I can't stop comparing her as the lead engineer in creating the Analytical Engine and Lord Byron leading the Greek army). But I also suspect that his problems affected her. For many years, partly due to her mother's influence, she shied away from such things as poetry. Her gaze was turned to abstract things, and not only to mathematics and science, but also to more metaphysical areas.

And she seems to have concluded that her best application would be to work in the unification of the scientific and the metaphysical - perhaps that is what she called " poetic science"Perhaps her self-perception was correct. After all, in a sense, this is exactly what she was doing: taking the engineering part developed by Babbage, she created an abstract, “metaphysical” concept, which later gave us our first idea of ​​​​the idea of ​​​​universal computing .

Conclusion

The story of Ada and Babbage has many interesting aspects. This is a story about the meeting of technical mastery and broad abstract vision. This is a story about friendship between an old and a young man. This is a story of people who had the courage to be original and creative.

It's also a tragedy. A tragedy for Babbage, who lost so many people in his life, and whose personality alienated others and prevented him from realizing his ambitions. It’s a tragedy for Ada, who had just found her life’s work when her health deteriorated.

We will never know what Ada could have done. Another Mary Somerville - a famous interpreter of Victorian science? A kind of Steve Jobs shaping the vision of the Analytical Engine? Or Alan Turing understanding the abstract idea of ​​universal computing?

That Ada touched what would become the defining idea of ​​our time was a great stroke of luck. Babbage did not understand what he was dealing with; Ada saw glimpses and successfully described them.

For some people, particularly me, the story of Ada and Babbage has a special resonance. Like Babbage, I spent most of my life pursuing specific goals, although, unlike Babbage, I was able to realize some of them. And I suspect that, like Ada, I was given the opportunity to see glimpses of some significant ideas of the future.

But the problem is that sufficiently " be Ada"to understand what awaits us, or at least" find that Ada", who understands. At least now, I think I have an understanding of what the same Ada was like, born 200 years ago: a worthy person on the path to universal computing, present and future achievements in the field of computational thinking.

It was very nice to meet you, Ada. Acknowledgments
Many organizations and people helped me obtain information and materials for this post. I would like to thank the British Library, the History of Science Museum, Oxford, the Science Museum, London, the Bodleian Library, Oxford (by permission of the Earl of Lytton, Ada's great-great-grandson, one of her 10 living descendants), the New York Public Library, St. Mary Magdalene (in Hucknall, Nottinghamshire - burial place of Ada), Betty Toole (author Add tags

My brain is more than just a mortal substance, I hope time will tell...
...It is good for the Universe that my aspirations and ambitions are forever connected with the spiritual world
and that I'm not going to deal with sabers, poison and intrigue instead of X, Y and Z
A.A. Lovelace

How and why did practical programming in its modern sense appear? Like all other great inventions, it came from laziness. In 1946, the first electronic computer, ENIAC, was created. To change its calculation algorithm, you had to run around the room for a couple of days, connecting and disconnecting 6,000 switches. When scientists got tired of running, they started developing computers that understood programs in machine codes, and then they came up with programming languages.

Meanwhile theoretical basis modern programming was laid down 100 years before the creation of the first computer. And the woman did it.

Ada Augusta Lovelace was born on December 10, 1815. She was the only legitimate daughter of the great English poet George Gordon Byron. Her mother Annabella Byron was an extraordinary woman, a fan of mathematics and philosophy, with a passion for exact sciences nicknamed in the world “the queen of parallelograms”. Is it any wonder that two bright personalities with such different inclinations could not get along together - soon after the birth of their daughter, the couple separated. Byron dedicated these lines to his daughter in the poem “ Childe Harold”:

"Daughter, little chick, dear Ada! To the mother
Do you look like your only relative?
On the day of that separation I could shine
There is blue hope in your eyes..."

Ada received an excellent upbringing and education - she played several musical instruments, knew languages, history, and philosophy. But thanks to her mother’s efforts, the most important place in her education was the study of mathematics. Her teacher was the famous English mathematician and logician Augustus de Morgan. In 1834 she was introduced to the outstanding mathematician Charles Babbage, the inventor of the first digital computer, which he called “analytical”. Babbage, an acquaintance of her mother, encouraged young Ada to study mathematics, corresponded with her, and sent her scientific articles and books for study.

When Ada Augusta Byron began to appear in society, she created a sensation - both with her elegant, mysterious beauty and her brilliant logical mind. “ Angelic looks, devilish mind“- her contemporaries said about her. At that time, by the way, conversations on scientific topics were in great fashion in society, and Ada more than once baffled scientists in scientific disputes.

Contrary to the popular belief that the ideal of any man is “charming, what a fool,” there were more than enough people who wanted to conquer the mysterious beauty. In 1835, Ada Byron married 29-year-old Lord King, who later became Earl of Lovelace. Such an intelligent woman, of course, chose a husband who encouraged and fully supported her scientific pursuits. According to contemporaries, their marriage was happy. The couple led a secular lifestyle, regularly held evenings and receptions on their estate, and they had three children.

The editor of Examiner magazine once described it as follows: “ She was amazing, and her genius was not poetic, but mathematical and metaphysical, her mind was in constant motion, which was combined with great exactingness. Along with such masculine qualities as firmness and determination, Lady Lovelace was characterized by delicacy and refinement of the most refined nature. Her manners, her tastes, her education... were feminine in the good sense of the word, and the superficial observer could never have guessed the power and knowledge that lay hidden beneath her feminine attractiveness.”

In the first 5 years of marriage, Ada had no time for science - she gave birth to two sons and a daughter one after another. However, in 1841, Ada Lovelace returned to her studies with Babbage and began studying his Analytical Engine.

In October 1842, the Italian mathematician L.F. Menabrea published the article "Essay on the Analytical Engine Invented by Charles Babbage." Ada translated this article into English, and Babbage offered to give her his comments on the translation. It was these comments, larger in volume than the original text of the article, that went down in history. In them, Ada not only compiled the world's first description of the operation of a computer, but also wrote three programs for it, for the first time introducing many concepts that no programming language can do without today - working variables, assignments, loops, nested loops. This allows us to now say that it was she who laid the foundations of theoretical programming.

The first of them is a program for solving a system of two linear algebraic equations with two unknowns, the second is for calculating the values ​​of a trigonometric function, the third is for calculating Bernoulli numbers. Ada herself, not only a brilliant scientist, but also a poetic woman, wrote to Babbage about her program: “I want to introduce an example in one of the notes: the calculation of Bernoulli numbers as an example of a machine calculating an undefined function without first solving it using the human head and hands. Am I a devil or an angel? I work like the devil for you, Charles Babbage; I’m sifting through Bernoulli’s numbers for you.”

Unfortunately, Lady Lovelace was in poor health and soon fell ill with cancer, from which she died at the age of 37, in 1852. But Babbage’s analytical engine remained a theory - it was ahead of its time and could not be completed during his lifetime, the technology of that time and the need for huge financial investments did not allow it. For example, at that time they did not know how to quickly process metal with the required degree of accuracy - and the project required thousands of gears alone.

“The essence and purpose of the machine will change depending on what information we put into it. The machine will be able to write music, draw pictures and show science ways that we have never seen anywhere.” . These words of Ada Lovelace turned out to be prophetic. She was able to see the purpose of a computer 100 years before it was created.

The Ada programming language, developed in 1980 by the US Department of Defense, was named after Ada Lovelace.

Views