this post was submitted on 24 Nov 2025
357 points (99.2% liked)

Programmer Humor

27490 readers
1557 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] bearboiblake@pawb.social 35 points 23 hours ago (2 children)

An opportunity to share one of my favourite StackOverflow questions of all time!

It's well worth reading through the answers and the comments, but here's a little sampler platter:

This will run for a lot more than hours. Assuming it loops at 1 GHz (which it won't - it will be a lot slower than that), it will run for 10790283070806014188970 years. Which is about 83 billion times longer than the age of the universe.

damn - so maybe serveral threads generating guids is a better idea?

4 threads on a quad core processor would make it run in 20 billion times the age of the universe - so yeah, that would help a lot.

[–] ulterno@programming.dev 14 points 22 hours ago* (last edited 22 hours ago)

Perhaps run 20 billion threads and you will end it by the time the universe doubles its age.

What? I can't set /proc/sys/kernel/threads-max to 20 billion‽
Gotta send a bug report to the Linux kernel.

[–] daw@feddit.org 2 points 13 hours ago (1 children)

Apparently the guy now works at the federal crime office (bka) in Germany now😂😂

His description is "we all have our segfaults"