Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1560422rdd; Thu, 11 Jan 2024 02:59:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3QgswTuZJoBbch+ZYTN2u3ba21ke58PYeOykG5Pyzpz4MmVl51fmMOwo3BJN1mz+dqmKe X-Received: by 2002:a17:90b:2288:b0:28c:ca39:9aa0 with SMTP id kx8-20020a17090b228800b0028cca399aa0mr809382pjb.20.1704970795768; Thu, 11 Jan 2024 02:59:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704970795; cv=none; d=google.com; s=arc-20160816; b=AlhB+oNJFrcT0cu/rXpxqIDi2wFR+HS3awCwjg2S98YZE3dXC6VipYjOz+Krq323nF 7KXIxqK7Q6HAVHQ2mlFLEg+EPZ2HnZaWoqedwdTTPxzdttYpyFUAKUHkKY4KCKW+KviI L14vs83ZYj1dArfXmZO8wewMrQQO69G8iKJiOvpiL4censMw4ldz7hNHyNRnsQP1+TJz /LvYLA04GJEEROzYJ8zybcIv2WnfAirjAl75D8Ym4GtvirDJ0w6YAGXYqvAhG0geU57s 1O6AkGrIYamywqedJA3yyIB3mdUK9PnrdWFPb76zKl4IVHU4CWolZmqSeds9Kj2tDUIi iFNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=K9UdkkDp8qRb0Sxv5cn4ME3xe3myOJpUJJM+BWfPPVQ=; fh=0sKO7YM9iA/WlSRAIeVI4C81sezJIsRDFDeKRCFjud0=; b=oz+csBdgKmhy6l25tA2gU0jJ2/L3sXgbeyfKu/JkuGgB1EoAfVov43QUehOxePiicB Q1xMIK794W8rQdhDJ/vAhR90xDysnAILi6e5hnUB3Vnuc6JLcwklyhcioMFKjKtvjxdP IwVu0TQ81I1tyRJc2z4d15U8h79+Hi/i17n441wZLyQu0BywH6a0zC/GUREcV4IEKQq4 AixDoZ2LvuffOfGdwp736DgEvyD7H/a6pYWUfK8dMjeESEiA6g+o8LvID/qbW68xmQjZ /TqVTiQTmzqSHhiyjZBPwkedYTOTqwxqN4I2Z8uSBvt5SME4yv0dUJ7HnPe2pVmDz86e 1xHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23438-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23438-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y8-20020a17090a644800b0028014e41ff7si869221pjm.48.2024.01.11.02.59.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:59:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23438-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23438-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23438-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6F4CA28406D for ; Thu, 11 Jan 2024 10:59:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5FEF15499; Thu, 11 Jan 2024 10:59:32 +0000 (UTC) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 864C314F65 for ; Thu, 11 Jan 2024 10:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gompa.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a26f73732c5so609285466b.3 for ; Thu, 11 Jan 2024 02:59:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970768; x=1705575568; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K9UdkkDp8qRb0Sxv5cn4ME3xe3myOJpUJJM+BWfPPVQ=; b=ZHXglfzJRTF3RmPpRO34OV0yhr9V6Wfm4iB0hwuUJXOwIIqFSDts5XTEQdIFTsbuyM wZt0etbqcOEacjH2XhDzm1IBnfvj4iujqjHtHJ8RTms5vXLPBHnnn46poizGNhFTP6Mh tzznJXHnH5XZ8RkGjhM1Dk4k2WJl/Ooej11kA8mazmzr2Xo4ochMalIkzebT6LMPqH9m /5IHa6frASesv7OBF1PsWAXOtRsqbVjxWLO6XBgWFUESsa4WBaShLbgHi69mtAFuEcRl A7vuEEA2Zxpjs7BmHVjcpM9mRgoWCYt3haWSgrgYSvDHQ4KFZXU33hzuBsKYPKSgYr+k KIuw== X-Gm-Message-State: AOJu0YzaO4nXqI2jbTwe5f9WEPqZ5RoSs2Dl+RYooWJ7JC+xTA2UtGsW zf0es6PtRHm6dMbqQJ26bYpRNm67sg2ZA0+A X-Received: by 2002:a17:906:b845:b0:a2b:4ab8:d87b with SMTP id ga5-20020a170906b84500b00a2b4ab8d87bmr423190ejb.139.1704970768313; Thu, 11 Jan 2024 02:59:28 -0800 (PST) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com. [209.85.218.51]) by smtp.gmail.com with ESMTPSA id a23-20020a1709062b1700b00a2a67731f31sm430962ejg.109.2024.01.11.02.59.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 02:59:27 -0800 (PST) Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a2c179aa5c4so140677266b.0 for ; Thu, 11 Jan 2024 02:59:27 -0800 (PST) X-Received: by 2002:a17:906:d78a:b0:a27:9365:ef73 with SMTP id pj10-20020a170906d78a00b00a279365ef73mr456090ejb.38.1704970767622; Thu, 11 Jan 2024 02:59:27 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Neal Gompa Date: Thu, 11 Jan 2024 05:58:51 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/45] C++: Convert the kernel to C++ To: Alexey Dobriyan Cc: "H. Peter Anvin" , Jason Gunthorpe , jirislaby@kernel.org, dhowells@redhat.com, linux-kernel@vger.kernel.org, pinskia@gmail.com, kent.overstreet@linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 5:56=E2=80=AFAM Alexey Dobriyan wrote: > > > SFINAE giving inscrutable errors is why I'm saying C++20, > > since "concept" means you can get usable error messages. > > I'd say concepts are irrelevant for the kernel where standard library is > tightly controlled by the same people who write rest of the kernel and > no external users. > > static_assert() is all you need. We have external users all the time, though. People who write external modules or new modules would fall in that classification. Why should it be harder for them? --=20 =E7=9C=9F=E5=AE=9F=E3=81=AF=E3=81=84=E3=81=A4=E3=82=82=E4=B8=80=E3=81=A4=EF= =BC=81/ Always, there's only one truth!