220 36822 <14112472.AvYaaQfdXc@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: String interpolation
Date: Fri, 09 Feb 2018 00:24:36 -0800
Lines: 29
Approved: news@gmane.org
Message-ID: <14112472.AvYaaQfdXc@tjmaciei-mobl1>
References: <356d5835-f1bf-4699-94f5-0b2d3d0b9c0e@isocpp.org> <1731062.NdW3nXAon1@tjmaciei-mobl1> <CALvx3haDVWHLQ4MJfEjeFWoh=JduvANZ+G61M9_x8H9+bU-xpA@mail.gmail.com>
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 1518164560 20294 195.159.176.226 (9 Feb 2018 08:22:40 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 9 Feb 2018 08:22:40 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBRVV6XJQKGQER5DRI3I@isocpp.org Fri Feb 09 09:22:36 2018
Return-path: <std-proposals+bncBCB4TK757YBRBRVV6XJQKGQER5DRI3I@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+bncBCB4TK757YBRBRVV6XJQKGQER5DRI3I@isocpp.org>)
	id 1ek3x3-0004rj-KN
	for gclcip-std-proposals@m.gmane.org; Fri, 09 Feb 2018 09:22:33 +0100
Original-Received: by mail-qk0-f199.google.com with SMTP id k7sf4389332qke.11
        for <gclcip-std-proposals@m.gmane.org>; Fri, 09 Feb 2018 00:24:39 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1518164679; cv=pass;
        d=google.com; s=arc-20160816;
        b=MVHR0s8AWQnuNwji09zDTno+A4O8wDHCHDJ2hUndZ/UioPH9SVzdDs1HJ9TAZIe+d8
         vIn6Yrahsjy2/QUZEfIhCY653id9tt6H/POEgGnftbLeFprV0paYLN4p/7CIEWe/evAZ
         TwxlbS6/eEzMGl82RTOxN8WO5y9+qam/GQ4iw3ncRn+f5qlq1L2l1ikKIpph+1kRRfTj
         pGs1KXH8ZI5DvFDgOVa9ekzrxtWFI1a79+aHDkN7CiTDjQGurIQbVjpZDODyinc5h3km
         wSgBypdSTAssFTazmY2HsR3Vhnj4LBxEvIrEAOy0KNxqwD3J0xAMfuzIs+fSd5zf1tqH
         EzGg==
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=80PRniOPfmW2WYkGc5x3+JrTyOkSPviLTRzRoVdlZJ8=;
        b=erV5u9lj4WpjLunTS/97I68RfV9OTddMfqkBGYtHJtqA17TdW2POe1rJiO6gdMrLUJ
         bV6UIW/6BIovVlx0Y6Ti1Qxl/CkDIESEWoujunC897Eh+w1UK8SkPTzvPnQmmzePRctY
         ovhctedZipzlE9B0X3g3Elwfxk5Z8gWP/OmQFne9VRZeWG8RV/Da44kVffb7MSFVhwub
         zZn1Gjz5spvzRaYN7QEh7jvZhAf9dECB87pkcZqMDk3JSgKMtAH7gVoPq2O37o0X4i5h
         8F2jmm1AQP0WxRcqXe/T2qxefEekkgBIfCyYjpcH3FTieWupv/aflOr9Ab08yJvtUf82
         dqLQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 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=80PRniOPfmW2WYkGc5x3+JrTyOkSPviLTRzRoVdlZJ8=;
        b=VZHUjVwcUPvozgZWtXMmwJDmyCoNWhbYPE4xmc3uDx+iGUcqg7njPrU11qn/XQddPn
         MhLkD28A8CHeDEP6IkHGrkGEZ7juWctevBJFOr1Tt8uG5V3fHLir0INIr+FII+qQozJm
         xnipDVndOzqxihNRIQIRCaPGRgOzvgwayQq5jVzcQVuty+lcR7/JybAzgNeR87ECPxpy
         5UFM0OUfraEpli26foEV/XspgVwD5fOOT5NpAsKaHJO03WgncbmAyjqQqTFhXj62FUx7
         aZOvezvqDtUZDuYTS6pgCbGeqkXW+dWRxM1BG5heWJJyFnreGwL+imKdn3Szz6ZZ3ruh
         Yzfw==
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=80PRniOPfmW2WYkGc5x3+JrTyOkSPviLTRzRoVdlZJ8=;
        b=Vr3ns1feLx97O5WdhevZl8z90plxq1MdXVMQB4yE12wOQwZg6vbHb2M44rDPSGtbez
         /AWRcKLcVMmizp0vb5AOpbkOXtXmLErCfBb4lxjTWh37iwE7SJYdyCkZRYu11C53zs/7
         PGY0St5A+/tpS2FCgeEnW5+cu2Xih2mp0IUbP3QkHT8wlWaTCNzsPXcWQXfncPffWHpM
         zsjI0QOrnhPAhNzTj1BQ2dxaUYJnzFuA+UcWxJtPYfL6OV6MODM8hDdq611WmGtBNITx
         amqxiConjSKN1z9bZYAZk5+7nOQ/qJP7uj+TQdZJKEQ6VEd3koipKsY/JnOOt0mFUuDm
         3e3w==
