How Betty Holberton taught UNIVAC to write sorting programs in 1951

Photo: UNIVAC (Ik T from Kanagawa, Japan · CC BY 2.0 · Wikimedia Commons)

In 1951, in a crowded Eckert-Mauchly office in Philadelphia, someone asked Frances Elizabeth Holberton to make UNIVAC sort data it had never seen. The request sounded routine until she thought about what it meant. Every customer's records would look different, and a programmer who wrote one sort for one customer's tapes would have to start over for the next. Holberton decided not to write that sort.

She would write a program for the customer to feed. Hopper later described it plainly: you fed in the specs for the data and the keys, the fields that set the order, and the program generated the sort program for that data. Holberton developed the first sorting routine for UNIVAC and wrote this sort-generator, which allowed customized programs. Hopper called it the first program that wrote a program, the sort-merge generator.

The idea arrived before anyone talked about compilers, the programs that turn a person's instructions into a machine's. Holberton, born March 7, 1917, and dead December 8, 2001, had been one of the six original programmers of ENIAC, a machine that came before any such tools. How did a veteran of that room come to build a program that wrote programs?

Photograph: Betty Holberton
Photograph: Betty Holberton. Photo: Unknown author Unknown author. Wikimedia Commons · Public domain. Resized and converted to WebP; no retouching.

Six women, blueprints and no manual

Holberton sat down at a table with five other women and a stack of blueprints and wiring diagrams. Mathematician Herman Goldstine had picked all six for the work of running ENIAC, the Army's new electronic calculator, and he called them operators.

ENIAC was classified, and that set the terms. The women could not go near the machine at first. They were allowed only the paper: the diagrams of how its parts were wired and how its logic was laid out. Under Herman and his wife Adele Goldstine, they studied those pages to work out how the machine's switches and cables had to be set to make it do anything at all.

No one could hand them an answer. Kathleen McNulty later said there were no manuals, only blueprints, and that the women taught themselves to program. Each woman learned by tracing a circuit on paper and asking what it would do if a cable ran from here to there.

Holberton took on the hardest piece. ENIAC had a central unit that directed the sequence of a program, deciding which step came next and when to repeat one. She became responsible for it, the master programmer. Years afterward she told Kathy Kleiman that programming that unit was the toughest challenge of her 50-year career.

By then she and her colleagues had turned a locked-away pile of drawings into a working method. ENIAC was nearly ready to be shown to the public, and the women who had made it run would have no place in the show.

The unveiling where the women were not introduced

On February 15, 1946, the University of Pennsylvania showed ENIAC to the world. The machine had cost around $487,000, and the people who had built and run it stood in the hall waiting to see who would be called forward.

The engineers were introduced, and so were the army officers. The six women who had taught themselves to program the machine from blueprints were not. Holberton and her colleagues stayed where they were, unnamed, while the room applauded the men who had built the hardware and the officers who had paid for it.

Then the demonstration began, and the audience leaned forward. A shell's path through the air, a trajectory, was the kind of problem a person worked at by hand for more than a day. ENIAC finished it in about 15 seconds, and the room reacted as if it had watched a trick. Near the machine the women stood quietly, the cables and switches they had set still doing the work, and no one in the hall turned to look at them.

The engineers knew. Kleiman would later say that the male engineers respected the programmers, but that respect stayed private and never became public.

Holberton drew her own lesson and went on working. She learned to do the job well in the background, and she kept her colleagues' jokes at a good-humored distance. Other programmers said she solved more problems in her sleep than other people did awake.

ENIAC was finished, and a newer machine was waiting. It could hold more data and do more, but it had no easy way for a person to tell it what to do. Holberton set out to give it one.

A keyboard, a gray-beige case and a code written at night

Holberton wanted to type to the machine. At the Eckert-Mauchly Computer Corporation, a company formed by the principal ENIAC developers and bought by Remington Rand in 1950, she had a new computer to work on. The old way of commanding one was to walk up to it and turn dials and flip switches.

The Bureau of the Census had contracted with the company for a machine to handle census tabulations, and that machine became UNIVAC, ready in 1951. The engineers who were building it wanted it as it stood, with its controls where they had put them. Holberton did not argue the point in the abstract. She designed the control panels herself and set the numeric keypad right next to the keyboard, so that one person's hands could move between letters and numbers without leaving the desk.

A keyboard needs a language, and she wrote one. C-10 was a code in which a short typed command told UNIVAC what to do, in place of a dial turned to a setting. Its mnemonics were meant to be remembered: A stood for add, and B stood for bring. Holberton later said she designed most of C-10 at night, lying awake. While the office slept, she worked the commands out in her head.

Then she turned to the machine's appearance. UNIVAC was to be built with a black exterior, and Holberton persuaded the engineers to change it to gray-beige. A computer that people would sit beside, type to and trust with their records, she judged, should not look like a locked black box.

Grace Hopper is said to have called C-10 "the basis for all subsequent programming languages" and to have called Holberton "the best programmer" she had known.

Grace Hopper called C-10 the basis for all subsequent programming languages.

For all that, UNIVAC could now be talked to, and its tape reels still waited for customers' records. Each customer's data would need sorting, and no keyboard command could do that by itself.

Ten tape drives and a deck of cards

