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 3 weeks ago

Yep, this will cause a stack overflow.

[-] rovingnothing29@lemmy.world 32 points 3 weeks 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 3 weeks ago* (last edited 3 weeks 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 3 weeks ago* (last edited 3 weeks ago)

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

[-] orhtej2@eviltoast.org 21 points 3 weeks 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

26762 readers
2553 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