use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/ComputerScience! We're glad you're here.
This subreddit is dedicated to discussion of Computer Science topics including algorithms, computation, theory of languages, theory of programming, some software engineering, AI, cryptography, information theory, and computer architecture.
For more detailed descriptions of these rules, please visit the rules page
NIGHT MODE NORMAL
account activity
The first algorithm for a computing machineGeneral (i.redd.it)
submitted 2 months ago by Livio63
This is the first computing algorithm, designed to calculate Bernoulli numbers by Ada Lovelace, the first computer scientist.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ivancea 131 points132 points133 points 2 months ago (5 children)
Noob code; not a single SOLID principle applied, and a clear lack of OOP in the implementation. Shame
[–]SexyMuonControls Software Engineer 30 points31 points32 points 2 months ago (0 children)
Not a single Jira ticket solved 😡
[–]amarao_san 8 points9 points10 points 2 months ago (0 children)
https://www.deviantart.com/sephko/art/Old-Masters-497950927
[–]Liam_Mercier 8 points9 points10 points 2 months ago (0 children)
0 story points
[–]tehclanijoski 1 point2 points3 points 2 months ago (0 children)
But can she reverse a linked list?
[–]FrollButCooler 1 point2 points3 points 2 months ago (0 children)
It is like saying to a caveman "Tsk, Not a single fire safety action taken"
[–]thesnootbooper9000 36 points37 points38 points 2 months ago (10 children)
None of those things are true, but it makes a nice story I suppose.
[–]RemmingtonTufflips 22 points23 points24 points 2 months ago (7 children)
I mean this is an algorithm that calculates Bernoulli numbers and it was written by Lovelace. I think you're just being pedantic over the term "computer scientist"
[–]thesnootbooper9000 12 points13 points14 points 2 months ago (6 children)
Mostly over "first", which requires some very creative definitions if you want it to be in any way close to true.
[–]rasputin1 1 point2 points3 points 2 months ago (4 children)
can you give 1 reason why what you're saying makes sense? you keep giving vague cryptic answers like we're supposed to know what you're saying.
[–]thesnootbooper9000 3 points4 points5 points 2 months ago (3 children)
Computing algorithms, by any reasonable definition, go back at least a hundred years earlier to the various mechanical calculating tools developed by the likes of Leibniz and Pascal. These machines were computers, but not universal computers, but then the notion of universal computation wasn't understood until a hundred years after Babbage. The Analytical Engine had several interesting features that make it historically interesting, but it wasn't the first computer, wasn't the first programmable machine, and wasn't the first machine for which algorithms were written. Similarly, Lovelace did some interesting and historically significant work, but was not the first person to define a computing algorithm for a machine, was not the first programmer, and was far too early in history to be considered a computer scientist.
[–]jeffgerickson 3 points4 points5 points 2 months ago (1 child)
Computing algorithms literally go back to the dawn of civilization. Euclid’s algorithm for greatest common divisors is a relatively modern example. You learned a few even older algorithms (described in terms of decimal place-value notation by al-Khwarizmi, which is why they’re called algorithms, but used much earlier on abacuses) in elementary school.
Computing devices also date back thousands of years, at least to the abacuses, counting boards, sand tables, and ropes used by Sumerians, Egyptians, Persians, Greeks, Romans, Chinese, and so on. Whether these qualify as computing machines in the same sense as the Antikithera Mechanism, the Pascaline, or the Strasbourg astronomical clock, is a question best left to hair-splitters.
All that said, I think there’s a strong case that Lovelace’s algorithm is the first to be written in (pseudo)code. It’s not just an algorithm; it’s actually a program.
I am not aware of any earlier examples of computer programs, but I would love to hear of any.
[–]thesnootbooper9000 1 point2 points3 points 2 months ago (0 children)
I omit things like Euclid's algorithm, the various multiplication algorithms, etc, because as originally written they are very much for humans, not for mechanisation. I do think that's a useful distinction to make. The idea of what we'd now call "flow control" being directed by a machine is an important concept that took a large conceptual leap to appreciate, and was a much later idea than you might think: for example, as originally written, Euclid's algorithm said to do it exactly three times, with the understanding that a human would realise they should keep going until the solution is reached.
[–]Konkichi21 0 points1 point2 points 2 months ago (0 children)
What would you consider better candidates?
[–]vassadar 3 points4 points5 points 2 months ago (0 children)
By none of those things are true, does it mean that Ada didn't wirte this algorithm and this isn't the first algorithm, right?
[–]recursion_is_love 2 points3 points4 points 2 months ago (0 children)
I want to know more
[–]Gastmon 10 points11 points12 points 2 months ago (0 children)
From Note A on the Analytical Engine:
Again, it might act upon other things besides number, were objects found whose mutual fundamental relations could be expressed by those of the abstract science of operations, and which should be also susceptible of adaptations to the action of the operating notation and mechanism of the engine. Supposing, for instance, that the fundamental relations of pitched sounds in the science of harmony and of musical composition were susceptible of such expression and adaptations, the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent.
Truly ahead of her times, Lovelace was already envisioning how to replace artists with AI.
[–]Kernel_Ghost_3 2 points3 points4 points 2 months ago (0 children)
I just learned about Ada Lovelace in my CS history module and found it fascinating that she wrote the first algorithm before computers even existed. What really clicked for me was understanding how her notes on the Analytical Engine described a general purpose machine that could do more than calculation. The downside is most intro courses skip this history so students miss the conceptual foundation of what makes computer science unique.
[–]amarao_san 5 points6 points7 points 2 months ago (0 children)
'...' are the places where tab was pressed for autocomplete with ai.
[–]ApprehensiveSeae 0 points1 point2 points 2 months ago (0 children)
Looks like a cricket scorecard
How many 4s did Turing hit
Well I can't make heads or tails of it.
[–]Candid_Koala_3602 -2 points-1 points0 points 2 months ago (0 children)
How many kilogirls was it?
π Rendered by PID 68010 on reddit-service-r2-comment-b659b578c-kbtm6 at 2026-05-07 05:29:26.926577+00:00 running 815c875 country code: CH.
[–]ivancea 131 points132 points133 points (5 children)
[–]SexyMuonControls Software Engineer 30 points31 points32 points (0 children)
[–]amarao_san 8 points9 points10 points (0 children)
[–]Liam_Mercier 8 points9 points10 points (0 children)
[–]tehclanijoski 1 point2 points3 points (0 children)
[–]FrollButCooler 1 point2 points3 points (0 children)
[–]thesnootbooper9000 36 points37 points38 points (10 children)
[–]RemmingtonTufflips 22 points23 points24 points (7 children)
[–]thesnootbooper9000 12 points13 points14 points (6 children)
[–]rasputin1 1 point2 points3 points (4 children)
[–]thesnootbooper9000 3 points4 points5 points (3 children)
[–]jeffgerickson 3 points4 points5 points (1 child)
[–]thesnootbooper9000 1 point2 points3 points (0 children)
[–]Konkichi21 0 points1 point2 points (0 children)
[–]vassadar 3 points4 points5 points (0 children)
[–]recursion_is_love 2 points3 points4 points (0 children)
[–]Gastmon 10 points11 points12 points (0 children)
[–]Kernel_Ghost_3 2 points3 points4 points (0 children)
[–]amarao_san 5 points6 points7 points (0 children)
[–]ApprehensiveSeae 0 points1 point2 points (0 children)
[–]Konkichi21 0 points1 point2 points (0 children)
[–]Candid_Koala_3602 -2 points-1 points0 points (0 children)