Logo
What's a programmer's favorite place? The foo bar!
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Logic-paradox Memes

Posts tagged with Logic-paradox

Recursion Stack Exceeded

Algorithms Programming Debugging
4 months ago 21.5M views 0 shares
Recursion Stack Exceeded
The genie offers 3 wishes, and our clever protagonist immediately spots the infinite loop exploit: "I wish you don't grant this wish!" The genie's brain starts processing the paradox—if he grants the wish, he's not granting it, but if he doesn't grant it, he IS granting it. Cue the stack overflow as the poor genie's logic enters an infinite recursive call with no base case. His processor is literally melting trying to evaluate if (grantWish()) { return !grantWish(); } until the call stack explodes. It's basically the programming equivalent of "this statement is false" but weaponized against magical beings. Maximum recursion depth exceeded, genie.exe has stopped responding.

Today's picks

CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM

CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM

Affiliate
$159.99
Select All... And Watch Your DBA Cry

Select All... And Watch Your DBA Cry

Databases
368.2K views 1 year ago
this is fine

this is fine

Programming
108.2K views 3 years ago