Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2036532rdd; Thu, 11 Jan 2024 18:24:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEc1a6Nq5LjUwbDqMKSs+neefVsHpxvhVRqCZRwmXaQKCPSbFXoEChvwYc56mG9pnDeGgZl X-Received: by 2002:a17:906:3cf2:b0:a27:246b:442c with SMTP id d18-20020a1709063cf200b00a27246b442cmr253263ejh.97.1705026253140; Thu, 11 Jan 2024 18:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705026253; cv=none; d=google.com; s=arc-20160816; b=aJ45MYtF0r4BPmUPUCKLTLpIdKSF9U/wtuIrVj52rbjcB/Nk0hFK0/vaGJk04aa6Ji qBEjX0IfuSJWKwf/faNi/W3suDkDskzxyThnu70MpK76jIGGdWdJpmzPwSDJlCeauXNm 4L5UjuXfWL1IwhUcfBDi0hoRwc+22iqK+dtvVu8b3oFphKvA/AqGdd7pdiQ2HEcPXmAI 5NZdiAZF2A/aZ7HTTJkSYrEZldNAQS0MSBIhtq1U/Y6Kaxt6r+X6/vS4hF3iH8CnUkh+ Rv+jTjtpnV0IXRN3zjEugGbGhrP46M7+v+muxvT5yaYRXACD7WgX1NSU9Rtkik4WUDG3 upqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=gEL02qJ+kf4rmTWjTkIkdSy7bQtlOufhbVEFlnTcpyw=; fh=FNdf0H7iiM+FCvZBuZvn7T25RDRm1JWF6L7+JFtNnoU=; b=WrK1axKfosonsYNboZ89FSZ88rlo7gO42lWce2X1GhyZlgwlPbsboY1hBXMeKM6U0/ bj/y44yiUjci3e4ReTJnzKTJP+1P4TMApAdHbj7oIbmrZ8CW0G8LwSu5VJe1USkLK/p/ rtZRzmFxR3mBfpJTAxZgzJBtzhtF9/cGC2m7YONxgqicqZV3iJDtASK8FheNYJFbHXcI 7mBQx+Fzid348BVAkUbJMl3Uhn5AjCA3kDDCmpELUTP4p1TyyD9kxwZVqpyGWdd7DqJM PUAdx4z58HoPRLo9/FlOdro5tIviaeBwKR9+H5tO2qVFWFySgP9XTBMBHxJppNMktEMo 3JKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2023121201 header.b=X7Ula3Au; spf=pass (google.com: domain of linux-kernel+bounces-24230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i13-20020a1709061ccd00b00a2c21c39024si987400ejh.224.2024.01.11.18.24.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 18:24:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@zytor.com header.s=2023121201 header.b=X7Ula3Au; spf=pass (google.com: domain of linux-kernel+bounces-24230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D9B8C1F24863 for ; Fri, 12 Jan 2024 02:24:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DBFB4A28; Fri, 12 Jan 2024 02:24:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="X7Ula3Au" Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB7594A14 for ; Fri, 12 Jan 2024 02:24:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from [IPV6:2601:646:8002:4641:eb14:ad94:2806:1c1a] ([IPv6:2601:646:8002:4641:eb14:ad94:2806:1c1a]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 40C2NFj0041670 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 11 Jan 2024 18:23:16 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 40C2NFj0041670 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023121201; t=1705026198; bh=gEL02qJ+kf4rmTWjTkIkdSy7bQtlOufhbVEFlnTcpyw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=X7Ula3AuasMk3h8B+YBe3xqBoqgSzW2ZArYwMqHmPfAT4pVyO+LxLybF/itpYt6Pc AFKoH8feZ5PV8DY/SsbfpcEydX/sluG85FSXmqiPB1WvVhXkBMAOd0PqgEjA4WahIU nbWsNMufkrEJBM7rCH6E2jhajBrGA3dirrzCUtJGVh0xM8V+H+aPGkd5Q/vTaVPSlK xDrOiJDXFRavQ7QlhLd2T5M9Cr3nBkcEbtIfqTgFv54nXssEpsj8qImuh4Rh/gvpBH UMDYDjNIe5hVqtfhI841Rn6yaceEWGShFMmnMk7KadVbc+zURUGluEfwd18PZWWzIO R5nWUEmEMfuqA== Message-ID: Date: Thu, 11 Jan 2024 18:23:10 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/45] C++: Convert the kernel to C++ Content-Language: en-US To: "Theodore Ts'o" , Neal Gompa Cc: Jason Gunthorpe , jirislaby@kernel.org, dhowells@redhat.com, linux-kernel@vger.kernel.org, pinskia@gmail.com, kent.overstreet@linux.dev References: <938ebce3-74c5-4fcf-9de3-849271d3581d@kernel.org> <20240110130456.142763-1-neal@gompa.dev> <20240110155233.GA623732@nvidia.com> <20240110175755.GC1006537@mit.edu> From: "H. Peter Anvin" In-Reply-To: <20240110175755.GC1006537@mit.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/10/24 09:57, Theodore Ts'o wrote: > On Wed, Jan 10, 2024 at 11:25:29AM -0500, Neal Gompa wrote: >> >> For what it's worth, I'm totally in favor of C++20 as well. I've >> mostly written C++17 as of late and it is really nice to me, but I'm >> genuinely excited about C++20 and newer revisions. >> >> I also think that Linux adopting C++ and intentionally adopting safety >> features that exist and are being added to C++ over time would also >> further encourage the ecosystem to use them as well as make the Linux >> codebase much easier to work with. > > Can someone speak to whether the C++ standards committee and C++ > compiler implementations are more or less unreasonable compared to > their C counterparts regarding compilers being able to arbitrary > statement reordering, or other random futzing all in the name of > better benchmarks, but which make life a living nightmware for honest > kernel developers? > I suspect that the gcc and clang developers are more motivated these days about such issues since they are now using C++ as their own implementation language. I had a member of the C++ standards committee reach out to me already, and I'm going to have a discussion with him next week. I have a lot more to say in response to all the (excellent!) comments, but I'm about to leave for a long birthday weekend, so my apologies if I don't get back to things until next week. -hpa