55
top 11 comments
sorted by: hot top controversial new old
[-] sbv@sh.itjust.works 26 points 2 years ago

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‽

[-] Carighan@lemmy.world 8 points 2 years ago

Yeah this seems ripped/copied from somewhere. The text alludes to something between that paragraph and the next one.

[-] PlutoniumAcid@lemmy.world 3 points 2 years ago

Also, that text is barely English. Who wrote that?

[-] eager_eagle@lemmy.world 17 points 2 years ago

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

[-] swordsmanluke@programming.dev 9 points 2 years ago* (last edited 2 years ago)

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...

bugone 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.

[-] eager_eagle@lemmy.world 2 points 2 years ago

yassss

go Ada!!

[-] ultratiem@lemmy.ca 16 points 2 years ago

tl;dr: Answer: not much, it was the first computer what were you expecting

[-] kadu@lemmy.world 21 points 2 years ago

what were you expecting

Honestly, I think something simple yet useful like a program that could tell us if another program will endlessly loop or will eventually halt. That sounds simple and nice right? We could test our code to see if it will run correctly. Should be trivial enough.

[-] eager_eagle@lemmy.world 18 points 2 years ago* (last edited 2 years ago)

"such simple program is left as an exercise for the reader"

💀

[-] Deebster@beehaw.org 7 points 2 years ago* (last edited 2 years ago)

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.

this post was submitted on 21 Nov 2023
55 points (83.1% liked)

Programming

21621 readers
309 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS