TheaterFire

Note to self: never forget free()

Posted by TDude53@reddit | ProgrammerHumor | View on Reddit | 17 comments

Reply to Post

17 Comments

entropySapiens@reddit

Rust: why the hell would I want my developers worrying about something as tedious and mundane as freeing up memory?
View on Reddit #134845

Antervis@reddit

instead, developers have to worry about all the rules rust introduced to make it impossible to forget freeing memory
View on Reddit #146216

entropySapiens@reddit

If developers are supposed to do that anyway, why not get help from enforced rules?
View on Reddit #147598

Antervis@reddit

said rules are much stricter than "don't forget to free" and the like.
View on Reddit #156803

entropySapiens@reddit

That's the whole point.
View on Reddit #161395

Antervis@reddit

ehm... no? A perfect set of restrictions would make it impossible for you to make mistakes but allow all code that is correct resource-wise. Rust's ownership model does not, and relaxing those rules is one of the biggest goals of rust maintainers.
View on Reddit #161620

ibo5534@reddit

rust bad
View on Reddit #143928

entropySapiens@reddit

What in the hell makes it bad? A unified package ecosystem? A de facto toolchain? Helpful borrow checking? The hugs you get from the compiler error messages? Benchmarks that make it competitive with C? Playing well with python? Not having to generate needlessly redundant header files? Amazingly powerful macro system? Much smarter handling of `null`? A de facto manual and excellent tutorials? I mean, I'm a humble mechanical engineer and barely know what I'm doing in software development, but I thought all these things were fun to learn about and offered a powerful way to write code that is way faster, more robust, and more easily maintainable than the MATLAB environment in which I cut my teeth on programming.
View on Reddit #146085

LanceMain_No69@reddit

Someone: "rust bad" Rust devs: *writing a whole essay explaining why rust is the best language ever designed*
View on Reddit #149848

Nal_Neel@reddit

dont worry, unlike you, chatGPT will not ever forget it. Also its way cheaper than you.
View on Reddit #151818

randel_@reddit

Remembering a college assignment where i forgott a c program running in the backgroud creating a txt archive of 8 GB os text.
View on Reddit #142824

zoqfotpik@reddit

Right. Just call free() right after malloc() and the problem will be fixed. Now you have a new problem.
View on Reddit #142030

P1P3_L0K0@reddit

No k
View on Reddit #138382

zan9823@reddit

Java : you guys are freeing memory after use ?
View on Reddit #132051

P1P3_L0K0@reddit

,... L? Y. Bueno., V J. 55![gif](emote|free_emotes_pack|slightly_smiling)![gif](emote|free_emotes_pack|slightly_smiling)![gif](emote|free_emotes_pack|shrug)![gif](emote|free_emotes_pack|sweat)![gif](emote|free_emotes_pack|table_flip)![gif](emote|free_emotes_pack|thumbs_up)![gif](emote|free_emotes_pack|thumbs_down)![gif](emote|free_emotes_pack|thumbs_up)
View on Reddit #138380

AltruisticDetail6266@reddit

I think the Java GC is working in Paris rn
View on Reddit #133637

PennyFromMyAnus@reddit

Nice
View on Reddit #135571