News for hackers. Stuff that matters.
Re:What Did Ada Lovelace's Program Actually Do? (2018) by bluGill on Tuesday December 17, 2024 @10:18AM (#42442037)
Lovelace seems to be the first to use loops. Babbage clearly created something first, but without any looping they were by nature much less complex, and so you could make an argument they don't count as programs ("hello world" would only count as a program because the library print function is likely to have some loop in it by this argument). Of course not all of Babbage's programs survive, it is entirely possible Babbage did have loops in some earlier programs that Ada knew of when she wrote her programs. Ada had much correspondence with Babbage, so it is possible she wrote programs before the ones we know of, but they are lost as well, who knows. Bottom line Ada and Babbage were working together (though countries apart) and so would have been thinking about what this new thing could do while it was in design the phase.

You can make whatever argument you want about first programmer. Ada was a smart person who clearly understood what this machine could do and had visions of the future of this machine. Even if you decide she wasn't actually the first programmer she is worth knowing about as an early pioneer.

Re:What Did Ada Lovelace's Program Actually Do? (2018) by countrymile on Wednesday December 18, 2024 @02:13AM (#42448680)
Ada was clearly incredibly intelligent. I can't source the original texts for Babbage's program, but it does seem that he was aware of loops, and might have implemented them:

"In the absence of other evi- dence I have had to adopt the minimal default assumption that both the operation and variable cards can only be turned back- ward as is necessary to implement the loops used in Babbage’s sample programs cited in Ada Lovelace’s notes (originals in L series notations)"

https://ieeexplore.ieee.org/document/887986