Holberton spread a deck of playing cards across a desk and moved them around, one at a time. She was working out the decision tree for a binary sort function, the branching series of choices that settles which record goes ahead of which.

UNIVAC's metal tape drives could store 10 megabits on a single removable reel, and customers would arrive with reels full of records she had never seen. She was already writing UNIVAC programs for payrolls, inventory and other universal functions, and she knew how different those records were from one customer to the next. A payroll tape and an inventory tape would not share a layout. A sort written by hand for each one would keep her at the desk for years.

The machine also had to move all that data. Holberton wrote code to employ a group of ten tape drives, reading and writing as the process needed them. Tape would spin on one drive while another took the output.

Then she made her choice. She would not write the sort for any one customer. She would write a program that took in a customer's specifications and keys, then wrote the sort program itself.

Years later, Hopper described it as the first time, to her knowledge, that anyone had used the computer to write a program. The people in the office saw a woman at a desk with a deck of cards, and most of them did not look closely. Down the hall, though, sat a woman who had been at Holberton's interview and who spent her days watching how programs got made. What would Hopper make of a program that wrote another?

What Hopper saw in the next room

Grace Hopper sat down in 1951 with a stack of routines and an assignment: collect them into a subroutine library, a shelf of tested pieces of code that any programmer could pull down and reuse. Two years earlier John Mauchly had hired her into Eckert-Mauchly, and Holberton had been in the room for her interview.

Reading through the routines, Hopper saw the trouble. Programmers copied them into new programs, and they could not copy correctly. A careless delta, the Greek letter, came out looking like a 4. Bs turned into 13s. Every slip meant a program that failed for reasons that had nothing to do with the problem it was meant to solve.

Hopper reasoned that copying and addition were exactly the work a computer was built for. If a machine was good at those two things, the machine should do them, and the people should stop. So she watched herself assemble a program, step by step, and then made the computer do what she had just done. The result was the first compiler, a program that put other programs together from stored pieces. Hopper called it very stupid.

She also knew she was not stepping onto empty ground. Down the hall, Holberton had already used a program to generate a program. Hopper said that knowledge gave her more nerve to build her compiler, the A-0. She went further and said she might not have done what she did if Holberton had not been ahead of her.

What happened to the woman who had gone first?

The compiler gets the headlines

Hopper needed money, so she gave her bosses something they could look at. Her preliminary model of the A-0 ran on only 20 statements, and she built it to get the budget. Once the funds came through, the A-0 of 1952 became a mathematically oriented compiler that read through a program in a single pass.

The idea kept growing. A-0 led to B-0, known as Flow-Matic, and Flow-Matic became a precursor to COBOL. Other languages in the same family carried the names ARITH-MATIC and MATH-MATIC. When the family tree was drawn later, C-10 stood among the influences on A-0 and on B-0, ARITH-MATIC and MATH-MATIC alike. The typed code Holberton had written at night was part of the soil these languages grew from.

Then IBM entered the story from another direction. In 1954 John Backus, Irving Herrick and Harlan Ziller developed the specification for FORTRAN. It was the first rigorously defined scientific programming language, and it was aimed at engineers and scientists who wanted to write formulas and leave the machine code to someone else.

Compilers and languages were things people could name, argue over and teach. The sort generator was a program that took specs and keys and wrote a sort, and it had no catchy label.

Holberton, she said, "got buried in NBS," and after that nobody heard from her. Hopper added that Betty never received the credit she should have received long since.

Who was left to remember the woman who had gone first?

The photographs that only named the men

Kathy Kleiman began with photographs from 1946. In every one of them the captions named the men and left the women standing beside the machine as faces without names. She started from those faces and worked backward, one woman at a time, and Holberton's name was among the ones she brought back into the light.

The work paid off in the 1990s. Kleiman's research brought Holberton recognition and national honors, and 1997 was the year they piled up. The IEEE gave her its Computer Pioneer Award for the sort/merge generator, with a citation saying the program "inspired the first ideas about compilation." That same year she received the Augusta Ada Lovelace Award, and of the six women who had taught themselves to program ENIAC, she was the only one to get it.

Timeline of key years in ENIAC and UNIVAC development featuring 1946, 1950, 1951, 1952, 1954, and 1997.

The honors sat oddly on someone who had spent a career arranging not to be noticed. Holberton said she had always stayed in the background and gotten things done without people knowing. The machines ran, the sorts came out in order, and the credit drifted to whoever stood closer to the microphone.

Go back to that crowded office in Philadelphia in 1951, where a customer's specs and keys went in one end of the sort generator and a finished sort program came out the other. A deck of playing cards might still have been fanned across her desk from the day she mapped the decision tree, and the machine down the hall was writing the rest on its own. Nobody in the room that day thought to take a photograph, and decades later the citation did the job the camera never did.

Cover: Ik T from Kanagawa, Japan · CC BY 2.0 · Wikimedia Commons. Layout and headline text by Signal Titans.

Source: The Program That Wrote Programs: Betty Holberton and the Sort-Merge Generator on UNIVAC I, 1951 · archive.computerhistory.org · ENIAC Programmers Project · On Computers: historical development of computers · www.latimes.com · HOPL · ENIAC Programmers Project · Podcast: Kathy Kleiman on the Women who Invented Coding [Audio] · pcfly.info

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *