AW: AW: C++ thoughts for Berlin
From: Markus Schaber <m.schaber_at_codesys.com>
Date: Tue, 4 Jun 2013 11:16:00 +0000
Von: Blair Zajac [mailto:blair_at_orcaware.com]
Don't get me wrong. I don't think memory management in C++ is worse than in pure C.
It just does not bring enough benefits compared to C to justify the transition of such a big existing project like SVN, especially if you consider the broad range of (partially ancient) platforms and compilers which need to be supported.
Well-designed Smart Pointers will actually solve a lot of problems of memory management, but it is hard to find a fully portable solution which comes without side-effects. (Boost is bloaty, C++ 11 not yet supported on most of the platforms, ...).
Additionally, all the public SVN interface, as well as some used libraries (APR) rely on the current pool-based management. It would be hard to replace that while still remaining compatible.
For SVN 2.0, if C++ 11 is widespread enough by then, I'd not oppose going to C++, or even to a completely different beast like Rust, Go or Python. :-)
CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions
3S-Smart Software Solutions GmbH
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
This is an archived mail posted to the Subversion Dev mailing list.