News for hackers. Stuff that matters.
Re:Parsing C++ is literally undecidable (2013) by pjmlp on Friday October 04, 2019 @04:58AM (#21155962)
On single developer projects as long as one doesn't stay too much away from them, scale it up to multiple sized distributed teams, add binary libraries, and you end up with double frees, leaks and ownership issues all over the place.
Re:Parsing C++ is literally undecidable (2013) by jstimpfle on Friday October 04, 2019 @09:58AM (#21157736)
Of course there will always be some issues somewhere. But, ignoring perfect memory safety, the issues are widely overblown, to the extent that I find manually managing memory a lot easier than dealing with GC once a project grows beyond a couple KLOC.

It's all about proper planning and code organization. Use pooling, central manager structures, etc. If it can be avoided, then do not allocate and free stuff in a single function like you would carelessly do with automated GC. Structure the data such that you don't have to release stuff individually - put it in containers (such as vectors or maps), such that you can release everything at once at certain points in time, or such that you can quickly figure out what can be released at central code locations (that's much like automated GC, but it's staying in control and retaining room for optimization).

I don't think "multiple distributed teams" makes the challenge any harder. You certainly want to (and I'm sure you easily can) contain each ownership management domain wholly in one team.

Re:Parsing C++ is literally undecidable (2013) by pjmlp on Friday October 04, 2019 @11:48AM (#21158818)
> You certainly want to (and I'm sure you easily can) contain each ownership management domain wholly in one team.

That doesn't work in enterprise projects with heavy dosis of consulting.

Re:Parsing C++ is literally undecidable (2013) by gpderetta on Friday October 04, 2019 @05:16AM (#21156041)
Purely anecdotally, I spend very little of my time thinking about what passes for manual memory management in C++.

For me the big attraction of GC is memory safety not convenience.

Re:Parsing C++ is literally undecidable (2013) by bitwize on Friday October 04, 2019 @08:06AM (#21156742)
Try Rust. Proven memory safety, no GC.
Re:Parsing C++ is literally undecidable (2013) by pjmlp on Friday October 04, 2019 @08:14AM (#21156803)
Until one tries to do GUI programming, then it is Rc<RefCell<>> everywhere, or arrays with vector clocks for managing old entries.
Re:Parsing C++ is literally undecidable (2013) by gpderetta on Friday October 04, 2019 @08:12AM (#21156788)
no opportunity at $CURRENT_JOB, but in the future, sure, it is definitely on my radar!