465
Peak code reuse (eviltoast.org)
you are viewing a single comment's thread
view the rest of the comments
[-] sjmarf@sh.itjust.works 77 points 1 month ago

Yep, this will cause a stack overflow.

[-] rovingnothing29@lemmy.world 32 points 1 month ago

A mod will appear in my office and claim my problem is a duplicate when it's not?

[-] Mad_Punda@feddit.org 24 points 1 month ago* (last edited 1 month ago)

Might very well be an endless loop because tail recursion can be optimized to reuse the stack frame. Depends on a lot of things of course.

[-] MonkderVierte@lemmy.zip 5 points 1 month ago* (last edited 1 month ago)

~~Hm, stack overflow is basically a forkbomb in programming?~~ ok, bullshit.

[-] orhtej2@eviltoast.org 21 points 1 month ago

Forkbomb kills the entire system so not really.

With the stack overflow the runtime will gracefully terminate the program.

this post was submitted on 12 Sep 2025
465 points (100.0% liked)

Programmer Humor

27224 readers
252 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