Ada Lovelace: What did the first computer program do?

Aboel3z@programming.devbanned from sitebanned from site to Programming@programming.dev – 55 points –
Ada Lovelace: What did the first computer program do?
blobstreaming.org
10

A contemporary interpretation of Ada's punch card stack using JavaScript might resemble the following. This version doesn't replicate Ada's code for the Analytic Engine but rather reinterprets the algorithm she employed.

The version of the article I got doesn't include the code‽

Interestingly, there haven't been any identified bugs in Ada's Bernoulli calculation code. Even as she pioneered programming, it seems bugs weren't part of her invention.

She got this close to greatness tsk tsk

This is apocryphal anyway. There is a bug in Lovelace's algorithm.

https://twobithistory.org/2018/08/18/ada-lovelace-note-g.html

The article is fascinating, but if you just want to jump to the end...

::: spoiler bug one line of the algorithm has the variables swapped! It calculates v5 / v4 instead of v4 / v5. Not bad considering there wasn't a computer to run her code on yet, much less a debugger. :::

Bad link 👎

This article seems to be an incomplete pasting of an old article: What Did Ada Lovelace’s Program Actually Do? I was suspicious when it said "A contemporary interpretation of Ada's punch card stack using JavaScript might resemble the following" but didn't have any code.

The real tl;dr is it calculated terms of the Bernoulli series.