this post was submitted on 31 Aug 2025
314 points (96.4% liked)

Programmer Humor

26095 readers
1424 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
 

Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.

you are viewing a single comment's thread
view the rest of the comments
[–] GissaMittJobb@lemmy.ml 2 points 20 hours ago* (last edited 20 hours ago)

Yeah, you can use the Epsilon garbage collector in Java for a no-op garbage collection strategy.

For short-lived programs that do not risk hitting any memory constraints, it makes a lot of sense - zero time wasted on cleanup during execution, then you just do it all at the end when killing the program, which you can do in constant time since you don't need to reason about what should remain or not.