220 28300 <CACGiwhFos3wukaQxPYDe=w3nfWkdqKgH06_D-cQutc8FaKjXYQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "D. B." <db0451@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Proposal - non allocating std::function
Date: Tue, 20 Sep 2016 19:37:28 +0100
Lines: 73
Approved: news@gmane.org
Message-ID: <CACGiwhFos3wukaQxPYDe=w3nfWkdqKgH06_D-cQutc8FaKjXYQ@mail.gmail.com>
References: <e00db911-40f5-4c11-a4b8-32bba77aa0a5@isocpp.org> <1dce887f-b468-4978-9466-a9630cfc2671@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e013c646a84981c053cf4b8de
X-Trace: blaine.gmane.org 1474396655 13762 195.159.176.226 (20 Sep 2016 18:37:35 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 20 Sep 2016 18:37:35 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCWNZ4ECS4GBB2UDQ27QKGQEZOJZNNQ@isocpp.org Tue Sep 20 20:37:31 2016
Return-path: <std-proposals+bncBCWNZ4ECS4GBB2UDQ27QKGQEZOJZNNQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f70.google.com ([74.125.82.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCWNZ4ECS4GBB2UDQ27QKGQEZOJZNNQ@isocpp.org>)
	id 1bmPv7-0002u1-Pz
	for gclcip-std-proposals@m.gmane.org; Tue, 20 Sep 2016 20:37:29 +0200
Original-Received: by mail-wm0-f70.google.com with SMTP id l132sf4982878wmf.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 20 Sep 2016 11:37:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :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=Ej4BcvN87CWx6ZRvnWXK0TKyEmo6WIOfG3K2PtXW2kU=;
        b=1zDf1WXzBhymh6ATTqoKKXcpsoB0mEmrvoA8iNfxW6ktY6a0MBaCxDA2MC1QUGYumy
         VX96Zp+z2rbMxpuWO8TOzjqYJ0irE0QNutzon9Bo0b+VjGP6Iv1tnQub+DNK5LENLt+Y
         u9oNEuaTehhFrFTD/+5FstqAueXQDBGwwTZ+P1rpJUuSOML+mOjhoJs+OtsWa55EfBTp
         MeHU9K7/0QmNahVird/TLjsxWPPEqWM00/9Yk+dYzwRiWoIpA2297nqBxR/bN+jI+wHQ
         +el+6pdlfySFW8Q4X/yfksM6mzlgLbpU4RWdrayGAVzMIhn4Bv1rhCQmsii8BY5gwIBQ
         Mgkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to: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=Ej4BcvN87CWx6ZRvnWXK0TKyEmo6WIOfG3K2PtXW2kU=;
        b=VGWdFvju2LtLn0kZcWQPGxqzimJspVY738NUCdm04QB5PLeAF7vLDDfQqrUB5I6pso
         +LGRWefHE85LiNblthUxIMDPpJQ9kyKVr6ldv0RTxX5wjCFV2jRxwtnhociW2AQF1/J8
         T9uy10kf1veTjV2p0QdPwKmNKnGOMw6dg5Ci/J/tUi3uBuUtGV4K0VemX70URReQ7CZm
         X4yBHXSyNiCMOzBNwfxuSMzgWFhdRbvog52D2HneAY+X3v9QwUGBmwKYT8sdDiX5+Mi9
         PuXrZSAAeoEzzs45PxWCuAlVzLlgydSNeYqMkl8bZiJA7UD4BYX+TA5+NZYH0bX3VUOJ
         +Bkw==
X-Gm-Message-State: AE9vXwPUQYmA5EzbUcbtPKDO6V7m/rsslO61JjRQg3buzdhYgJyXTeu29kPGBFaRA9vkDQ==
X-Received: by 10.28.21.17 with SMTP id 17mr306750wmv.16.1474396651592;
        Tue, 20 Sep 2016 11:37:31 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.66.80 with SMTP id p77ls2500902wma.26.canary; Tue, 20 Sep
 2016 11:37:30 -0700 (PDT)
X-Received: by 10.28.232.71 with SMTP id f68mr4871341wmh.55.1474396650254;
        Tue, 20 Sep 2016 11:37:30 -0700 (PDT)
Original-Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com. [2a00:1450:400c:c09::230])
        by mx.google.com with ESMTPS id u87si32796673wma.96.2016.09.20.11.37.30
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 20 Sep 2016 11:37:30 -0700 (PDT)
Received-SPF: pass (google.com: domain of db0451@gmail.com designates 2a00:1450:400c:c09::230 as permitted sender) client-ip=2a00:1450:400c:c09::230;
Original-Received: by mail-wm0-x230.google.com with SMTP id l132so50158045wmf.1
        for <std-proposals@isocpp.org>; Tue, 20 Sep 2016 11:37:30 -0700 (PDT)
X-Received: by 10.194.157.164 with SMTP id wn4mr29330921wjb.142.1474396648934;
 Tue, 20 Sep 2016 11:37:28 -0700 (PDT)
Original-Received: by 10.28.15.84 with HTTP; Tue, 20 Sep 2016 11:37:28 -0700 (PDT)
In-Reply-To: <1dce887f-b468-4978-9466-a9630cfc2671@isocpp.org>
X-Original-Sender: db0451@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of db0451@gmail.com
 designates 2a00:1450:400c:c09::230 as permitted sender) smtp.mailfrom=db0451@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <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:28300
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/28300>

