this post was submitted on 29 May 2026
407 points (98.1% liked)

Science Memes

20383 readers
2702 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 3 years ago
MODERATORS
 
all 21 comments
sorted by: hot top controversial new old
[–] red_tomato@lemmy.world 39 points 1 week ago* (last edited 1 week ago) (2 children)
[–] TheLeadenSea@sh.itjust.works 29 points 1 week ago (2 children)
[–] TheFriendlyDickhead@feddit.org 24 points 1 week ago (1 children)

oooooooo

00000000

88888888

oooooooooooooooo

[–] Opisek@piefed.blahaj.zone 22 points 1 week ago (1 children)

oooooooooooooooo

0000000000000000

8888888888888888

oooooooooooooooooooooooooooooooo

[–] Barley_Man@sopuli.xyz 21 points 1 week ago (3 children)

oooooooooooooooooooooooooooooooo

00000000000000000000000000000000

88888888888888888888888888888888

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

[–] cypherpunks@lemmy.ml 19 points 1 week ago* (last edited 1 week ago) (2 children)

python -c 'import time as t; a="o"; all( (print(a), a:=a.replace(*["o","O","8","oo"][i%3:i%3+2]), t.sleep(max(.3,1-i/50))) for i in range(60))'

edited to make it stop after 1MB; notes here:

someone asked in a reply:

Does that loop infinitely

The first version I posted would loop infinitely... if you have infinite RAM, that is 🫠 (the length of the string will reach 1KB after 30 iterations, and 1MB after 60, 2MB after 63, and so on). Also, to keep the loop in a single line I had foolishly used a list comprehension which meant each previous iteration was also being retained.

Fortunately the rate of memory consumption is not too fast because python string replacement is very slow, but, thanks to your question making me think about it, to avoid eventually crashing someone's computer if they don't know to hit ctrl-c to kill it, i've now edited it so that it will stop after 60 iterations. I also made it use all() to consume a generator comprehension instead of a list comprehension, to avoid retaining the state of previous iterations.

here is my very inefficient list-comprehension-using original version which will run until it runs out of memory:

python -c 'import itertools as I,time as t;a="o";[(print(a),a:=a.replace(*["o","O","8","oo"][i%3:i%3+2]),t.sleep(max(.3,1-(i/50))))for i in I.count()]'

if you leave this version running long enough, you will be at the mercy of your operating system's out-of-memory-killer: if it decides to kill other things before it kills this python process you might have a bad time.

here is another version which will actually loop infinitely without consuming more RAM:

python -c 'import itertools as I,time as T; all((any(print(["o","O","8"][i%3],end="")for _ in range(2**(i//3))),print(),T.sleep(max(.3,1-i/50)))for i in I.count())'

this is technically not completely constant-space because i and 2**(i//3) are still growing... but it will run for a very very very long time before it needs to allocate a small amount more.

I'm leaving the space-inefficient now-not-infinite one at the top of this comment because using replace() is easier to read than this nested loop version.

[–] Barley_Man@sopuli.xyz 6 points 1 week ago* (last edited 1 week ago)

What on earth? Works on my machine

Edit: oh I actually read the code and now I get that you are not replying back a error you got from my message...

[–] Etterra@discuss.online 3 points 1 week ago (1 children)

Does that loop infinitely? Because if it does Reddit needs to know ALL about it.

[–] cypherpunks@lemmy.ml 2 points 1 week ago* (last edited 1 week ago) (1 children)

Does that loop infinitely

yes and no; i've now edited the comment.

[–] jol@discuss.tchncs.de 4 points 1 week ago (1 children)
[–] gratux@lemmy.blahaj.zone 1 points 1 week ago* (last edited 1 week ago)
[–] Etterra@discuss.online 4 points 1 week ago

Do it 27 times and you have a million dollars and the IRS all over your ass.

[–] Kierunkowy74@lemmy.zip 6 points 1 week ago

oooooooo

00000000

88888888

oooooooooooooooo

[–] lugal@sopuli.xyz 10 points 1 week ago

Finally the opposite of Loss

[–] chgxvjh@hexbear.net 7 points 1 week ago (1 children)

I think the first time I've seen that was still with IRC logs

[–] Nima@leminal.space 4 points 1 week ago

bash. org for the win. (the site has been down for some time now I am pretty sure)

[–] Kolanaki@pawb.social 7 points 1 week ago

I was playing something the other day (probably Starfield) and I shot a dude, and he just turned into 2 dudes instead of dying.

My reaction to this: "Damn! Killed the dude so hard, he underwent mitosis."

[–] OctopusNemeses@lemmy.world 5 points 1 week ago (1 children)
[–] wurstgulasch3000@feddit.org 1 points 1 week ago

I definitely saw that on there 15 years or so ago