220 36820 <1755463.eZGoRBFS42@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: String interpolation
Date: Fri, 09 Feb 2018 00:05:44 -0800
Lines: 31
Approved: news@gmane.org
Message-ID: <1755463.eZGoRBFS42@tjmaciei-mobl1>
References: <356d5835-f1bf-4699-94f5-0b2d3d0b9c0e@isocpp.org> <CAC+0CCNK9JpR74Wmngnqrqt4AT5O=jB_CcmEzXvaPLFS0Y6o+Q@mail.gmail.com> <d404b982-04e5-4520-8384-25632af83d96@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1518163439 27355 195.159.176.226 (9 Feb 2018 08:03:59 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 9 Feb 2018 08:03:59 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBWVM6XJQKGQECABIQVI@isocpp.org Fri Feb 09 09:03:54 2018
Return-path: <std-proposals+bncBCB4TK757YBRBWVM6XJQKGQECABIQVI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f199.google.com ([209.85.220.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBWVM6XJQKGQECABIQVI@isocpp.org>)
	id 1ek3eo-00063C-6y
	for gclcip-std-proposals@m.gmane.org; Fri, 09 Feb 2018 09:03:42 +0100
Original-Received: by mail-qk0-f199.google.com with SMTP id u194sf5957698qka.20
        for <gclcip-std-proposals@m.gmane.org>; Fri, 09 Feb 2018 00:05:48 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1518163547; cv=pass;
        d=google.com; s=arc-20160816;
        b=Q3uKiBAklIrx0mFjMsNdqrBv1nOhu3sl0UFkGpOp3Q1ro3V7+GFQvETZtOqDY0UYlh
         qyoFcZX5u0gl0lUMr/ExFsxDlo+/0qX25JJ+/EStxbpfo+fkiFlT5ZtfXAIWLk2F+nE+
         pKgbIsPe/cy9PPSs4x2xWw/8uu2Bqop0ZhNo1jzVfZ1chNvVMcGzpjt8uMPEmmpMHz7r
         xJKTADAaELzKg+UuZWB7o5iXOSyoWfJ9BK3efwB/TfgIoSQpvN8k3J8ampZKcxqJUXh5
         DrJKNIVg9qWEzcJz9YUM4m1IuzDJLiO92cmQphHnz2Ubdz7z9pI4vEHUhTGsvlwnrk97
         Hf5g==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=G4w0vEGtAvBmTr0VlOYdgrH5CQiZQoL0Mb4FRceO7yo=;
        b=E8RMBc3tK5p593c5vvz8BP9Wu6pZMMI8x3HCf0n2AWMJZeQoYJEXCjJlY+HVQs+oD2
         3LbB8gZ7Fa4I96bwZxlGc0ZmMMCSgUnRC51y412ywVecgJcD2HbXgFc5OagmRgOZ3Mf5
         2JhoEEDywnHM/3qPB2fihyPuQAaXFw6GFoxbcNcjepHRtRjkd9/tFRHWm6Mvq8ASQlgc
         HD55DHbn3apAuMYtpa/rgalp6voGszABLxQeLHGSWceqQXbsJQWxWa4TpKn/GXyl3X8y
         qHkFD6++lZttbYRRH5Pi9foqS0LD26Lr+jgvaY3zFwMWD2c2ByAasloINjyHP9vONxO2
         nT/Q==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=G4w0vEGtAvBmTr0VlOYdgrH5CQiZQoL0Mb4FRceO7yo=;
        b=IITaubchw9TlN3fqgphtUlYCm4hTT2rgoayqZ52XC0ZdbwjLUjwEv/WGO6fUnH6frs
         3EQ84331P0P37ObAbXcICSiI6lsh9N8TsfCbOMcu/i5G8W7galIuRikSZec25XOlpouY
         rBSmDPOVN4QrXJo7eoOMZAmHU1YN/LXxPLB2DyKW51oOmf9fbd3brmKPNhgF4aBC4ARV
         if/ujVYpIE6656+2xSz4qZGwSUv4eFl64szxyOfYrzEvPVgOzpOELwXFZJc2f7Q4A7B6
         cQUMcZX0ipmBrGjunrZ6eglVJxgQjaFHG6ncBCW4R3oPGmgpJRCfvLxd3MsYQh25rpj3
         lj4Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=G4w0vEGtAvBmTr0VlOYdgrH5CQiZQoL0Mb4FRceO7yo=;
        b=SNXHASLy7a/WLpl0LmHJmZ5i9zoYBxKLImLNpdDRsIHeghqD4twT07oIHxqALy7SDJ
         +tr3tGcYTzwYY3gr7eB2DE/j3vMc7+cBuZOhACyDgHagTvYv1Ko9uYN0e29IZ1DU/8kr
         pnWV/dGsl4dZ4kf9dNvKnDVg33E3YOcAf3vMSlesHdYeXzkJCfB0Trd18cklRdHMpRd2
         QJO0nKPmKs/w9r73Qn02VXPVuRLyRx/E780oM/K236UyQ2RPv7KymWRWZrco3rSClALX
         tXfLBNiEQjFYhX1os3YflZqsE4gH3AkU3IU8gBUch3GSKn6VMc7WmATQsYRUo0tK0U2d
         Xr5g==
X-Gm-Message-State: APf1xPCYA4a0Qaz2ZUPNxBRUJdTbXV7o0P1F2Sa8uqc5U4e4dD0HiWk3
	O7r3iqibreLItZgt5uil8q/DwQ==
X-Google-Smtp-Source: AH8x225douEKyLGgLrZfJ/hGjJqxO2g8jlocR1e63gGuAOYoGTVLQxgEPm2S7z6zcehKVHhgP4QOSg==
X-Received: by 10.200.49.213 with SMTP id i21mr1353532qte.5.1518163547655;
        Fri, 09 Feb 2018 00:05:47 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.200.7.66 with SMTP id k2ls3977257qth.9.gmail; Fri, 09 Feb 2018
 00:05:46 -0800 (PST)
X-Received: by 10.200.25.91 with SMTP id g27mr3122895qtk.193.1518163546699;
        Fri, 09 Feb 2018 00:05:46 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1518163546; cv=none;
        d=google.com; s=arc-20160816;
        b=kL4iM8IeVtfD/jxUTgVnssf48ifStAzs7oCStTWWqbJAzWhhcxltOyqMRuR/UZQ2O8
         +lfiFVucXnTdYjYvvoZOpvLNhfcAZ8yv3MphMZp/T6ZfWLKRk4/aG1t5SNePbm/y13J/
         I1ZGtC7K54gLR64X1fnaA+9imXbRnhWbdPKXpFZ7m6vG/0bFHmcj3IVY0klQEg+EdAS6
         o0irGH4gRKEcKpwnQ7KuMyulUAlQhMA+FzdiBSmhKJMXXuzReb4VPTTFBhUKZbuUOrAm
         KaqbF1Hh/SVjL3rUAF4O5O/tvyKLUiWZxlrFfbO97LCPBVimeD1r7GCXk/yD4v+ryjgT
         eP2w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=cqRDfOB/N/MB5BW0dsg6vdxPNDeGp4Ns9QBWt1ksOU4=;
        b=dZNmDQDyw+yh57YHVQQcnCTHxaAP0CcyqeOtTR0kugZ01qCK3zt29Sl+zmv4RHwyVL
         YUtuGzTY4ZPtCN2tBOpDRLdlS6aLPmorhLlAin4GkjL+L6CG8D5PFv4YOlij4L00EA9o
         gQJRFMaJddn+ViGYr1syQ+PZ7WFG5+mbSjO2H2ARuhnU6fVLUQSwbDwaSIpbdgloj/Nj
         1jTqnPZ2/djwoW8fvK1IyiywSCQzuoaPbPkE1RnB3kcMyof5woTjahWcHYtr625CmYod
         bv63TKPHRZMYk1txmwUWRwYa49ROdVG2woROJrBAAg+tp5OeB66vU/xxXMCsdRTDv0Eu
         8Uiw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (smtp.macieira.info. [2001:19f0:5:2221::1:3])
        by mx.google.com with ESMTPS id l9si1930474qkj.44.2018.02.09.00.05.46
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 09 Feb 2018 00:05:46 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) client-ip=2001:19f0:5:2221::1:3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:1898:5a56:9160:57ba])
	by smtp.macieira.info (Postfix) with ESMTPSA id 6A25D7EF9
	for <std-proposals@isocpp.org>; Fri,  9 Feb 2018 00:05:45 -0800 (PST)
In-Reply-To: <d404b982-04e5-4520-8384-25632af83d96@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted
 sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:36820
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36820>

On Thursday, 8 February 2018 23:50:33 PST Nicol Bolas wrote:
> Show me another C++ language feature that is fundamentally rooted in doing
> things the slow way. Other than exceptions. Or things related to virtual
> functions/dynamic_casting of multiple inheritance.

I should point out that neither exceptions nor dynamic casting are slow when 
used properly. Exceptions, when used only in exceptional cases, do not affect 
the performance of the main program and, in many benchmarks, show that they 
actually improve performance. They're only slow when thrown.

Part of the reason for that is also the dynamic casting. There aren't many 
ways of skinning this particular cat, not without removing the multiple 
inheritance feature from the language. It just is what it is. But most 
applications and frameworks don't abuse the feature too badly, so the feature 
isn't slow for them.

And here's an example of a framework that does abuse virtuals and multiple 
inheritance: iostreams.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1755463.eZGoRBFS42%40tjmaciei-mobl1.

.
