Crochet, Bobbin Lace, and Algorithms: how Women are the OG programmers even before computers existed.
How the Jacquard loom and women's textile work laid early groundwork for programming and algorithmic thinking, and how to explain it to your team.
Mercedes Bernard, a software developer who also crochets, put it in one line: “A crochet pattern is essentially a program; a program is a pattern,” she writes on her blog. The idea is appealing, and it often turns into a bigger claim. If a pattern is a program, then the women who followed patterns for generations were the first programmers, and the logic behind today’s AI was practised for centuries in a craft setting.
This article tests that claim. Crochet and bobbin lace patterns do contain the core ideas of programming: sequences, loops, conditions and abstraction. That makes textiles a concrete, tactile way to explain computational thinking to a business team. The documented history is narrower than the popular version, though. The real bridge between thread and code runs through the Jacquard loom and Ada Lovelace, not through crochet hooks or lace pillows. Leaders who want a credible analogy need both halves: the metaphor that works, and a clear view of where the evidence stops.
We start with what can actually be shown on the page of a pattern.
What programming concepts live in a pattern
The parallels below come from programmers and educators reading textile patterns with a coder’s eye. They are a modern interpretation, not a claim about what historical makers thought they were doing. As an explanatory tool, they hold up well.
Sequence, function and loop
Bernard’s starting point is that a crochet pattern is a set of instructions carried out in order. The person crocheting becomes the “hardware” that runs the designer’s “code,” as she explains in her essay on crochet and code. That is the first concept every team needs: a sequence, where order matters and skipping a step changes the result.
The second concept is the function. Bernard compares a crochet stitch to a code method: a small, named set of instructions you call from many places in a pattern without rewriting it each time (Bernard). A “double crochet” is defined once and then invoked by name dozens of times.
The third is the loop. Stitch repeats can be fixed to a set number, like a for loop, or continued “until the end of the row,” like a while loop. Bernard pushes further and compares the row to a class and each repeat to an instance of it (Bernard). The second form also contains a condition: keep going while there is still row left.
Other sources point the same way, but they should be read with caution because we only saw search snippets. A post on Medium notes that patterns use repetition and custom stitch notation for complex designs, much like loops and macros. A British teaching resource at physicalcomputing.co.uk names three programming concepts in crochet patterns, sequence, repetition and subroutine, and points out that asterisks (…) mark the section to repeat.
Testing and debugging
The parallel most useful to an executive has nothing to do with syntax. Bernard describes pattern testers as quality assurance: they find “bugs” where stitch counts don’t add up and flag instructions that are ambiguous. Pulling out rows of work, which crocheters call frogging, she compares to refactoring (Bernard).
Any team that has written a process manual will recognise this. An instruction that is obvious to its author confuses the next person. A handover where the numbers don’t reconcile is a bug, whether it lives in a spreadsheet, an onboarding guide or a prompt your team reuses every day. That last point is why we argue that your prompts are an asset worth testing and versioning like any other procedure.
Bobbin lace: finite, formal rules
Bobbin lace offers the strongest version of the analogy. In a peer-reviewed paper, Irvine and Ruskey show that all bobbin lace comes down to two basic actions, cross and twist, applied to four threads. They build a mathematical model from braid and graph theory that generates patterns no one had made before (Irvine and Ruskey). A tiny instruction set produces enormous variety, which is exactly how computers work.
Others have formalised it further. A 2022 paper at the Design Computing and Cognition conference defines two formal grammars for Cretan bobbin lace, describing the process as sequential rule application that finite automata could execute (DCC’22). A University of Victoria thesis used combinatorial search to identify more than 5 million distinct prime lace ground patterns, compared with roughly 1,000 in existing catalogues (University of Victoria). We saw both of these only as search snippets.
One caveat matters here. As recently as 2012, a paper at the Bridges conference noted that very little had been written about bobbin lace from this angle (Bridges). Contemporary mathematicians wrote these formal descriptions; historical lacemakers did not. The rules were always there in the craft. The formal language for describing them is new.
The real historical link: the Jacquard loom
If you search for the programming origins of the Jacquard loom and Ada Lovelace, this is where the documented history lives. The connection between textiles and computing is real, but it runs through a mechanical loom.
The principle is simple. According to a Science History Institute article (which we saw only as a snippet), each punched card passed in front of rods linked to warp threads. Where there was a hole, the rod went through and the thread was lifted; where there was none, it stayed down. That is binary encoding: hole or no hole, lift or don’t lift. The same source reports that an 1839 woven portrait needed more than 24,000 cards.
The cards were laced together into a chain. As Columbia University’s computing history pages put it, “the deck is a loop”: the cards go round and round through the reader, producing a repeating pattern. The same loom could weave unlimited designs simply by changing the cards.
That was the Jacquard loom’s key contribution: it separated the instructions from the machine that carries them out. In the words of Automation History, “The same loom could produce different patterns when supplied with different card sequences.” Hardware on one side, software on the other. This was what Lovelace saw.
One idea, many hands
Two nuances keep the story honest. First, no single person invented the punched card. It predates Jacquard: Basile Bouchon used it in the 1720s, Jean-Baptiste Falcon in 1728 and Jacques de Vaucanson in the 1740s. Historians disagree on how much credit each deserves (Automation History).
Second, the Jacquard loom was not a computer. Even a source sympathetic to the analogy warns that it “did not store arbitrary data, execute conditional software, or operate as a modern programmable computer” (Automation History). It ran loops, but it did not make decisions.
There is also a lesson for anyone automating today. The punched cards did not eliminate skilled work; they moved it. Preparing and repairing a card chain, and setting up and running the loom, stayed specialist tasks, while the role of the “drawboy” assistant shrank (Automation History). It is the same distinction we draw between using AI and operating AI.
Ada Lovelace and the engine that “weaves algebraical patterns”
Charles Babbage designed the Analytical Engine as a general-purpose calculating machine. Lovelace, who was trained in mathematics, worked with him while he designed it, and in 1843 she published her “Notes” on the machine, explaining how to set it up and suggesting it could handle music or letters. [source: date Lovelace and Babbage met, usually given as 1833]
Lovelace made the textile connection herself. For her, the Analytical Engine’s distinctive feature was “the introduction into it of the principle which Jacquard devised for regulating, by means of punched cards, the most complicated patterns in the fabrication of brocaded stuffs” (Lovelace, 1843). Her best-known line follows the same image: “the Analytical Engine weaves algebraical patterns just as the Jacquard loom weaves flowers and leaves” (quoted by Lady Science).
The point was that the cards would fix the operations, not the numbers. Program and data would be separate, as in the loom, where the cards fix the design and not the yarn. [source: Lovelace’s passage on operation cards versus variable cards] That separation let her imagine more than arithmetic. If the relationships between musical sounds could be expressed in the engine’s notation, she wrote, “the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent” (Lovelace, 1843). She saw a machine that manipulates symbols, not just a calculator. That idea is at the heart of modern computing and AI.
Some caution is needed here too. According to the Bodleian Libraries (seen as a snippet), the Analytical Engine was never built. It would have been programmed with Jacquard-style cards, and a mechanism would let it repeat a deck to execute a loop. The famous table in Note G is, strictly speaking, an execution trace; the “program” itself would have been the deck of cards.
What the sources don’t say: the limits of the thesis
The table below sums up the analogy and rates how solid each parallel is.
| Programming concept | Crochet or lace equivalent | Jacquard / Lovelace equivalent | Evidence level |
|---|---|---|---|
| Sequence | Instructions worked in order (Bernard) | Cards read one after another | Strong as analogy; modern interpretation |
| Function / subroutine | A named stitch used many times | Not documented in these sources | Analogy from programmers’ blogs |
| Loop | Repeats a set number of times or to row end; asterisk repeats | The card deck is a loop (Columbia); engine repeats a deck (Bodleian) | Documented for Jacquard and the Engine; analogy for crochet |
| Condition | “Until the end of the row” | Jacquard had no conditional logic (Automation History) | Weak; loose reading only |
| Separating program and data | Same pattern, different yarn | Same loom, different card chains (Automation History) | Strong for Jacquard |
| Finite formal rules | Cross and twist on four threads (Irvine and Ruskey) | Binary hole/no hole | Strong, but formalised recently |
| Debugging | Pattern testers and frogging | Repairing card chains | Analogy |
The popular version of the thesis says that women crocheters and lacemakers practised the logic of AI for centuries. The sources do not support it, for several reasons.
The documented link is with the mechanical loom, an industrial technology developed in workshops by male inventors. Lovelace’s Notes, which she signed with the initials “A.A.L.,” do not mention crochet, lace or handcraft (Lovelace, 1843). Nor is there a straight technical line to modern AI: according to some scholars cited by JSTOR Daily, the Analytical Engine did not influence the first modern computers, even though they also used punched cards. It is a conceptual analogy, not a technical genealogy.
The “for centuries” is also shaky for crochet. A popular source states there is no solid evidence it existed before the 19th century (Superprof); that is not an academic source, but it should make us cautious. And the 20th-century women programmers came from mathematics, not textiles. The six ENIAC programmers all had college degrees, most in mathematics, and some already worked as human computers for the army (National Women’s History Museum), drawn from a pool of about 200 women calculating firing tables (NWHM). No source mentions any textile skill.
The research gaps are significant. We found no study showing that crochet or lace patterns influenced Babbage or Lovelace (Wolfram), no primary source showing that the ENIAC women, Hopper or Hamilton crocheted or made lace (Lady Science), and no recent work by historians treating crochet or bobbin lace as a programming language (NYU Confluence). The closest argument to the thesis is a 2025 NYU essay claiming that 18th- and 19th-century knitting manuals “often read like vernacular programming scripts” and that this knowledge was overlooked because it was feminised work (NYU Confluence). It is a thought-provoking student essay, but it offers no primary evidence about the manuals.
Women and computing: what is proven
None of this diminishes women’s role in computing. It simply puts the credit where the evidence is.
When the ENIAC arrived, nobody knew what programming a computer involved. There were no manuals until 1946, and the women “trained themselves” through trial and error: they turned mathematical problems into instructions, wired the machine and debugged it (National Women’s History Museum). Grace Hopper held a mathematics and physics degree from Vassar and a PhD in mathematics from Yale; an article in the Notices of the AMS argues that her training in pure mathematics is often minimised (Auel, AMS). She programmed the Harvard Mark I, supervised UNIVAC programming, invented the first compiler and developed FLOW-MATIC and COBOL (NWHM). Margaret Hamilton graduated in mathematics in 1958, joined MIT in 1959 and later led the Apollo flight software (ABC News/AP).
There are real textile links, but they are specific. On the Apollo program, women, many of them former textile workers from New England mills, were hired to weave the “rope memory” for the spacecraft’s computers (NYU Confluence). That was hardware weaving, not pattern design. Going back further, the historian Whitney Sperrazza points to Elizabeth Lucar (1510–1537), whose epitaph praised her needlework, writing and arithmetic, to argue that textile work and calculation were related through “skills like modeling, scaling, and spatial problem solving” (Lady Science). It is a suggestive case that partly supports the thesis, though it does not involve crochet or lace.
Andean weaving and Latin America: patterns, not loops
In our region, Andean textiles show sophisticated mathematical and procedural thinking. According to a CAA Reviews review, the Andean weaver personally controls complex structures, formulated through visual and mathematical systems, in sequential stages that include counting and selecting threads to form the design. The reference work behind it, by Arnold and Espejo, reportedly draws on more than 700 textile samples from Bolivia, Peru and Chile and uses the weavers’ own Aymara and Quechua technical terms; those details come from a retailer’s listing, not from the review.
In Puno, the PUCP educator María del Carmen Bonilla won the 2021 Clame award for a thesis on weaving the unqhuña on a four-stake loom. Weavers set up the loom base in about five minutes and, as she puts it, “sin ser conscientes de ello” [without being aware of it], apply notions of parallelism, perpendicularity and the properties of parallelograms (PuntoEdu PUCP). The quipu offers another example: the position of a knot marked units, tens or hundreds, and the absence of knots denoted zero (Revista Latinoamericana de Etnomatemática).
Two cautions apply. The CAA review contrasts Andean weaving, where the weaver controls the pattern by hand, with cultures that mechanised it through drawlooms or the Jacquard (CAA Reviews). The Jacquard, the real ancestor of programming, was European and industrial. And no source shows Andean weavers describing their work in terms like loop or condition; that vocabulary comes from researchers (CAA Reviews). The patterns are rich mathematics. Calling them algorithms is our analogy.
How to use the analogy with your team
Used honestly, textiles are an excellent tactile entry point to computational thinking. Researchers funded by the NSF argue that weaving’s structured, patterned nature suits “pattern recognition, algorithmic thinking, decomposition, and abstraction,” and they link it explicitly to the Jacquard loom (Huang, Peppler et al.). In their 2025 study, a string-weaving activity raised 19 university students’ scores from 2.95 to 6.11 out of 10 (CSCL 2025). That is encouraging, but the sample was small and there was no control group.
The broader evidence is modest. A 2022 doctoral thesis compared teaching coding through knitting with traditional instruction and found the results comparable, not superior (University of Kentucky). Its real motivation was identity and access: reaching people who don’t see themselves as programmers through something they already enjoy (University of Kentucky). One student in the 2025 study also named a limit: physical manipulation works poorly for random patterns, which call for trial and error, whereas an algorithm lets you automate (CSCL 2025).
So use textiles as a door, not as a promise. Here is a simple exercise for a team session:
- Ask each person to write a routine work procedure as if it were a pattern: numbered steps, named sub-steps (functions) and repeats marked with asterisks.
- Swap the patterns. Someone else “executes” the procedure exactly as written, without asking questions.
- Record every point where the result doesn’t add up or the instruction was ambiguous. Those are your bugs.
- Rewrite and test again.
In under an hour, the team practises sequence, abstraction, loops and debugging on its own processes. It is also the logic behind a well-written AI prompt. Like our post on what shoelaces can teach about business and AI, it shows that everyday objects make abstract ideas stick.
There is also a strategic reason to widen the entry points. Women make up 24.8% of AI researchers in Latin America and the Caribbean, with less continuity in their careers (CENIA/CEPAL). Yet in 90% of the countries analysed, they publish more than average: 0.8 publications per researcher against 0.59 (CENIA/CEPAL). In benchmark countries outside the region, the figure is 27.4% (CENIA/CEPAL). The gap is in entry and retention, not ability. More on the regional picture in AI in Latin America.
Conclusion: a good metaphor, an honest history
A crochet or lace pattern is a powerful way to teach sequences, functions, loops and debugging. The documented link between textiles and computing is the Jacquard loom, which separated instructions from the machine, and Ada Lovelace, who saw an engine that “weaves algebraical patterns.” The women who pioneered programming got there through mathematics and their work as human computers. Telling the story precisely makes the analogy more credible, not less.
The same applies inside your company: learning to think in processes is a habit you build, not a slide you show once, as we explain in why AI training is not just a course. If you want your team to learn computational thinking with everyday examples, book a workshop with LionMane Software. Or, if you are looking for the right way to explain AI across your organisation, let’s talk.
Sources
- Crochet, Code, Craft — Mercedes Bernard (blog personal, programadora), 2018-07
- Modeling Crochet as a Programmer. During my batch at the Recurse Center…
- Programming in Crochet — physicalcomputing.co.uk, 2020-12
- Developing a Mathematical Model for Bobbin Lace
- Making Grammars for Computational Lacemaking (DCC’22) — Design Computing and Cognition conference, 2022
- Lace tessellations: a mathematical model for bobbin lace and an exhaustive combinatorial search for patterns — University of Victoria (tesis), 2015
- Broadening the Palette for Bobbin Lace: A Combinatorial Approach — Bridges (matemática y arte), 2012
- The French Connection — Science History Institute, 2022
- The Jacquard Loom — Columbia University Computing History
- Jacquard Loom — Punched-Card Pattern Control — Automation History LLC, 2026
- Women and Computing — National Women’s History Museum (Sarah McLennan, PhD, historiadora), 2015-12
- Sketch of the Analytical Engine invented by Charles Babbage (Notes by the Translator, 1843) — Classics in the History of Psychology, York University (reproduces Scientific Memoirs vol. 3, 1843), 1843
- Before Lovelace — Lady Science (Whitney Sperrazza, RIT), 2020-12
- Ada Lovelace and the Analytical Engine — Bodleian Libraries, University of Oxford, 2018-07
- Ada Lovelace, Pioneer — JSTOR Daily
- ¿Qué es el crochet? — Superprof México
- Untangling the Tale of Ada Lovelace — Stephen Wolfram Writings, 2015-12
- Reclaiming the Thread — Confluence, Gallatin School, NYU (ensayo estudiantil), 2025-12
- The Mathematics of Grace Murray Hopper — Notices of the AMS (Asher Auel, Yale), 2019
- Margaret Hamilton, who led a software team for NASA’s Apollo program, dies at 90 — ABC News / AP, 2026-10
- The Andean Science of Weaving (reseña de Elena Phipps) — CAA Reviews, 2017
- The Andean Science of Weaving: Structures and Techniques for Warp-Faced Weaves: Arnold, Denise Y., Espejo, Elvira: 9780500517925: Amazon.com: Books
- Tesis que recupera los saberes matemáticos en los tejidos quechuas — PuntoEdu, PUCP, 2021
- Hacia una perspectiva etnomatemática del quipu incaico como puente entre el sistema contable y la escritura — Revista Latinoamericana de Etnomatemática, 2019
- Crafting Computational Thinking with Rope Weaving — ISLS, CSCL 2025 (Huang, Peppler et al.; financiado por NSF), 2025
- Knitting Code: Examining the Relationship Between Knitting and Computational Thinking Skills Using the Nexus of Practice — University of Kentucky (tesis doctoral, Dodson-Snowden), 2022
- Índice Latinoamericano de Inteligencia Artificial – ILIA 2026 (home) — CENIA / CEPAL, 2026-10