c/programmer_humor · by gregor@gregtech.eu · 2yC meme A screenshot from youtube, Virbox 204 points · 18 comments · view on lemmy.world
18 Comments
xmunk@sh.itjust.works · 53 pts · 2y
Eh... ship it. RAM is cheap.
palordrolap@kbin.run · 32 pts · 2y
"Uh, Boss, our customers are sending us the invoices for their RAM purchases."
independantiste@sh.itjust.works · 49 pts · 2y
OMG I SHOULD HAVE DONE THAT TO JETBRAINS AND MICROSOFT FOR TEAMS
30p87@feddit.org · 34 pts · 2y
Also electron. Because somehow a full blown separate FF instance is more ram efficient than electron.
entropicdrift@lemmy.sdf.org · 6 pts · 2y
Well, Electron uses Chrome, so yes
Blue_Morpho@lemmy.world · 40 pts · 2y
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.
CanadaPlus@lemmy.sdf.org · 14 pts · 2y
Heap allocation failure > gradual memory leak
Checkmate atheists.
SpaceNoodle@lemmy.world · 26 pts · 2y
This is why I only allocate on the stack
xmunk@sh.itjust.works · 19 pts · 2y
People who are enthusiastic about using pointers in C++ are doing it wrong. Never use a pointer when you can get away with a reference.
KindaABigDyl@programming.dev · 23 pts · 2y
For C++, yes. But "reference" is just a way of using the pointer when it comes to C
SpaceNoodle@lemmy.world · 8 pts · 2y
Sure, but that's technically allocation-agnostic either way.
ryannathans@aussie.zone · 13 pts · 2y
Based nasa compliant engineer
SpaceNoodle@lemmy.world · 9 pts · 2y
This guy gets it
Static allocation for the SIL ratings
magic_lobster_party@kbin.run · 12 pts · 2y
Stack overflow intensifies
30p87@feddit.org · 3 pts · 2y
I only use the registers.
RacoonVegetable@reddthat.com · 19 pts · 2y
I’m sorrypewgar_seemsimandroid@lemmy.blahaj.zone · 5 pts · 2y
rip random amiga machine
Beanie@programming.dev · 2 pts · 2y
The line causing the memory leaks is actually the lack of a line:
free().