Re: C++ in kernel (was Re: exception in a device driver)

Anthony Barbachan (barbacha@Hinako.AMBusiness.com)
Sat, 16 Jan 1999 22:23:42 -0500


-----Original Message-----
From: Khimenko Victor <khim@sch57.msk.ru>
To: chip@perlsupport.com <chip@perlsupport.com>; khim@sch57.msk.ru
<khim@sch57.msk.ru>
Cc: barbacha@Hinako.AMBusiness.com <barbacha@Hinako.AMBusiness.com>;
alan@lxorguk.ukuu.org.uk <alan@lxorguk.ukuu.org.uk>; ncm@cantrip.org
<ncm@cantrip.org>; linux-kernel@vger.rutgers.edu
<linux-kernel@vger.rutgers.edu>
Date: Saturday, January 16, 1999 3:57 PM
Subject: Re: C++ in kernel (was Re: exception in a device driver)

>In <19990116134549.G4232@perlsupport.com> Chip Salzenberg
(chip@perlsupport.com) wrote:
>CS> According to Khimenko Victor:
>>> In <19990116000746.G767@perlsupport.com> Chip Salzenberg
(chip@perlsupport.com) wrote:
>>> CS> According to Khimenko Victor:
>>> >> Since C++ has no support for modular programming
>>>
>>> CS> For shame, Mr. Victor, you're FUDding! And on a Linux list, where
FUD
>>> CS> is well-known as the enemy of truth!
>>>
>>> If I'm FUDding then please explain how C++ support modular programming.
>
>CS> Class declarations with definitions elsewhere; namespaces. That's
plenty.
>
>Are you joking ? When adding PRIVATE function in some low-level class lead
>to full recompilation of the whole project (sometimes it's few HOURS for
>big prjects!). You call THIS support for modular programming ?
>

Obviously it recompiles, the compiler doesn't know that the change you made
may affect code in other parts of the program. This is essential for a fast
code generating language. And if your change doesn't affect the header file
(containing the class interface definitions) it doesn't affect all the other
files that use it during a compile. Only way that this can be done on the
fly is with an interpited or partially interpited language. Or a language
that wastes memory and CPU cycles storing or settings all the class
information at runtime.

>>> Since my daily work is programming on C++ I'm know this very well...
>
>CS> Who do you work for?
>
>Is it so important ?
>
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/