From owner-freebsd-hackers Tue Mar 5 10:15:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 2EF7B37B405 for ; Tue, 5 Mar 2002 10:15:12 -0800 (PST) Received: (qmail 4707 invoked from network); 5 Mar 2002 18:15:06 -0000 Received: from dsl092-171-091.wdc1.dsl.speakeasy.net (66.92.171.91) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 5 Mar 2002 18:15:06 -0000 Date: Tue, 5 Mar 2002 13:15:06 -0500 (EST) From: Kenneth Culver To: Raymond Wiker Cc: Martin Ankerl , Subject: Re: C vs C++ In-Reply-To: <15492.62736.239246.919734@raw.grenland.fast.no> Message-ID: <20020305131439.J4700-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, that too, I guess I was just using KDE as an example of something being extremely slow due to a lot of libs being loaded. Ken On Tue, 5 Mar 2002, Raymond Wiker wrote: > Kenneth Culver writes: > > The code itself may be fast, but programs written in c++ tend to link to a > > lot of shared libs, which in itself can be pretty slow. > > That's *not* unique to C++. On my machine, /usr/lib contains > 73 shared libs, and these are mainly C libraries. > > If you want arguments against C++, try any of these: > > C++ programs use a *lot* of header files, and these do in > general cause more work for the compiler than do the C header > files. This boils down to noticeably longer compile times. > > C++ is a *much* larger language, with *much* more complicated > semantics and behaviour. A large proportion of C++ programmers do not > know the language well enough that they should be allowed to program > in it. > > -- > Raymond Wiker Mail: Raymond.Wiker@fast.no > Senior Software Engineer Web: http://www.fast.no/ > Fast Search & Transfer ASA Phone: +47 23 01 11 60 > P.O. Box 1677 Vika Fax: +47 35 54 87 99 > NO-0120 Oslo, NORWAY Mob: +47 48 01 11 60 > > Try FAST Search: http://alltheweb.com/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message