lkml.org 
[lkml]   [1999]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: C++ in kernel (was Re: exception in a device driver)
Date
Victor,
By that argument, smalltalk and clos dont have real classes either. C++
does not neccessarily lead to slower code unless you use a lot of late
binding. There are also nice "features" like having object destructors
automatically called on scope exit and so on and so on. These generic
arguments that C is/isNot better than C++ are pointless. You can write
crappy code in either language. C++ has a bunch of handy features but if
people don't understand what costs they incur for what features, it will
lead to slower code. At least nobody wants to reimplement the kernel in java
:-)

-evt

Eric van Tassell
Texel Software, Inc. - System Software Engineering for Windows/NT
277 Cochran Hill Rd. Voice : 603-487-5006
New Boston, NH 03070 USA Fax : 603-487-5166
email : evt@texelsoft.com
http://www.texelsoft.com


> -----Original Message-----
> From: owner-linux-kernel@vger.rutgers.edu
> [mailto:owner-linux-kernel@vger.rutgers.edu]On Behalf Of Khimenko Victor
> Sent: Monday, January 11, 1999 3:08 PM
> To: barbacha@Hinako.AMBusiness.com; vonbrand@sleipnir.valparaiso.cl
> Cc: vonbrand@inf.utfsm.cl; linux-kernel@vger.rutgers.edu
> Subject: Re: C++ in kernel (was Re: exception in a device driver)
>
>
> In <00e101be3d21$96b03ce0$04c809c0@Fake.Domain.com> Anthony
> Barbachan (barbacha@Hinako.AMBusiness.com) wrote:
>
> > There is a huge difference in the feel of using classes over
> structures and
> > their loosely associated functions.
>
> And since C++ does not have real classes (they are only tricks of
> compiler and
> not exists in compiled program) and still lead to speed loss why
> use it at all ?
>
>
>
>
> -
> 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/
>
-evt

Eric van Tassell
Texel Software, Inc. - System Software Engineering for Windows/NT
277 Cochran Hill Rd. Voice : 603-487-5006
New Boston, NH 03070 USA Fax : 603-487-5166
email : evt@texelsoft.com
http://www.texelsoft.com


> -----Original Message-----
> From: owner-linux-kernel@vger.rutgers.edu
> [mailto:owner-linux-kernel@vger.rutgers.edu]On Behalf Of Khimenko Victor
> Sent: Monday, January 11, 1999 3:08 PM
> To: barbacha@Hinako.AMBusiness.com; vonbrand@sleipnir.valparaiso.cl
> Cc: vonbrand@inf.utfsm.cl; linux-kernel@vger.rutgers.edu
> Subject: Re: C++ in kernel (was Re: exception in a device driver)
>
>
> In <00e101be3d21$96b03ce0$04c809c0@Fake.Domain.com> Anthony
> Barbachan (barbacha@Hinako.AMBusiness.com) wrote:
>
> > There is a huge difference in the feel of using classes over
> structures and
> > their loosely associated functions.
>
> And since C++ does not have real classes (they are only tricks of
> compiler and
> not exists in compiled program) and still lead to speed loss why
> use it at all ?
>
>
>
>
> -
> 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/
>


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.038 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site