From nobody Sun Aug 04 22:42:55 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WcZNF0dkwz5RyNJ for ; Sun, 04 Aug 2024 22:43:09 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WcZND5s8Pz42ym for ; Sun, 4 Aug 2024 22:43:08 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-81ff6a80cbbso2970481241.1 for ; Sun, 04 Aug 2024 15:43:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722811387; x=1723416187; 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=t7oF/nKVlwsNni18gO67iosH80T7P6bGbvEOtJvJvw4=; b=DHAQmdNy3er7c2iZs0KHt56GWkhY4e/5S1fmvK7kTWQ1aViB79ABkmPmPsiN1ZsRj7 WB5Hy1OTo7ywcK+/L8bypTlFacEwImmyseFwnu6iPxCDAKT5oxFr5GY3abD1iOqXl1qG 8le/f+LzBZkqVe1XwMNp3NvpVvZXxkqkr2R4IlCa0mU9iSdgcG85CvzGDys1AUt0vEX2 haGSYFWEtxQ5/BHfHRZYF7e1F831D/ixlFzVeaPV8RlDKR44cW2uTQ9lwFuAl/8v4JFn tzPVXhYRMQwcuTl1W8vh1auAgHkPErbzpaT3bbqMDj3pHKuggp0sLNVLb7TbYu3CyK1x jA7g== X-Forwarded-Encrypted: i=1; AJvYcCWcBtqZFo/Xr+lZm8uVLo4BHne3AY92qFovbUfow+nMC7BQh1b1aSunL+axWGmBjjzaGVw+pAoOmvROGSoqOC8y9bOt1xUIR6IKcHw= X-Gm-Message-State: AOJu0YyheqzRLdZY3AMq8zjj06HCVKCqe0w+RojIpor5EXJUY5fC0REz EERcIpzAiYVzW3IdC0KoTVmkzWOb7Qk6aTJr9b4D1qK0EYFTZO85cx1muW/7Jk1HjMRcq5N6D/h XdSKMMYWzV1wYylfpcHhXwyjZlOU4CZRT X-Google-Smtp-Source: AGHT+IGB/Dj8zXTX7t23KPwkmTkppB2Bu+mfn045+bl8tRP00qS0hifTmkp7qeWOqf/7pUbtIXG99Q1rHRypzucJl0U= X-Received: by 2002:a05:6102:3f01:b0:493:daea:615d with SMTP id ada2fe7eead31-4945bbf1a47mr13425454137.0.1722811387456; Sun, 04 Aug 2024 15:43:07 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <202408041800.474I0HUM050473@critter.freebsd.dk> <202408041820.474IKjVV050602@critter.freebsd.dk> <202408041904.474J4b9e050871@critter.freebsd.dk> <202408042038.474KcKrD052069@critter.freebsd.dk> In-Reply-To: <202408042038.474KcKrD052069@critter.freebsd.dk> From: Alan Somers Date: Sun, 4 Aug 2024 16:42:55 -0600 Message-ID: Subject: Re: A Demo of rust-in-base To: Poul-Henning Kamp Cc: Warner Losh , FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4WcZND5s8Pz42ym On Sun, Aug 4, 2024 at 2:38=E2=80=AFPM Poul-Henning Kamp wrote: > > -------- > Warner Losh writes: > > > > > Because those two components need to be updated in lock-step with > > > > potentially any git commit to the base system. Not just official > > > > releases, even minor ones. > > > > > > I'm not trying to be glib here: I really want to make sure I understa= nd > > > any fine nuances you are trying to communicate. > > > > > > Isn't that precisely what drm-kmod already deals with ? > > > > [...] > > > > The other is KBI and matching the kernel. The massive inlining in linux= kpi > > make a stable KBI basically impossible [...] > > That was essentially my point: We already have things in ports which > are totally fragile relative to the kernel, so I want to make sure there > is not som new/other/worse/different aspects in the two cases Alan > brought up. Yeah, the problem is pretty similar to what drm-kmod faces. To quantify the scale: * Between 13.0-RELEASE and the latest stable/13 there were 61 changes to tests/sys/fs/fusefs. * 37 of those were paired with a kernel change, usually in the same commit. If the fusefs test suite were external, that's 37 changes that would need to be replicated in three places (freebsd-src, fusefs-tests, and freebsd-ports). Any user running the tests would need to build the port about once per month, if they track stable/13. Git archaeology would be a lot harder. And worst of all, MFCing changes from main to stable branches would be very confusing. Should the fusefs-tests repository have its own stable branches? Or would the stable branches just not be tested? Those are the reasons why I wrote the fusefs tests in C++ instead of Rust, even though it's a lower productivity language. -Alan