From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11509 invoked from network); 12 May 2020 17:43:26 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 12 May 2020 17:43:26 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 099E69C697; Wed, 13 May 2020 03:43:25 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 42F349C669; Wed, 13 May 2020 03:43:01 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 55D159C669; Wed, 13 May 2020 03:42:58 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id F3A219C668 for ; Wed, 13 May 2020 03:42:57 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id 64A5435E149; Tue, 12 May 2020 10:42:57 -0700 (PDT) Date: Tue, 12 May 2020 10:42:57 -0700 From: Larry McVoy To: ron@ronnatalie.com Message-ID: <20200512174257.GB9381@mcvoy.com> References: <20200511005745.GL17035@mcvoy.com> <357EFE54-BD94-4C10-8C43-C6735BF7D317@via.net> <20200511202555.GU17035@mcvoy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [TUHS] v7 K&R C X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Unix Heritage Society mailing list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Just a note, you seemed like you are replying to me (see below) but what you quoted Paul wrote. I am most certainly NOT putting myself out there as a C++ expert, I'm a C guy through and through. On Tue, May 12, 2020 at 01:35:24PM -0400, ron@ronnatalie.com wrote: > > On 5/11/20, Larry McVoy wrote: > > > o all std:: and STL functions > > > > The last two of these are mainly for performance reasons. throw and > > catch play merry hell with compiler optimizations, especially of > > global variables. > > You'll have to explain to me how templates or the standard library (which > by the way includes all of the C stuff) affects performance. In fact, we > use templates to INCREASE rather than decrease performance. Templating > is almost entirely compile time rewrites. -- --- Larry McVoy lm at mcvoy.com http://www.mcvoy.com/lm