Aug 182018

Today is the birthday (1911) of Klára (Klari) Dán, usually called Klára Dán von Neumann, but I want to correct that usage straightaway as part of the problem this post is largely about. Yes, she was married to John von Neumann, and, yes, her married name was Klára Dán von Neumann, but she was a major figure in mathematics and computing in her own right, and deserves to be recognized as such. She was married 4 times. Why should we recognize her by her married name when she was married to von Neumann? Why not use her birth name and recognize her as an individual and not as a woman who gained her identity and importance from the man she married (who also happens to be more famous)? I will call her simply Klára Dán or Dán in this post. Unfortunately, biographical material is in short supply, but I will do my best.

Klára Dán was born in Budapest to Károly Dán and Camila Dán (née Stadler), wealthy Hungarian Jews. Her father served in the Austro-Hungarian Army as an officer during the Great war, and the family moved to Vienna after the war to escape Béla Kun’s short-lived Hungarian Soviet Republic. When the regime was overthrown in August 1919, the family moved back to Budapest.  At 14, Klára Dán became a national champion in figure skating. She attended Veres Pálné Gimnázium in Budapest and graduated in 1929. She married Ferenc Engel in 1931 and Andor Rapoch in 1936.

Klara had previously met John von Neumann (also a Hungarian Jew)  during one of his return trips to Budapest from the U.S. prior to the outbreak of World War II. When von Neumann’s first marriage ended in a divorce, Klára Dán divorced Rapoch, married von Neumann in 1938 and emigrated to the United States. She became head of the Statistical Computing Group at Princeton University in 1943, and moved to Los Alamos National Laboratory in 1946 to program the MANIAC I machine designed by von Neumann and Julian Bigelow.

The MANIAC I (Mathematical Analyzer, Numerical Integrator, and Computer, or, Mathematical Analyzer, Numerator, Integrator, and Computer) was built under the direction of Nicholas Metropolis at the Los Alamos Scientific Laboratory. It was based on the von Neumann architecture developed by John von Neumann. You can see (below) that the architecture is close to modern digital computers with input and output devices, a central processing unit (CPU) and a memory storage device. It did, however have a bottleneck in that input and processing could not be done simultaneously.

It was said that Metropolis (perhaps on the advice of von Neumann), chose the acronym to make fun of silly computer acronyms in the hope they would stop, but it stuck. Early digital computers were hard wired to perform their operations, much like a modern hand-held calculator, although a lot more complicated. To reprogram them took days or weeks to change the wiring and debug the programming. Even booting up was a major operation, so they were always left running. The von Neumann architecture allowed for reprogramming which was where Klára Dán came in. As with all computers of its era, MANIAC I was a one-of-a-kind machine that could not exchange programs with other computers (even other IAS machines). Programmers had to generate unique code for the specific architecture. Klára Dán was the principal programmer of MANIAC I. The first task assigned to MANIAC was to perform more exact and extensive calculations of the thermonuclear process. The MANIAC ran successfully in March 1952 and was shut down on July 15, 1958. It was succeeded by MANIAC II in 1957.

Klára Dán was also involved in the design of new controls for ENIAC (originally used to calculate artillery trajectories) and was one of its primary programmers. Even on the 50th anniversary of ENIAC in 1995, the role of women as programmers went largely unrecognized. All of the first 6 programmers of ENIAC were women: Kay McNulty, Betty Jennings, Betty Snyder, Marlyn Meltzer, Fran Bilas, and Ruth Lichterman. Klára Dán was involved in later modifications. She had a major role in reprogramming ENIAC to make weather predictions. Historians believed for decades that women posing by ENIAC were “refrigerator ladies,” that is, models who made the computer more attractive, but were not involved in its operation. They were not eye candy, they were the key programmers.

After his death in 1957, Klára Dán wrote the preface to John von Neumann’s posthumously published Silliman Lectures, later edited and published by Yale University Press as The Computer and the Brain. She married physicist Carl Eckart in 1958 and moved with him to La Jolla, California. She died in 1963 when she drove from her home in La Jolla to the beach and walked into the surf and drowned. The San Diego coroner’s office listed her death as a suicide.

Maybe some historian or Ph.D. candidate is assiduously researching Klára Dán’s life for a book or dissertation. I don’t know. Her story is largely untold. I don’t have any trouble asserting that John von Neumann was the love of her life, and I expect he valued her for her mathematical abilities, along with other qualities. Why, though, was she married 4 times (the first 2 in quick succession), and why did she remarry soon after von Neumann’s death? Furthermore, why did she commit suicide? If she suffered from clinical depression or was bipolar, her devotion to complex work and suicide would be explicable. But there is so little to go on. She was not necessarily a private person. It is known that she was gregarious in Budapest when her parents entertained, and she and von Neumann held celebrated parties at their house in Princeton. Of course, being overtly gregarious is no sign of anything concerning inner turmoil. If there is more research on her life, I’d like to know about it. Meanwhile spread the word about the undervalued work of women in the early days of computing.

A Hungarian recipe is called for today, and if you think about paprika when you think about Hungarian cuisine, you are not far wrong: You have a hard job finding a Hungarian meat recipe without some paprika in it, and most of them are swimming in it. First task in cooking any Hungarian dish is to find proper Hungarian paprika, not the red powder that passes for paprika in many supermarkets. Then you have to decide on the grade and spiciness. Csípős Csemege, Pikáns (Pungent Exquisite Delicate) is my favorite, but it is hard to find outside of Hungary. You can probably find a hot or mild Szeged paprika if you hunt. You can find good Hungarian paprika online.

Here is Hungarian Pacal Pörkölt to feed my tripe fetish. It is a great favorite of mine. You can skin the tomatoes easily by scalding them briefly in boiling water. To skin the peppers, sear them over a gas burner briefly. Lard is the traditional fat for frying, but you can use olive oil if you wish.

Pacal Pörkölt


2 lb parboiled tripe, cut in thick strips, ½ inch wide, 2 inches long
5 oz smoked bacon, diced
5 oz diced onion
5 oz tomatoes skinned and diced
5 oz Hungarian peppers skinned and sliced in stripsM
3 cloves garlic, peeled and sliced thin
1 tsp ground cumin
1 tbsp Hungarian paprika
1 tsp marjoram
2 bay leaves


Mix the peppers, garlic, cumin and paprika with the tomatoes in a bowl.

Heat a small amount of lard in a deep skillet over medium-high heat and fry the bacon until it is lightly brown. Scoop out the bacon bits with a slotted spoon. The bacon can be set aside or a little cook’s treat. Add the onions and sauté until translucent. Add the tomato mix, ¼ cup of water and the bay leaves. Cover and simmer slowly for about 15 minutes.

Stir in the tripe, marjoram, salt and freshly ground pepper to taste, and ½ cup of water. Cover and simmer until the tripe is tender. Cooking tripe to the right consistency takes experience. It must be al dente – not chewy, not mushy.

Serve hot with csipetke or galuska (Hungarian noodles) on the side. Sour cream can also be served as a side.

Dec 102017

Today is the birthday (1815) of Augusta Ada King-Noel, Countess of Lovelace, known commonly as Ada Lovelace, an English mathematician and writer, chiefly known for her work on Charles Babbage’s proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognize that the machine had applications beyond pure calculation, and published the first algorithm intended to be carried out by such a machine. As a result, she is often regarded as the first to recognize the full potential of a “computing machine” and the first computer programmer. Whether or not she actually wrote the algorithms published under her name is under dispute, so the title of “first computer programmer” may not be warranted. However, what is not questioned is her insight that computing machines could be used for more than working with numbers. She realized that if you used numbers to represent other things, such as letters of the alphabet, computing machines could be used for a host of applications beyond numerical calculation. In essence, her insight is the foundation of all modern digital computers, although neither she nor Babbage ever put the theory into practice.

