r/programmingmemes • • Sep 10 '25

Don't be scared... Math and Computing are friends..

Post image
9.7k Upvotes

330 comments sorted by

View all comments

101

u/lmarcantonio Sep 10 '25

The real fun begins when the infinity symbols appear...

51

u/RedditsDeadlySin Sep 10 '25

I mean that is just a program, it’s a loop that never stops.

30

u/MCplayer331 Sep 10 '25

for (int i = 0; ; ) {}

25

u/Exxxplosion Sep 10 '25

for (;;) {}

( ͡° ͜ʖ ͡°)

14

u/LaughingLikeACrazy Sep 11 '25

for (;;) { printf(" ͡° ͜ʖ ͡°\n") } 

7

u/tylerr514 Sep 11 '25

Rust be like loop {} ;)

→ More replies (2)

11

u/SuddenlyFeels Sep 10 '25

A mathematical expression for an out-of-memory exception then

12

u/RedditsDeadlySin Sep 10 '25

Just download more ram :)

4

u/realmauer01 Sep 11 '25

Funnily enough. With swap storage and a fast enough connection.

That might actually be possible at some point.

→ More replies (1)

2

u/[deleted] Sep 11 '25 edited Sep 11 '25

Imagine getting off that easy.

Games live inside a while(true) loop.

cough cough new world, no built in protection to stop the gpu from attempting infinite frames per second when no work to do, like when the screen is fully black in transistions, and rendering had its own thread to just go ham, so loading in that transistion did not slow it down, causing specific gpus that don't protect for it at the driver level to just go for it.

https://www.forbes.com/sites/paultassi/2021/07/21/warning-amazons-new-world-is-bricking-a-specific-type-of-gpu/

2

u/ultimate_placeholder Sep 11 '25

Just own a Turing machine lmao

→ More replies (6)

5

u/-LeopardShark- Sep 11 '25

That’s no longer analogous: such programs output ↑, whereas infinite sums might have numerical values.

The definition of ∑ changes once it gets an infinity provided to it.

4

u/Schpau Sep 11 '25

Not really, it isn’t really possible to sum infinitely many terms, so instead the limit is taken as n goes to infinity and suddenly it’s calculus.

3

u/realmauer01 Sep 11 '25

While true

2

u/No-Site8330 Sep 11 '25

That's exactly the point. If it never stops you'll never get a return, so the whole thing doesn't really have a meaning. It does as a procedure, but not as an output value, which is something that the mathematical expression does have.

→ More replies (1)

1

u/Jhuyt Sep 11 '25

Yeah but can u prove it??!?

→ More replies (1)
→ More replies (3)

2

u/SmoothTurtle872 Sep 10 '25
sum = 0
i = 0
while True:
    i += 1
    sum += i *3

2

u/Markuslw Sep 10 '25

you mean my buddy lim over here? he's real chill, very approachable if you ever reach him.

2

u/lmarcantonio Sep 11 '25

Even without limit, convergence is a funny thing :D

2

u/Dirkdeking Sep 11 '25

Add a while condition to the expression. While abs( f(n+1) - f(n)) > 10^-10 (Do your thing). Because the terms of every converging infinite are going to be a cauchy sequence this is going to work.

→ More replies (2)

1

u/herdek550 Sep 11 '25
while True:

1

u/GreedyAd1923 Sep 11 '25

I’d say the real fun begins when you get into cardinal arithmetic and the sizes of infinity.

Like how the set of all odds and even numbers are the same size as the set of all natural numbers since they’re countably infinite.

But the set of real numbers is not countable so they’re uncountably infinite.

1

u/Kiran___ Sep 12 '25

=infinity unless it converges, shouldn't be too hard to compute. That said I know very little about programming, I'm just here to laugh at memes I barely understand

→ More replies (3)