220 39480 <fd17e3b3-00c9-4f2d-80b3-0f4f9490f388@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Alexander Zaitsev <zamazan4ik@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: D1031R1 draft 1 LLFIO with proposed C++ object
 model and lifetime changes for mapped memory support
Date: Wed, 1 Aug 2018 15:38:35 -0700 (PDT)
Lines: 125
Approved: news@gmane.org
Message-ID: <fd17e3b3-00c9-4f2d-80b3-0f4f9490f388@isocpp.org>
References: <096f1d1c-3e2e-4df8-91ee-6f1cf4d31aad@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_156_1291085310.1533163115986"
X-Trace: blaine.gmane.org 1533162992 26096 195.159.176.226 (1 Aug 2018 22:36:32 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 1 Aug 2018 22:36:32 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDGLZGV44EEBB3HMRDNQKGQE7UTORZI@isocpp.org Thu Aug 02 00:36:27 2018
Return-path: <std-proposals+bncBDGLZGV44EEBB3HMRDNQKGQE7UTORZI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f199.google.com ([209.85.161.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDGLZGV44EEBB3HMRDNQKGQE7UTORZI@isocpp.org>)
	id 1fkzjH-0006gX-86
	for gclcip-std-proposals@m.gmane.org; Thu, 02 Aug 2018 00:36:27 +0200
Original-Received: by mail-yw0-f199.google.com with SMTP id c67-v6sf152770ywc.21
        for <gclcip-std-proposals@m.gmane.org>; Wed, 01 Aug 2018 15:38:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=aninryoAbOj1xtOdRGH6y1Z2j/JKeIafk0cXaex5MBU=;
        b=R9f2DaIG6gYuHiD2vH1ln8rg+tU4yLilVetmqq055UnH1C9rJ0QUQ/pfV6+sTHbIDQ
         ydQ0Dyg0mMden1LHWVElWCIjPR2x1ghfgseWTKG5o7UAoV4JrVgCk1/PfsnUENGNgg99
         5QpHWuhWp2r6hP5UP1hhIIIqivGKygQybuKk0tWgFwrXT8Le3rfXYKyPjcXirFI2GBrk
         hafYelbGIMkoQrSTTFQh9BaE7GUym2+VnsX9oL4I+f8MOkNgJywRxPvRPpdguIiybCJd
         fkWvwrChWQp/UHvGRCtWBmeH5MU1H0uxevoq5luB4l73SpUxm55zM6135syZcbmUyr+p
         9pYg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=aninryoAbOj1xtOdRGH6y1Z2j/JKeIafk0cXaex5MBU=;
        b=eGpwxOXt3ScR/yPNbEw9uiiu3EsnCTszGnoqjH1CjUMxfc0Wbrk3PWt/kaFHpOn0mn
         VWMSA2rhYodpHj3R3mZ5TPFgVonq2rwMwbnq1UFhyn/cpaSqqTZLB1XOj4JMBst3pnC9
         6O0YN9VSw66yMosZjFvd/UH/ew3O4BhnD8LZWiB1KPlZvUzz9qV2IFvibZ4npH8IiyMM
         yoW82kQP5rn8YNEPfzpMTcutdJImQEECFy9ozO5gbQD9FoArvtWo02rbjtweA7oA4j3Q
         uycDNTPNcMK++PIm3bzKTp6Ag2z8Qhzylr96yMflKNXL00tJ9ZMq2XEMSLlg42fU78O1
         oCcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=aninryoAbOj1xtOdRGH6y1Z2j/JKeIafk0cXaex5MBU=;
        b=L/iQJ5SwT7kASCgbcvp2tuba7PLPOkwUACOdbxLIb5Rv4f2RtL0YrqqkpItgy1bKkJ
         bT0B2dlWMBhoUzfcZsHfkdxXT1XcGRsWDDrYHrlfIU4AsgFb4RLxdozE7A8B2Dfx0awj
         xB/n5dxv3ZBL09KKHH2fi7rVHNxtq73QQqm1Si8chR2W0goI81Fn6H9QG668y9cPnr9v
         gcwha7eop5odi2tDM+5UvSx1wCgoYdjDD9kQE2v1nePskbipmc918C9XID/v9n1Zb7RJ
         odugnGT0M9/+OTP0aEetpIPYI6AZkac/WJpe74Ttiho2Sr47iLXGLsr189fHOekuTEuD
         wKtg==
X-Gm-Message-State: AOUpUlF+qz5wl9xKs7Y4L5pdbJ2lt8db9Fq++s9Lci3BdSa3tCnX6xaf
	PK6xm1xof21ABjAkpZjN4EdV/w==
X-Google-Smtp-Source: AAOMgpfpTgdqupwyIicpwbgiCEDiiTMYtPtEsMTY8prViHDyV26dlJXko6667kKwokGtYfcZv8R+iQ==
X-Received: by 2002:a81:4956:: with SMTP id w83-v6mr94867ywa.226.1533163117801;
        Wed, 01 Aug 2018 15:38:37 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a25:2548:: with SMTP id l69-v6ls42412ybl.12.gmail; Wed, 01
 Aug 2018 15:38:36 -0700 (PDT)
X-Received: by 2002:a25:8448:: with SMTP id r8-v6mr1330ybm.2.1533163116502;
        Wed, 01 Aug 2018 15:38:36 -0700 (PDT)
In-Reply-To: <096f1d1c-3e2e-4df8-91ee-6f1cf4d31aad@isocpp.org>
X-Original-Sender: zamazan4ik@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:39480
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/39480>

------=_Part_156_1291085310.1533163115986
Content-Type: multipart/alternative; 
	boundary="----=_Part_157_1675232168.1533163115986"

------=_Part_157_1675232168.1533163115986
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 31 =D0=B8=D1=8E=D0=BB=D1=8F 201=
8 =D0=B3., 22:08:27 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=
=D1=82=D0=B5=D0=BB=D1=8C Niall Douglas =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=
=D0=BB:
>
> So after many weeks of pondering and writing this outside of work each=20
> day, please find attached an early draft of revision 1 of P1031 destined=
=20
> for San Diego. Changes since R0:
>
>    - Wrote partial draft TS wording for deadline, handle, io_handle,=20
>    mapped, mapped_view, native_handle_type and file_io_error.
>    - Added impact on the standard regarding potential changes to the C++=
=20
>    object model.
>    - Added impact on the standard regarding the proposed=20
>    [[no_side_effects]] et al contracts attributes.
>   =20
> Note that the partial draft TS wording assumes Deterministic Exceptions +=
=20
> SG14 standard error object + in-progress _Fails calling convention=20
> implementation of P0709.
>
> I am very aware that modifying the C++ object and lifetime model is a hug=
e=20
> ask of WG21. This is why memory maps are pure UB in current C++, despite=
=20
> the fact that you can't implement dynamic memory allocation on the major=
=20
> platforms without something like them.
>
> Please before you blow holes in my proposed changes, can you think of a=
=20
> better alternative beforehand? I suspect that most "better alternatives"=
=20
> have a very good technical reason why I couldn't choose them, but it woul=
d=20
> do no harm to ask clever "stupid questions" at this stage in this=20
> proposal's lifecycle. Better out than in.
>
> My thanks in advance, especially for feedback on such a profound and=20
> complex part of the C++ standard.
>
> Niall
>
>
Great proposal. One suggestion - possibly will be better to divide your=20
proposal into several proposals. My own wish - move contract=20
[[no_side_effects]] into another proposal. Because [[no_side_effects]] can=
=20
help in another places for code optimization.=20

--=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/fd17e3b3-00c9-4f2d-80b3-0f4f9490f388%40isocpp.or=
g.

------=_Part_157_1675232168.1533163115986
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 31 =D0=B8=D1=
=8E=D0=BB=D1=8F 2018 =D0=B3., 22:08:27 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=
=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Niall Douglas =D0=BD=D0=B0=D0=BF=
=D0=B8=D1=81=D0=B0=D0=BB:<blockquote class=3D"gmail_quote" style=3D"margin:=
 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div =
dir=3D"ltr">So after many weeks of pondering and writing this outside of wo=
rk each day, please find attached an early draft of revision 1 of P1031 des=
tined for San Diego. Changes since R0:<div><ul><li>Wrote partial draft TS w=
ording for deadline, handle, io_handle, mapped, mapped_view, native_handle_=
type and file_io_error.</li><li>Added impact on the standard regarding pote=
ntial changes to the C++ object model.</li><li>Added impact on the standard=
 regarding the proposed [[no_side_effects]] et al contracts attributes.<br>=
</li></ul></div><div>Note that the partial draft TS wording assumes Determi=
nistic Exceptions + SG14 standard error object + in-progress _Fails calling=
 convention implementation of P0709.</div><div><br></div><div>I am very awa=
re that modifying the C++ object and lifetime model is a huge ask of WG21. =
This is why memory maps are pure UB in current C++, despite the fact that y=
ou can&#39;t implement dynamic memory allocation on the major platforms wit=
hout something like them.</div><div><br></div><div>Please before you blow h=
oles in my proposed changes, can you think of a better alternative beforeha=
nd? I suspect that most &quot;better alternatives&quot; have a very good te=
chnical reason why I couldn&#39;t choose them, but it would do no harm to a=
sk clever &quot;stupid questions&quot; at this stage in this proposal&#39;s=
 lifecycle. Better out than in.</div><div><br></div><div>My thanks in advan=
ce, especially for feedback on such a profound and complex part of the C++ =
standard.</div><div><br></div><div>Niall</div><div><br></div></div></blockq=
uote><div><br></div><div>Great proposal. One suggestion - possibly will be =
better to divide your proposal into several proposals. My own wish - move c=
ontract [[no_side_effects]] into another proposal. Because [[no_side_effect=
s]] can help in another places for code optimization.=C2=A0</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/fd17e3b3-00c9-4f2d-80b3-0f4f9490f388%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/fd17e3b3-00c9-4f2d-80b3-0f4f9490f388=
%40isocpp.org</a>.<br />

------=_Part_157_1675232168.1533163115986--

------=_Part_156_1291085310.1533163115986--

.
