3 ms·
Honestly what I mostly want is to not have memory leaks. Which somehow stopped being a focus at some point
by singpolyma3 1y ago
Honestly what I mostly want is to not have memory leaks. Which somehow stopped being a focus at some point
- Wowfunhappy 1y agoBecause we have so much memory no one cares if it leaks. <_<
- astrange 1y agoThis is harder than it looks as soon as you start counting abandoned memory (stuff that's still referenced but not actually used.)
- singpolyma3 1y agoWell if it's still referenced it's still used from my PoV
- astrange 1y agoIf it's never read again then it's not used.
- tialaramex 1y agoThe "good" news is that Bjarne Stroustrup is right there with you, Bjarne sees eliminating all memory leaks as a high priority for C++ and one of his main goals. The bad news ought to be obvious, this "goal" is not achievable, it's a fantasy that somehow we should be able to see the future, divine that some value stored won't be needed in the future and thus we don't need to store it. Goals like "We shouldn't store things we can't even refer to" are already solved in languages used today, so a goal to "not have memory leaks" refers only to that unachievable fantasy.