From nobody Sun Jan 21 16:40:52 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 4THzcq4pp5z57mCn for ; Sun, 21 Jan 2024 16:40:59 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4THzcq2f87z4144; Sun, 21 Jan 2024 16:40:59 +0000 (UTC) (envelope-from kp@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705855259; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q88s7lAyEVr1zs+EKYBWhMob3p62HSxjB8wtpOd+pRo=; b=ByScpTzOf/Bmh065+cgp96AdaXMPQpLip1Nqym1D51MUDL0Gfc5QZ59CcjeBS2OR8mcKEl +K6PgQNuDKCbC08DOX58NpLFtHTAM5wIe4n2u+iVdjByBmH8EIYzqs8lS7rVSuY84tHPoG DpaEn3A6GND8dIa5oFEytIrrM+CWF91kXOIzxpffeI7R3djPZeR5lwquWu56ZnhgcmxDji hZzyCNJPtwHt4UJDlp4mAgfMgQaoagLnSqVYwBr3MHibselTvUUxI8SMol8Y/IRiBngExl LpUSNlyfdscS/teK3mKPEHCpLdGp1qdu4VCPenLqyupMB4LLPr6021iTyLUvGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705855259; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q88s7lAyEVr1zs+EKYBWhMob3p62HSxjB8wtpOd+pRo=; b=BZDme/OgqcXRG1LJhXsllH2/FTbJ8vkNO2cwDA1zgopQqlQsmL1fs3RxBNmmDmoInNAAt2 IL4gM3ScKtaqPNT3vhwBOFbhUiNQqzcmg+iCi0FTOTDMI5NQDWx/s19o19a0JPCQtYroSN FYBoyYDstr1Bz0c9aa6WRru8RwHNJb2KMocO/K1Akh6PgIadAUGfXjnFdKsQ5NX4zvRSkU iUOnrum3tRS7QrAnNYKgjhWZeoQEKdg9/+CShmHMhmvMNIRtc85bxFQoqErpwNlRJfGAq+ IHamZuw5Bo2EySnavMuXLWN5bk+gtgXn7YWEe6YdHXZlapWJtMAuw51Sem9OzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705855259; a=rsa-sha256; cv=none; b=PyAkiVRqxzvtE+PQgBxpSElizdZ8lboLgEdJ+7vAASc+aCo9uZj4HfGAq9kCvmjGi02pHC Pn2d48ZzTLpVlZoF/eXXLxgeK1hDEKu8sIfQ09kPNH6oDGuqCPwEuj89x4sTb49WofuhsU V5KZBfmMJGOmgfVMyFa7IIWquQkjJq/ENTPrf1llZv9kX0WbZubSacyc0pMTU7yBnE7JTI 4aLI5RKN+jEihYbPd+MZgr1M9ixDOOlwrpL4LyDCG/CAAROkbWOgXTmYOLBJQM4CB1s3xV SuzZfJCPMIXkI1n81RY0WQj+Lyf1SMnOR1rwWF/scxsuCsfRUZsYJJPMIhRpGw== Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx1.codepro.be", Issuer "R3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 4THzcq113Zz1Plp; Sun, 21 Jan 2024 16:40:59 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id C821E46918; Sun, 21 Jan 2024 17:40:56 +0100 (CET) From: Kristof Provost To: Poul-Henning Kamp Cc: Alan Somers , George Mitchell , freebsd-hackers@freebsd.org Subject: Re: The Case for Rust (in the base system) Date: Sun, 21 Jan 2024 17:40:52 +0100 X-Mailer: MailMate (1.14r5937) Message-ID: <4EF67303-A995-457A-990F-A4972C23EA80@FreeBSD.org> In-Reply-To: <202401211626.40LGQDim013134@critter.freebsd.dk> References: <1673801705774097@mail.yandex.ru> <202401210751.40L7pWEF011188@critter.freebsd.dk> <40bc1694-ee00-431b-866e-396e9d5c07a2@m5p.com> <202401211626.40LGQDim013134@critter.freebsd.dk> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 21 Jan 2024, at 17:26, Poul-Henning Kamp wrote: > Alan Somers writes: >> * " can't be implemented unless written in rust" >> >> I don't think anybody has claimed this yet. But I _have_ made a simil= ar claim, >> that some things can't be written in C. I'll elaborate on the project= that >> started this thread: the fusefs test suite. When I designed the fusef= s test >> suite, I based it around the priniciple of Mocking. [...] > > Why would such a test-tool live in src rather than ports ? > It=E2=80=99s entirely reasonable for the test code to live in the same re= pository as the code it tests. Doing otherwise would make life harder (e.g. how do you establish if a te= st failure is expected with a given src version) for no good reason. I suspect we may be working with different views of what a test tool does= here. You may be thinking more along the lines of something like iperf, = while I=E2=80=99m thinking more of test like this one: https://cgit.freeb= sd.org/src/commit?id=3D4c84c69ba308b7758d07dc8845b13922ed667e02 I=E2=80=99ll take the opportunity to point out that there=E2=80=99s prece= dent for using non-base languages in tests (e.g. Python, for the test lin= ked above), so using Rust code for in-tree tests looks like a reasonable = way to get our toes wet, without immediately painting ourselves into a co= rner if it doesn=E2=80=99t work out. =E2=80=94 Kristof