Ada Lovelace, The First Programmer
Written by Historian   
Article Index
Ada Lovelace, The First Programmer
Programming the Analytical Engine

The Analytical Engine

The Difference Engine project was abandoned in the same year (1833) and Babbage moved on to designing his Analytical Engine, which was so large that it would have needed a steam engine to turn the handle. Although the machine was never built,  a small portion was completed in 1871 just before Babbage's death and another by his son in 1910 and these succeeded in demonstrating the principles.

 

anaengine

Analytical Engine (1910)

 

Ada's passion for the analytical engine grew as she learned more and more about it. She attended a course of lectures on it and eventually came to understand its working better than Babbage.

This isn't as strange an occurrence as it might sound because it is often the case that someone learning the structure of a machine will ask more questions about its operation than the inventor has thought to ask. She made her first contribution to the furtherment of the machine by translating a paper (in French) by the Italian engineer Menabrea, "Sketch of the Analytical engine invented by Charles Babbage Esq"

Babbage asked why she didn't write it herself as she certainly knew enough not to have need to translate something. In fact the translated paper was far less important than the copious notes that she wrote following it - the notes were three times longer than the original paper. The translation and the notes are available here as part of a set of resources on the Analytical Engine collected by Fourmilab Switzerland.

The annotations clearly demonstrate that she had made the leap of imagination necessary to see that the program, the software, was as important as the machine. The machine is merely the vehicle for the idea embodied in the program. She gives details of how to program the calculation of the Bernoulli numbers and how the machine can be made to do much more. She wrote:

"The Analytical engine weaves algebraical patterns just as the Jacquard loom weaves flowers and leaves".

(The Jacquard loom used punch cards to control the weaving.) 

Foreseeing the future

As well as the down-to-earth stuff of computing the Bernoulli numbers, Ada also took her turn in speculating just how far the computer would one day go. Indeed she is credited with the first use of the argument that is often referred to as "Lady Lovelace's objection". She wrote:

"The Analytical Engine has no pretensions whatever to ordinate anything. It can do whatever we know how to order it to perform".

This is basically an argument about the impossibility of artificial intelligence and computers only being able to do what they are told. A discussion of this would take us into deep water but it isn't as clear cut as Ada would have us believe. Ada and Babbage may actually have had the key to a large part of AI in their heads because they invented the notion of self modification -

"the Analytical engine may act on things other than number".

It might just be that they were both very well aware of the prospect of mechanical intelligence but were worried about upsetting the religious establishment in the way that Darwin did with the Origin of Species. There may even have been a connection between Mary Shelly's writing of the Frankenstein story and Ada. However, as well as recognising Ada as the first person to publish computer programs, we can also credit her with being the first person to appreciate the potential of the computer.

Music and programming

One of the skills that Ada had that may have helped understand programming was music. She played the harp and so was familiar with the idea of a written set of instructions, i.e. musical notation, that could be executed, i.e. played.

She also composed music and this is not only a mathematical exercise but one that is very close to the psychological mechanism needed to program. Later she suggested that the Analytical engine could be used to compose music, so giving us the first glimpse of a program generating new software.

 Ada supported Babbage through his long and difficult struggle with the authorities to build the Analytical Engine. When most had written him and his invention off as a huge waste of money, Ada carried on making notes, refining the design and lobbying support among her influential friends.

A strange twist in the story will endear her even more to all true programmers - she invented a "system" for betting on horses. Babbage went along with the idea and they both seem to have thought the Analytical engine would help them with the necessary sums. Just like modern programmer suffering the same delusion, Ada lost a great deal of money, suffered at the hands of a blackmailer and eventually had to pawn some of the family jewels to put things to rights.

AdaLovelace died at the early age of 36 after spending much of her life in the grip of illness of one kind or another. It may be fairer to say that she was in the grip of medication given the type of treatment she was prescribed. It may even be that her rather conceited over-confidence was due to the laudanum (opium) and brandy she was so often prescribed!

Ada's legacy

After Ada's death Babbage carried on trying to complete the Analytical engine but we all know that he was unsuccessful in his attempt. To add insult to injury, Ada's notes on the machine were read by others and in 1834 Georg Scheutz, a Swedish engineer, built a difference engine and actually sold a production model! Ada's publicity for Babbage's ideas didn't always have the desired effect.

Ada is also remembered in several ways. In 1980 the US Department of Defense named of its then huge and powerful language Ada after her and  Department of Defense Military Standard for the language, MIL-STD-1815, was given the number of the year of her birth. 

In 1998 the British Computer Society established the Lovelace Medal to be awarded annually to individuals who have advanced Information Systems or added significantly to their understanding.

The Ada Initiative is a non profit founded in 2011 that seeks to increase women's participation in the free culture movement, open source technology and open culture.

On the 197th anniversary of her birth in 2012 Ada Lovelace was the subject of the Google Doodle, which shows her working on a formula along with images that show the evolution of the computer. 


Ada's children were also mathematically inclined and carried on the family tradition, on the female side, of a passion for science. For this reason it is particularly fitting that Ada Lovelace was chosen for the campaign, ongoing on the Finding Ada website, to raise awareness of the achievements  of women in science, technology, engineering and maths that means that Ada Lovelace Day is celebrated around the world.

ada

 

Related Articles

When Lovelace Met Babbage

Charles Babbage

What if Babbage..?

Celebrate Ada Lovelace Day

Ada Lovelace Day 2011

Grady Booch Winner of 2012 Lovelace Medal

Ada Lovelace's Anniversary Celebrated With Google Doodle

 

blog comments powered by Disqus

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


The SWTP Effect - How The Microcomputer Revolution Started In The UK

In this third and final part of our look at the early days of the microcomputer revolution as it happened in the UK, we focus on the amazing and idiosyncratic SWTP family of computers which played the [ ... ]



The Story Of The Apple Macintosh

If you think of Apple, you probably think of the iPhone or iPad and perhaps even the MacBook Air, but the name Mac was once much more important to Apple. The Mac was a groundbreaking computer that int [ ... ]


Other Articles

<ASIN:3746621232>

<ASIN:3540797009>

<ASIN:0321903420>



Last Updated ( Wednesday, 05 November 2014 )
 
 
   
RSS feed of all content
I Programmer - full contents
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.