X-Gm-Message-State: APf1xPDpKvik2hC54GTb4lFZJHaLylau+JoxPJ5FH31ESwX/QjoeMSLD
	XB8Ph+FOllg32T6Rbdv9I99IXw==
X-Google-Smtp-Source: AH8x2278JE4ivuSPfoJm6r6rEkTZS/MCOjMcIGPFnhfTUg1/yft/KABIyE3Xm5nLlAr/Ys9jkpl6WA==
X-Received: by 10.200.5.72 with SMTP id c8mr1444365qth.51.1518164679080;
        Fri, 09 Feb 2018 00:24:39 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.237.35.104 with SMTP id i37ls3963529qtc.6.gmail; Fri, 09 Feb
 2018 00:24:38 -0800 (PST)
X-Received: by 10.200.54.10 with SMTP id m10mr3274254qtb.304.1518164678296;
        Fri, 09 Feb 2018 00:24:38 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1518164678; cv=none;
        d=google.com; s=arc-20160816;
        b=illLP9EJrjXdo2RCszWjR1g8zkaXXGiXxHrv1ZeKuiQlotzY6IhyFq81556988cH6C
         ml1x/IXkYbfGWSv2oNAaFYmGE4IBAoiKaxk8jB2sfrHyrzRsfMwAPzQLSD3Mf35Trghh
         Z0w0oiyN/F9z3ZfN1v8dg79JRbJZU+PuOUEwmi19WXh/+E73uu2FK2LI0fwW+Pvx8jSL
         42j0mm/eBBiKJd4chdovBIJyeBcw+jQ8Di5CPlm+1Haj7Vnp2jLGx8yBTusJsyM/Jh2c
         aleSgPV3cbznljwiuDxfR6MjS+YoMS1JeAzSuHS0EN8U+FZBYQtOnxBNRd0RW+uaOgUs
         +JEA==
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=VNLtTwup2ePcCILfhd62ana514cL2WxDhUkArtEbtdM=;
        b=IZteRlCfmp7qIcAGUgTywBagBZc8wotpAWKcyGm8//y+4Y4U2PdejTpPxvye8njFGn
         Yo4TrxBhwXkvdhMlTNeQsXQRtLGKzUMlUsS3jfYsjOKgSy7kX1cax08ArcsN8EB6fepq
         B027e1qiE8bNEsZPLViabvDi1CdIiM3SEYAluA8qDZoOi5uMdnN2uewPknSjyLWfGx7O
         wpstTup1eTspTw8STXX7y6XjJqzKnF5elkgyEEBozDDSUl/ZXXLcUoJohb5rO7mny2i4
         00+UOj7ARqbsAgWpyQ3Z9ZqajdEkTpKWk03qoks+AoHVIdaAkrfsX43ltJS/h/cH+jIX
         bOgQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (arvernien.macieira.info. [209.222.10.136])
        by mx.google.com with ESMTPS id y9si1961942qta.291.2018.02.09.00.24.38
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 09 Feb 2018 00:24:38 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 209.222.10.136 as permitted sender) client-ip=209.222.10.136;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:1898:5a56:9160:57ba])
	by smtp.macieira.info (Postfix) with ESMTPSA id 4BAFD7F01
	for <std-proposals@isocpp.org>; Fri,  9 Feb 2018 00:24:37 -0800 (PST)
In-Reply-To: <CALvx3haDVWHLQ4MJfEjeFWoh=JduvANZ+G61M9_x8H9+bU-xpA@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 209.222.10.136 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:36822
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36822>

On Friday, 9 February 2018 00:05:44 PST Richard Hodges wrote:
> It's a great idea. Naysayers talk of performance concerns as a result of
> virtual functions. These are irrelevant.
> 
> Firstly, the cost of turning numeric values into strings far outweighs the
> cost of a virtual call

That depends on a lot. The cost of a virtual call could easily get to 5% total 
time of a conversion, which is non-negligible, if there's no memory allocation 
involved.

> Second, fixing iostream to make it more efficient is a separate concern.

More than likely, doing that means replacing it entirely, which in turn means 
this feature cannot depend on iostreams. It must be generic, if it exists at 
all.

-- 
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/14112472.AvYaaQfdXc%40tjmaciei-mobl1.

.
