220 38159 <CAFdMc-2o=SKNdmiy_fnnWWJ+3+Zkbh2sKU4pks40hgS3md=MNA@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "dgutson ." <danielgutson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: memcpy/memset/etc overloads for volatile memory
Date: Wed, 23 May 2018 12:33:02 -0300
Lines: 149
Approved: news@gmane.org
Message-ID: <CAFdMc-2o=SKNdmiy_fnnWWJ+3+Zkbh2sKU4pks40hgS3md=MNA@mail.gmail.com>
References: <CAFdMc-0NAvWrkwzpgEKq4DQj=0vL_0F2s17XyR9MSUNJk5R0sw@mail.gmail.com>
 <5B0520CD.30204@gmx.net> <CAFdMc-3mTTm5hUovuzz51TrJKW8HhVRBjt8kf1obvN0g=+OMhg@mail.gmail.com>
 <1695197.Kxq4M8jdJr@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="00000000000026e3b3056ce1401d"
X-Trace: blaine.gmane.org 1527089458 7987 195.159.176.226 (23 May 2018 15:30:58 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 23 May 2018 15:30:58 +0000 (UTC)
To: std-proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDE3NBMV6UFBBMETS3MAKGQEAGHYMSQ@isocpp.org Wed May 23 17:30:54 2018
Return-path: <std-proposals+bncBDE3NBMV6UFBBMETS3MAKGQEAGHYMSQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f197.google.com ([209.85.220.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDE3NBMV6UFBBMETS3MAKGQEAGHYMSQ@isocpp.org>)
	id 1fLVj3-0001y8-N7
	for gclcip-std-proposals@m.gmane.org; Wed, 23 May 2018 17:30:53 +0200
Original-Received: by mail-qk0-f197.google.com with SMTP id d71-v6sf6310908qkg.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 23 May 2018 08:33:05 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1527089584; cv=pass;
        d=google.com; s=arc-20160816;
        b=Pf2dUbVhXq8RNC++fVOZTB601S+YjcRSZ3NwhvDjDyfx5EfRrasp6HGTs04VUHgTJb
         mflmzljmuYk0ZnTOwsO4Z+nZJR0xU9ob6BgwVCzK+v2zBBUJf7I6vXmkeo1lLmJn9wrR
         wS/jVkAHYw+wpqzfww45RyM8+diZ+8YL3778HvoUaM4ZmGW2PJglSrxh3AYqxFlT62Um
         eIMoR6D4H0wkz4kBTpW3/FuJIjRt/ZIaGeV+xJCQMsju5+sujmSpVhX1oKJkQl3773ev
         XmYvAZPTb0nBv1GugwDCyqMTxHskf/iidR55qhmDJ/nNot+WIHtsUKUTGER/hVaWU0Pe
         9yrA==
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:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=Ifhx9yy41PX3r06zG+c3rzJLJ1SCQT5/hHwp7RMHZDU=;
        b=yrdk0hBTkyjrOx2FI/9BkMPHTGNo7s2uJHXJamasbcIIu6m9JshVy9qJS1dJSow2Is
         Awcgq2e+wbzXoiBdGuXc2b/wIowSjQQlbUGzUVRAH1iC5/uxHAwkqkMw/WhDD/NXhrNt
         Bxqg3pHdccytc3A6PRxIkPEnxOYFenUhXjwWoqF/Jftv3lFjBmmAWlgw8OrdUD7ToyT6
         e8pzv16Guzrla1oygakyLPwkYgNGPj3orKk7FvuSQcsSaW4dNeQk1qArFJ7fxZ9S2iQR
         g9ncFMHanhR82/sFG8BF5x5XCsVPuOLZmaB0416Y7tMMArhX18jijGq8lfZdQ0mZcRef
         rq+g==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=N74uwANX;
       spf=pass (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=danielgutson@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
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:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=Ifhx9yy41PX3r06zG+c3rzJLJ1SCQT5/hHwp7RMHZDU=;
        b=KXHLD7fGu7fDXUxiAiBeO9N/M5d0j7qjn/tYVcjOQxb/OY4u/lVNxlFKumkhqnXm0I
         7YWCqyDPfvpz9ZAscRXWG+BN0yQnnM8tCysKQ2YwzVNeO7NM/QllXvMFfhY/ktKZjPSl
         RXTByzpLQlzPoeWITHx1ldt2IrhEdWuO6u6iuFc8pbp1idZu+eIC7GYcnqCxND478yG9
         duvjQZUGUmWEWF+WklRRf5HKW5vm5fmWFTpQu/9L9h5NVmbZnkBcrs1T5ksQiyAS6VIx
         8icGf8tiRnhgcoh4DyEzrt6veeDHVS+oxDyNVk0YQnn+iCZigBIdrDvg4vRFRHm6jQjo
         nnCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        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=Ifhx9yy41PX3r06zG+c3rzJLJ1SCQT5/hHwp7RMHZDU=;
        b=Li3jwktjK/kozZ3eRcCBScXb6dstQ0w6y2+eL+eY2dUV8U6SFgNKYnr69mUpMxb8Nr
         uguZANsQ0TdvBW/OGDURehZXJNHchQvOHJ3cARICusHAIOvU2TRwPDwvyrGabr9BfTTV
         roTR/OUJcsHCXyR80vM3PPv3AlJCqQQkaqqjaabz4cDAer++95HmRnOeyS9lYsnip/3i
         G05Z0cq6yiGVpbi5LSuCOA0cocc2HohK0gmhn+DrBn4D+RXL/lixOx3YY4IEegF6h/dQ
         afZsUkVNpc8D1kMb2mg+/jy4eKbJ+do0SnkXqaumbODNqTfqg14AVVjOZFRFhLbjj0+I
         ycfw==
X-Gm-Message-State: ALKqPwcCYOoOP8yheKMxJyrapD4OaOv+MMtkfnraxPXSj/gPdWD/Q6M2
	g9OwmhJwgf0k3WXQFKSZgsJi1w==
X-Google-Smtp-Source: AB8JxZrXPYqRP6TnxCzQx8tBGleFfWAu/4VHl/xe9z3K5uvKakBN9uyJ3VRQGZ04WtotkX+kRULmKA==
X-Received: by 2002:a0c:e787:: with SMTP id x7-v6mr1655168qvn.17.1527089584854;
        Wed, 23 May 2018 08:33:04 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a0c:a365:: with SMTP id u92-v6ls8773979qvu.8.gmail; Wed, 23
 May 2018 08:33:03 -0700 (PDT)
X-Received: by 2002:a0c:d442:: with SMTP id r2-v6mr3070066qvh.77.1527089583891;
        Wed, 23 May 2018 08:33:03 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1527089583; cv=none;
        d=google.com; s=arc-20160816;
        b=P8GMBG3799S1GrsMChf0hHUhYOxd2GgSN7JeW8aaHGlkYX7mEYBjns9NudX/1MR8IA
         xWXlzqIog/gCTtF9igmZyrQ92kmNOzzc3YXWUyu8gnNhHwclLqCqkhVM0PjNjq54Oeop
         Gq+y5XJducwJKcODx0/kzmSnO+O+GiWovdl9Gdb3D0UzV7FKGv/q/N9gsuSniAGQVlHj
         v62kga28GGSn0D2pndnmPZO3oRr1FLq1JI1lg7oljhNdBDY4qM77rTH/QUrUtkLirH5Z
         MDXs6VuYew8Yhqayvpiqj+VuJqVeq46dh5mZhU9v98NUKEd/flz3CI9wpUKXEIvvPTK8
         +fHA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=M7qbrIL2UEndTbeH29N2kXBencsLaHn4VrDIoRg/W3w=;
        b=Xu2ZbW6OM8vC1vsAhZY4eRqwzet60b835x1KnanZ/Ih7riagbBWgoJOCBqdIofPfrR
         HTsbmiql3R4PiRsKVOzLaS+m8HCYHoyuG2DjZWYKAzOj/Twwm2BZ7IBvzzWQYQFVqtKV
         Z8sfuAcvKHHNVimO1ZGXfpKbRJziVfHd9toguAw0gnfhTTSD0hpMKrDgjHtY7sLx/yQp
         wVnzYi6GB33k8V9boqi3l/v+UfvSDdHyo6uEwomaVf5ctHv7meOWz7FeQVdADFFCeQWd
         O3revOt+glKZsAdV8WFMUc0sW5Nzzysa2yRFPbNZPYHLoLn4lzogpRXx1AJKaD/wLdv7
         gJIA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=N74uwANX;
       spf=pass (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=danielgutson@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id y39-v6sor10406613qvc.41.2018.05.23.08.33.03
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 23 May 2018 08:33:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a0c:bd23:: with SMTP id m35-v6mr3002757qvg.127.1527089583283;
 Wed, 23 May 2018 08:33:03 -0700 (PDT)
Original-Received: by 2002:a0c:acac:0:0:0:0:0 with HTTP; Wed, 23 May 2018 08:33:02
 -0700 (PDT)
In-Reply-To: <1695197.Kxq4M8jdJr@tjmaciei-mobl1>
X-Original-Sender: danielgutson@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=N74uwANX;       spf=pass
 (google.com: domain of danielgutson@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=danielgutson@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE 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-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:38159
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/38159>

--00000000000026e3b3056ce1401d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, May 23, 2018 at 12:13 PM, Thiago Macieira <thiago@macieira.org>
wrote:

> On Wednesday, 23 May 2018 10:31:15 -03 dgutson . wrote:
> > I think that we could think about some requirements packed in something
> > like a memory_traits, where it would specify:
> >   - pointer type (optionally volatile-qualified)
> >   - alignment requirements
> >   - memory synchronization needs / specifications (an enumerator)
> >   - vectorization habilities
>
> Or, like I said, you can roll out your own memcpy or memset (which are
> quite
> trivial) if you have specific requirements.
>

I propose to leave "triviality" out of the discussion, since this can get
combinatoric complex, and there is no metric of "triviality" either.
There are many std functions that are arguably trivial as well, and despite
that, they are in the STL because people use them.
We can keep arguing about triviality, what is trivial and what isn't, and
we will end up comparing somebody with Hitler as per Godwin's Law.
Please forgive me, I sincerely respect you but this is not a discussion I
would like to have.


>
> --
> 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/1695197.Kxq4M8jdJr%40tjmaciei-mobl1.
>



--=20
Who=E2=80=99s got the sweetest disposition?
One guess, that=E2=80=99s who?
Who=E2=80=99d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?

--=20
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 e=
mail 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/CAFdMc-2o%3DSKNdmiy_fnnWWJ%2B3%2BZkbh2sKU4pks40h=
gS3md%3DMNA%40mail.gmail.com.

--00000000000026e3b3056ce1401d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, May 23, 2018 at 12:13 PM, Thiago Macieira <span dir=3D"ltr">&lt=
;<a href=3D"mailto:thiago@macieira.org" target=3D"_blank">thiago@macieira.o=
rg</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D""=
>On Wednesday, 23 May 2018 10:31:15 -03 dgutson . wrote:<br>
&gt; I think that we could think about some requirements packed in somethin=
g<br>
&gt; like a memory_traits, where it would specify:<br>
&gt;=C2=A0 =C2=A0- pointer type (optionally volatile-qualified)<br>
&gt;=C2=A0 =C2=A0- alignment requirements<br>
&gt;=C2=A0 =C2=A0- memory synchronization needs / specifications (an enumer=
ator)<br>
&gt;=C2=A0 =C2=A0- vectorization habilities<br>
<br>
</span>Or, like I said, you can roll out your own memcpy or memset (which a=
re quite <br>
trivial) if you have specific requirements.<br></blockquote><div><br></div>=
<div>I propose to leave &quot;triviality&quot; out of the discussion, since=
 this can get combinatoric complex, and there is no metric of &quot;trivial=
ity&quot; either.</div><div>There are many std functions that are arguably =
trivial as well, and despite that, they are in the STL because people use t=
hem.</div><div>We can keep arguing about triviality, what is trivial and wh=
at isn&#39;t, and we will end up comparing somebody with Hitler as per Godw=
in&#39;s Law.</div><div>Please forgive me, I sincerely respect you but this=
 is not a discussion I would like to have.</div><div>=C2=A0</div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">
<span class=3D""><br>
-- <br>
Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" rel=3D"noref=
errer" target=3D"_blank">macieira.info</a> - thiago (AT) <a href=3D"http://=
kde.org" rel=3D"noreferrer" target=3D"_blank">kde.org</a><br>
=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center<br>
<br>
<br>
<br>
</span><span class=3D"">-- <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%2Bunsubscribe@isocpp.org">std-propo=
sals+unsubscribe@<wbr>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>
</span>To view this discussion on the web visit <a href=3D"https://groups.g=
oogle.com/a/isocpp.org/d/msgid/std-proposals/1695197.Kxq4M8jdJr%40tjmaciei-=
mobl1" rel=3D"noreferrer" target=3D"_blank">https://groups.google.com/a/<wb=
r>isocpp.org/d/msgid/std-<wbr>proposals/1695197.Kxq4M8jdJr%<wbr>40tjmaciei-=
mobl1</a>.<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature">Who=E2=80=99s got t=
he sweetest disposition?<br>One guess, that=E2=80=99s who?<br>Who=E2=80=99d=
 never, ever start an argument?<br>Who never shows a bit of temperament?<br=
>Who&#39;s never wrong but always right?<br>Who&#39;d never dream of starti=
ng a fight?<br>Who get stuck with all the bad luck? </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/CAFdMc-2o%3DSKNdmiy_fnnWWJ%2B3%2BZkbh=
2sKU4pks40hgS3md%3DMNA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoo=
ter">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-2o=
%3DSKNdmiy_fnnWWJ%2B3%2BZkbh2sKU4pks40hgS3md%3DMNA%40mail.gmail.com</a>.<br=
 />

--00000000000026e3b3056ce1401d--

.
