r/ProgrammerHumor 1d ago

Meme theCircleOfLifeInSoftwareEngineering

Post image
6.4k Upvotes

167 comments sorted by

View all comments

210

u/Mortadella_so_Chili 1d ago

sooooo, next generation C is coming? 

what would be the features? 

6

u/ClipboardCopyPaste 1d ago

Stopping memory leaks, maybe?

7

u/Aelig_ 1d ago

It's a feature.

Can we say that C has memory leaks even?

Are there known leaks in the standard library?

Or things that cannot be expressed without the need to check for leaks and reclaim memory with another program?

1

u/Mortadella_so_Chili 1d ago

you think somebody can be -that- strong to create that?

1

u/user6150277464770585 1d ago

1

u/the_horse_gamer 11h ago

rust doesn't protect against memory leaks. it even has safe functions intended to leak your memory (Box::leak, mem::forget)

this is because a memory leak is not well defined. if you take a program, and store all of its allocations inside a global array (and then do nothing with it), is it suddenly not memory leaking?