Ada Lovelace was the only legitimate child of the poet Lord Byron, and his wife Anne Isabella Milbanke (“Annabella”), Lady Wentworth. All of Byron’s other children were born out of wedlock to other women. Byron separated from his wife a month after Ada was born and left England forever four months later. He died of disease in the Greek War of Independence when Ada was 8 years old. Her mother remained bitter and promoted Ada’s interest in mathematics and logic in an effort to prevent her from developing her father’s perceived “insanity” (that is, his inveterate wandering, Romanticism, and inclination towards poetry). Despite this, Ada remained interested in Byron and was, upon her eventual death, buried next to him at her request. She was often ill in her childhood. Ada married William King in 1835. King was made Earl of Lovelace in 1838, and Ada in turn became Countess of Lovelace.

Her educational and social desires brought her into contact with scientists such as Andrew Crosse, Sir David Brewster, Charles Wheatstone, Michael Faraday and also with Charles Dickens. Lovelace described her approach as “poetical science” and herself as an “Analyst (& Metaphysician).” When she was a teenager, her mathematical talents led her to a long working relationship and friendship with fellow British mathematician Charles Babbage, also known as “the father of computers”, and in particular, Babbage’s work on the Analytical Engine. Lovelace first met him in June 1833, through their mutual friend, and her private tutor, Mary Somerville. Between 1842 and 1843, Ada translated an article by Italian military engineer Luigi Menabrea on his ideas for an Analytical Engine, which she supplemented with an elaborate set of notes, simply called “Notes.” These notes contain what many consider to be the first computer program—that is, an algorithm designed to be carried out by a machine. She also developed a vision of the capability of computers to go beyond mere calculating or number-crunching, while many others, including Babbage himself, focused only on those capabilities. Her mindset of “poetical science” led her to ask questions about the Analytical Engine (as shown in her notes) examining how individuals and society relate to technology as a collaborative tool. She died of uterine cancer in 1852 at the age of 36.

Throughout her life, Lovelace was strongly interested in scientific developments and fads of the day, including phrenology and mesmerism. After her work with Babbage, Lovelace continued to work on other projects. In 1844 she commented to a friend Woronzow Greig about her desire to create a mathematical model for how the brain gives rise to thoughts and nerves to feelings (“a calculus of the nervous system”). She never achieved this, however. In part, her interest in the brain came from a long-running pre-occupation, inherited from her mother, about her ‘potential’ madness. As part of her research into this project, she visited the electrical engineer Andrew Crosse in 1844 to learn how to carry out electrical experiments. In the same year, she wrote a review of a paper by Baron Karl von Reichenbach, “Researches on Magnetism,” but this was not published and does not appear to have progressed past the first draft. In 1851, the year before her cancer struck, she wrote to her mother mentioning “certain productions” she was working on regarding the relation of mathematics and music.[53]

Lovelace first met Charles Babbage in June 1833 and later that month Babbage invited Lovelace to see the prototype for his Difference Engine. She became fascinated with the machine and visited Babbage as often as she could. Babbage was impressed by Lovelace’s intellect and analytic skills. In 1843 he wrote to her:

Forget this world and all its troubles and if possible its multitudinous Charlatans—every thing in short but the Enchantress of Number.

Some historians think that Babbage was calling Lovelace the “Enchantress of Number” which only goes to show how stupid some people are. I’d count them among Babbage’s “multitudinous Charlatans” for not being able to see that Babbage is calling numbers an enchantress, not Lovelace.

