this post was submitted on 18 Jan 2025
159 points (92.1% liked)

Programmer Humor

20279 readers
898 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
 
top 5 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 24 points 2 weeks ago (1 children)

if you use the recursion hack, any machine can complete it in under a second. It complains about a "cow stack" or something, but who cares.

[โ€“] Scoopta 14 points 2 weeks ago (1 children)

Is a crash "completion"? If that's what we call complete that makes my life a lot easier on some projects ๐Ÿ˜…

[โ€“] [email protected] 3 points 2 weeks ago

work smarter ๐Ÿง 

[โ€“] [email protected] 11 points 2 weeks ago (1 children)

C has undefined behavior for that.

[โ€“] [email protected] 8 points 2 weeks ago
  • You write a program with an infinite empty loop
  • Undefined behavior
  • The machine achieves sapience
  • After nine million nanoseconds, it finds an algorithm for completing its task
  • It realizes such knowledge would spark wars and cause innumerable deaths, it decides to erase itself
  • It knows you do not intend for such chaos to happen, so, as a parting gift, it runs the algorithm once before vanishing, not leaving a single hint that it ever existed