--089e013c646a84981c053cf4b8de
Content-Type: text/plain; charset=UTF-8

On Tue, Sep 20, 2016 at 7:33 PM, <mihailnajdenov@gmail.com> wrote:

>
> *But isn't it time to think for first-class 'callable' type?*
>
> It is somewhat weird, we have first class, wildly-used, lambdas, but no
> native way to store and pass them around - we have to use 10+ years old
> container. It's like a new car with second-hand tires.
>
> And we also have no clean and efficient way to define an interface which
> accepts a callable - we either have to use templates (not clean, though
> Concepts will improve that) or use std::function and not be as efficient
> (and still not all that clean).
>
>
>
What's the alternative? How does one support arbitrary callable types, if
not by using templates? Which std::function is, just as much.

Of course, maybe you have an idea for some other way to do this. Then
you're in the right place to propose it.

-- 
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/CACGiwhFos3wukaQxPYDe%3Dw3nfWkdqKgH06_D-cQutc8FaKjXYQ%40mail.gmail.com.

--089e013c646a84981c053cf4b8de
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><div class=3D"gmail_quote">=
On Tue, Sep 20, 2016 at 7:33 PM,  <span dir=3D"ltr">&lt;<a href=3D"mailto:m=
ihailnajdenov@gmail.com" target=3D"_blank">mihailnajdenov@gmail.com</a>&gt;=
</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><br>=
</div><div><b>But isn&#39;t it time to think for first-class &#39;callable&=
#39; type?</b>=C2=A0</div><div><br></div><div>It is somewhat weird, we have=
 first class, wildly-used, lambdas, but no native way to store and pass the=
m around - we have to use 10+ years old container. It&#39;s like a new car =
with second-hand tires.=C2=A0</div><div><br></div><div>And we also have no =
clean and efficient way to define an interface which accepts a callable - w=
e either have to use templates (not clean, though Concepts will improve tha=
t) or use std::function and not be as efficient (and still not all that cle=
an).</div><div>=C2=A0</div><br></div></blockquote><div><br></div><div>What&=
#39;s the alternative? How does one support arbitrary callable types, if no=
t by using templates? Which std::function is, just as much.<br><br></div><d=
iv>Of course, maybe you have an idea for some other way to do this. Then yo=
u&#39;re in the right place to propose it.<br><br></div><div>=C2=A0<br></di=
v></div></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CACGiwhFos3wukaQxPYDe%3Dw3nfWkdqKgH06=
_D-cQutc8FaKjXYQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CACGiwhFos3wuka=
QxPYDe%3Dw3nfWkdqKgH06_D-cQutc8FaKjXYQ%40mail.gmail.com</a>.<br />

--089e013c646a84981c053cf4b8de--

.
