Re: C++ pushback

Willy Tarreau
2006-04-24T22:39:54Z

On Mon, Apr 24, 2006 at 10:52:12PM +0100, Alan Cox wrote:
> On Llu, 2006-04-24 at 15:36 -0600, Jeff V. Merkey wrote:
> > C++ in the kernel is a BAD IDEA. C++ code can be written in such a
> > convoluted manner as to be unmaintainable and unreadable.
>
> So can C.
>
> > All of the hidden memory allocations from constructor/destructor
> > operatings can and do KILL OS PERFORMANCE.
>
> This is one area of concern. Just as big a problem for the OS case is
> that the hidden constructors/destructors may fail. You can write C++
> code carefully to avoid these things but it can be hard to see where the
> problem is when you miss one.

Not counting the compiler bugs. When you see how the kernel tends to
trigger gcc bugs on which people spend a lot of time, I wouldn't want
to be the guy trying to identify bad code generation in C++...

Cheers,
Willy