Re: Does Bill Gates know about the DDK regarding C++?
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Tue, 7 Jun 2005 19:45:53 +0400
> about the expressive power of the language. I use STL too, with allocators
> that are suitable for kernel mode.
STL is a nightmare in terms of memory fragmentation.
Also C++ code is known to crash on memory allocation failures. Look at MySQL
(coded in
C++), for instance - if the ORDER BY clause touches too large a table and there
is no suitable index, it crashes with SIGSEGV (corrupting the database
sometimes).
C++ suggests to use exceptions to recover from such situations. And exceptions
are evil a) they require complext runtime support b) they overbloat the stack
usage of _each_ function even if it has no try/catch blocks c) the state of the
system is not known at all at the point where exception was caught, so,
continuing to run from this state will often cause a crash a bit later.
Lots of C++ features are of the "type and forget" style and provide nothing
good then reducing the amount of typing (by increasing the effort needed to
comprehend the code). This is OK for things like GUI apps, not OK for
system-level development.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
.
- References:
- Re: Does Bill Gates know about the DDK regarding C++?
- From: Robert Schlabbach
- Re: Does Bill Gates know about the DDK regarding C++?
- From: Mike Yoke
- Re: Does Bill Gates know about the DDK regarding C++?
- Prev by Date: Re: How to identify USB device from a file system filter
- Next by Date: Re: Linker error LNK4210
- Previous by thread: Re: Does Bill Gates know about the DDK regarding C++?
- Next by thread: Re: Does Bill Gates know about the DDK regarding C++?
- Index(es):
Relevant Pages
|