From owner-freebsd-hackers Sun Mar 30 09:53:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA03616 for hackers-outgoing; Sun, 30 Mar 1997 09:53:28 -0800 (PST) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA03611 for ; Sun, 30 Mar 1997 09:53:16 -0800 (PST) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 19026 on Sun, 30 Mar 1997 19:53:02 +0200; id TAA19026 efrom: peter@grendel.IAEhv.nl; eto: UNKNOWN Received: (from peter@localhost) by grendel.IAEhv.nl (8.8.5/8.8.4) id EAA03026; Sat, 29 Mar 1997 04:10:03 +0100 (MET) Message-ID: <19970329040952.25223@grendel.IAEhv.nl> Date: Sat, 29 Mar 1997 04:09:52 +0100 From: Peter Korsten To: "Gregory D. Moncreaff" Cc: "hackers@freebsd.org" Subject: Re: C++ Code in Kernel References: <01BC3BA3.6FFD23A0@dominus.ultranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.65e_p2,4-5,7,11,15,18,21-22 In-Reply-To: <01BC3BA3.6FFD23A0@dominus.ultranet.com>; from Gregory D. Moncreaff on Fri, Mar 28, 1997 at 06:10:51PM -0500 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Gregory D. Moncreaff shared with us: > maybe its just that I'm taking a c++ class now, but I'm > cusious as to the pro's and con's on writing kernel source > in c++. I haven't seen nor heard on this happening on FreeBSD > [but then my travels haven't been that wide] I like C++ very much as a language. It hands me constructs which enable me to make abstractions of programming problems that are all solveable in C, be it with much more effort. With the right classes, my programs become very simple and thus less error-prone. I no longer care about buffer overruns, they simply don't occur. On the other hand, Unix is not really an object-oriented OS, so the added value of C++ (primarily data abstraction and object orientation) has little meaning. Also, performance is a consideration. C++ code tends to have more overhead. Finally, it hides a lot from you. I don't know if that's desirable in kernel code. - Peter -- Peter Korsten | peter@grendel.IAEhv.nl (UUCP) | peterk@IAEhv.nl C/C++/Perl/Java hacker