this post was submitted on 05 Aug 2024
2 points (100.0% liked)

Programmer Humor

27853 readers
748 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
 

A screenshot from youtube, Virbox

top 11 comments
sorted by: hot top controversial new old
[–] RacoonVegetable@reddthat.com 2 points 1 year ago

~I’m sorry~

[–] Blue_Morpho@lemmy.world 1 points 1 year ago

That's why I preallocate the max memory I will need just like I was taught to do in Fortran. You can't leak what you don't have.

rip random amiga machine

[–] SpaceNoodle@lemmy.world 1 points 1 year ago (1 children)

This is why I only allocate on the stack

[–] magic_lobster_party@kbin.run 1 points 1 year ago

Stack overflow intensifies

[–] Beanie@programming.dev 1 points 1 year ago

The line causing the memory leaks is actually the lack of a line: free().

[–] xmunk@sh.itjust.works 1 points 1 year ago (1 children)

Eh... ship it. RAM is cheap.

[–] palordrolap@kbin.run 2 points 1 year ago (1 children)

"Uh, Boss, our customers are sending us the invoices for their RAM purchases."

[–] independantiste@sh.itjust.works 1 points 1 year ago (1 children)

OMG I SHOULD HAVE DONE THAT TO JETBRAINS AND MICROSOFT FOR TEAMS

[–] 30p87@feddit.org 1 points 1 year ago (1 children)

Also electron. Because somehow a full blown separate FF instance is more ram efficient than electron.

[–] entropicdrift@lemmy.sdf.org 1 points 1 year ago

Well, Electron uses Chrome, so yes