• sbv@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    26
    ·
    1 year 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‽

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    1 year 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

    • kadu@lemmy.world
      link
      fedilink
      arrow-up
      21
      ·
      1 year 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.

  • Deebster@beehaw.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    1 year 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.