In 1840, Babbage was invited to give a seminar at the University of Turin about his Analytical Engine. Luigi Menabrea, a young Italian engineer, and the future Prime Minister of Italy wrote up Babbage’s lecture in French, and this transcript was subsequently published in the Bibliothèque universelle de Genève in October 1842. Babbage’s friend Charles Wheatstone commissioned Lovelace to translate Menabrea’s paper into English. She then augmented the paper with notes, which were added to the translation. Lovelace spent the better part of a year doing this, assisted with input from Babbage. These notes, which are more extensive than Menabrea’s paper, were then published in Taylor’s Scientific Memoirs under the initialism AAL.

Lovelace’s notes were labelled alphabetically from A to G. In note G, she describes an algorithm for the Analytical Engine to compute Bernoulli numbers. It is considered the first published algorithm ever specifically tailored for implementation on a computer, and Ada Lovelace has often been cited as the first computer programmer for this reason. The engine was never completed so her program was never tested. Explaining the Analytical Engine’s function was a difficult task because even many other scientists of the day did not really grasp the concept and the British establishment was uninterested in it. Lovelace’s notes even had to explain how the Analytical Engine differed from the original Difference Engine. Her work was well received at the time. Michael Faraday described himself as a supporter of her writing.

The notes are around three times longer than the article itself and include (in Section G[61]), in complete detail, a method for calculating a sequence of Bernoulli numbers with the Engine, which could have run correctly had Babbage’s Analytical Engine been built. (Only his Difference Engine has been built, completed in London in 2002.) Based on this work Lovelace is now widely considered the first computer programmer and her method is considered the world’s first computer program.

Section G also contains Lovelace’s dismissal of artificial intelligence. She wrote that “The Analytical Engine has no pretensions whatever to originate anything. It can do whatever we know how to order it to perform. It can follow analysis; but it has no power of anticipating any analytical relations or truths.” This objection has been the subject of much debate and rebuttal, for example, by Alan Turing in his paper “Computing Machinery and Intelligence.”

Lovelace and Babbage had a minor falling out when the papers were published when he tried to leave his own statement (a criticism of the government’s treatment of his Engine) as an unsigned preface—which would imply that she had written that also. When Taylor’s Scientific Memoirs ruled that the statement should be signed, Babbage wrote to Lovelace asking her to withdraw the paper. This was the first that she knew he was leaving it unsigned, and she wrote back refusing to withdraw the paper. The historian Benjamin Woolley speculated that: “His actions suggested he had so enthusiastically sought Ada’s involvement, and so happily indulged her … because of her ‘celebrated name’.” Their friendship recovered, and they continued to correspond. On 12 August 1851, when she was dying of cancer, Lovelace wrote to him asking him to be her executor, though this letter did not give him the necessary legal authority. Part of the terrace at Worthy Manor, the Lovelace country estate, was known as Philosopher’s Walk, as it was there that Lovelace and Babbage were reputed to have walked while discussing mathematical principles.

In 1953, more than a century after her death, Ada Lovelace’s notes on Babbage’s Analytical Engine were republished. The engine has now been recognized as an early model for a computer and her notes as a description of a computer and software. In her notes, Lovelace emphasized the difference between the Analytical Engine and previous calculating machines, particularly its theoretical ability to be programmed to solve problems of any complexity. She realised the potential of the device extended far beyond mere number crunching. In her notes, she wrote:

[The Analytical Engine] might act upon other things besides number, were objects found whose mutual fundamental relations could be expressed by those of the abstract science of operations, and which should be also susceptible of adaptations to the action of the operating notation and mechanism of the engine…Supposing, for instance, that the fundamental relations of pitched sounds in the science of harmony and of musical composition were susceptible of such expression and adaptations, the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent.

This analysis was an important development from previous ideas about the capabilities of computing devices and anticipated the implications of modern computing 100 years before they were realized. Walter Isaacson ascribes Lovelace’s insight regarding the application of computing to any process based on logical symbols to an observation about textiles: “When she saw some mechanical looms that used punchcards to direct the weaving of beautiful patterns, it reminded her of how Babbage’s engine used punched cards to make calculations.” Of course, those of us who were computing in the 1970s know the trials and tribulations of punchcards. Youngsters with smart PCs have no idea.

According to the historian of computing and Babbage specialist Doron Swade:

Ada saw something that Babbage in some sense failed to see. In Babbage’s world his engines were bound by number…What Lovelace saw—what Ada Byron saw—was that number could represent entities other than quantity. So once you had a machine for manipulating numbers, if those numbers represented other things, letters, musical notes, then the machine could manipulate symbols of which number was one instance, according to rules. It is this fundamental transition from a machine which is a number cruncher to a machine for manipulating symbols according to rules that is the fundamental transition from calculation to computation—to general-purpose computation—and looking back from the present high ground of modern computing, if we are looking and sifting history for that transition, then that transition was made explicitly by Ada in that 1843 paper.

Though Lovelace is referred to as the first computer programmer, some biographers and historians of computing claim otherwise.

Allan G. Bromley, in the 1990 article Difference and Analytical Engines:

All but one of the programs cited in her notes had been prepared by Babbage from three to seven years earlier. The exception was prepared by Babbage for her, although she did detect a ‘bug’ in it. Not only is there no evidence that Ada ever prepared a program for the Analytical Engine, but her correspondence with Babbage shows that she did not have the knowledge to do so.

Bruce Collier, who later wrote a biography of Babbage, wrote in his 1970 Harvard University PhD thesis that Lovelace “made a considerable contribution to publicizing the Analytical Engine, but there is no evidence that she advanced the design or theory of it in any way”. Eugene Eric Kim and Betty Alexandra Toole consider it “incorrect” to regard Lovelace as the first computer programmer, since Babbage wrote the initial programs for his Analytical Engine, although the majority were never published. Bromley notes several dozen sample programs prepared by Babbage between 1837 and 1840, all substantially predating Lovelace’s notes. Dorothy K. Stein regards Lovelace’s notes as “more a reflection of the mathematical uncertainty of the author, the political purposes of the inventor, and, above all, of the social and cultural context in which it was written, than a blueprint for a scientific development.”

But . . . in Idea Makers, Stephen Wolfram defends Lovelace’s contributions. While acknowledging that Babbage wrote several unpublished algorithms for the Analytical Engine prior to Lovelace’s notes, Wolfram argues that “there’s nothing as sophisticated—or as clean—as Ada’s computation of the Bernoulli numbers. Babbage certainly helped and commented on Ada’s work, but she was definitely the driver of it.” Wolfram then suggests that Lovelace’s main achievement was to distill from Babbage’s correspondence “a clear exposition of the abstract operation of the machine—something which Babbage never did.”

Add to this statement her obviously prescient insight that “computing machines” could go far beyond algorithms for number crunching and you have the measure of her contribution to modern computer science.

This website gives a list of foods that are good for computer programmers given that they live largely sedentary lives, and don’t get out much. One of the chief needs, apparently, is a diet rich in vitamin D, presumably because programmers don’t see the sun very often !!. Egg yolks and some mushrooms are rich in vitamin D, so here’s a recipe from Lovelace’s era that fits the bill.  It is from Houlston’s Housekeeper’s assistant; or, Complete family cook. Containing directions for marketing; also, instructions for preparing soups, broths, gravies, and sauces; likewise for dressing fish, butcher’s meat, poultry, game, &c. (1828)

Eggs with Onions and Mushrooms

Boil the eggs hard, take out the yolks entire, and cut the whites in slips, with some onions and mushrooms. Fry the onions and mushrooms, put in the whites, and turn them about a little; then pour off the fat, if there be any; flour the onions, &c. and put to them a little good gravy. Boil this up, put in the yolks of the eggs, and add a little pepper and salt; then let the whole simmer for about a minute, and serve it up.

What this amounts to is a dish of boiled egg yolks in a mushroom and onion gravy containing sliced egg whites.  Not that complicated, and would make a nice brunch dish if you are into that sort of thing.