Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2045023rdd; Thu, 11 Jan 2024 18:53:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0gVqhboCopzJVlXHjzLiyf65X5H6Ngn+58eP52jfHSQgeU9+pZt2Gt3U8Myvjb+FVs94S X-Received: by 2002:a05:6808:114b:b0:3bc:ec49:4146 with SMTP id u11-20020a056808114b00b003bcec494146mr415908oiu.83.1705027985668; Thu, 11 Jan 2024 18:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705027985; cv=none; d=google.com; s=arc-20160816; b=jAcxcWy0SWZz6XLyGg+dfGg0Cj9yJMCunKBXAvJLFLsj1MCCPYWc1puVdzGdJFwTJ4 CdHh1TyoejbKa7z/NLm1uZUxAOWZ1dHzeuj/Ssu6wS2iyIhfC2yx/HDR3ASdxnIIWoVx 5dQkKvHJf/filWm5RLYV3qxzdC/LM4M+UKt4LLG9dDEZqFQO8BrcjkyVkf/nux2FKazX KnzJx2JSTmPkWHQU0KWOeapMc0/aWnLinj6TyWrBzeVWhbcDO286aCrDLuWWoWSnLHj5 b0TJTPKqiloMiDTKbXe4BLz0DS1+8TKbLlYGAURM9bEPg1skHw3Ah8elr6/14/64FHN5 JXCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=0WGRvqKfKKjOW3jwQBWKqWmSsWWXWXxNdLOh25a2djs=; fh=WyGaX22pBCs9RQGZ6+PuQIA9xwADlXdxuPdOypH7P38=; b=0KxTJmKhPm8hX0hX7PaWYovFt4E8P4qEnAZ6+hCStMgLLC0ziq2wJH0eJ0dUBguLvU nZu+G74KbF2WFtZ8cL4Ny6K/uHxMXHhuzcywXqF00J6nh3qvfR7Ft1cF2v4ThpYytZ4V gD6PP57WLWL+JfLoPY//H9ybA6AdDSCSuIf0jlqj0VY7OpupG1CxRDDCS9RsbrezR1Aj aBEQB9FtgC+Ppv39XgDeY47eUAGW5h57tJ2eKnDsD0FCvPnWFMwk78O13tERzFG0I7VD HJLv6tmOM2vAA1Yo0R5XHNjp/T9yRtqJ+Lj9mlmxKhHNsj1CeSEth1GM5u4yvXI7/FPh qu1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=d2zC4uzX; spf=pass (google.com: domain of linux-kernel+bounces-24248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 37-20020a631365000000b005cee9b3f5cdsi2359457pgt.478.2024.01.11.18.53.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 18:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=d2zC4uzX; spf=pass (google.com: domain of linux-kernel+bounces-24248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 86908B24C64 for ; Fri, 12 Jan 2024 02:53:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFBAE15BD; Fri, 12 Jan 2024 02:52:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="d2zC4uzX" Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [95.215.58.185]) (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 3230E136B for ; Fri, 12 Jan 2024 02:52:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 11 Jan 2024 21:52:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1705027969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0WGRvqKfKKjOW3jwQBWKqWmSsWWXWXxNdLOh25a2djs=; b=d2zC4uzXBKnAD4YRD4kgwiqldlv/EANQt7WRysVCN78K4SIysaV0eFXDOJfvoZYa8OCzI6 jNzoNt4oqaOvG4m+Gw8qXN5BVNh1svKfWImcFhen8d9qMT57eyiJfWpqgHGeZRplaYEtbi BI+GZhAuBrOBDEw0JstWl4nednrcgp4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: "H. Peter Anvin" Cc: Theodore Ts'o , Neal Gompa , Jason Gunthorpe , jirislaby@kernel.org, dhowells@redhat.com, linux-kernel@vger.kernel.org, pinskia@gmail.com, Miguel Ojeda Subject: Re: [PATCH 00/45] C++: Convert the kernel to C++ Message-ID: References: <938ebce3-74c5-4fcf-9de3-849271d3581d@kernel.org> <20240110130456.142763-1-neal@gompa.dev> <20240110155233.GA623732@nvidia.com> <20240110175755.GC1006537@mit.edu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Thu, Jan 11, 2024 at 06:23:10PM -0800, H. Peter Anvin wrote: > > > 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. Happy birthday, Peter :) Would this cause any issues for the Rust people, e.g. linking? I'd like to hear their input.