Re: C++ pushback
- From: "Jeff V. Merkey" <jmerkey@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Apr 2006 16:57:52 -0600
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.
C at least makes it verbose, but we trade that for poorer typechecking
and visibility control.
Alan
Yep.
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- C++ pushback
- From: Gary Poppitz
- Re: C++ pushback
- From: Martin Mares
- Re: C++ pushback
- From: Jeff V. Merkey
- Re: C++ pushback
- From: Alan Cox
- C++ pushback
- Prev by Date: Re: NFS client (10x) performance regression 2.6.14.7 -> 2.6.15
- Next by Date: [PATCH][RFT] HPT3xxN clocking fixes (take 2)
- Previous by thread: Re: C++ pushback
- Next by thread: Re: C++ pushback
- Index(es):
Relevant Pages
|