From nobody Sun Jan 21 16:40:03 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 4THzc12cYBz57mHX for ; Sun, 21 Jan 2024 16:40:17 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4THzc04SJyz3xZ3 for ; Sun, 21 Jan 2024 16:40:16 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-vk1-f172.google.com with SMTP id 71dfb90a1353d-4b74a9a9d4cso637095e0c.1 for ; Sun, 21 Jan 2024 08:40:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705855215; x=1706460015; 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=UI7IghqNSeTdgvDiS70cjxtWHpx5hVzpCtArTR5M6uE=; b=OHqBdftXnuk/UkOjT92WQoljo15loi0sEqdFeSSqglG9EJvLmqBqnchnN898vDKYqV aKgt7vxJeb/z9s/qS57DiDjgJBHeb2BXRMCWBX0mgPMlDJPgJ2VBs/5vusVtMNPZcHjN ob5fdYjki+qpH+3vHEQau8h76aq4YauRJwOcKCdd9lE+XDJ8TOZraPnlufagkWVEf7/N 3dQx+KKIf0Jt2YXnuPhbLv4NiSrVrLlNT+yridS2C/TyQMYr6YIFG5O6cU76ONhCWuZ5 j9zyQq8BbWxsiigd2VWbpRegYU7xG3TyhFUhaDLLgte5bFFtcXQuLec1FRH94+5w6Cd6 ZP8Q== X-Gm-Message-State: AOJu0YyPJ4mG+MeERa6raKswG4LLPiBGdZezWvIghfoR5eKsDbCoLMzN +Gsg7MqCAedX3ODJqRVpzUZYxojeItxjKqtUBz166JnJzUmERF/D2CP5LRv1Q7Y2VISC/Xrew6T WXMH29AYN4qWE+B7todsS14SeNUWAbnqc X-Google-Smtp-Source: AGHT+IGqg5oQ5qizog953rDKn8tlgr/Ln/QI9DNY452E/gB9W4jyxOmTeQCJVDfFrttsfZR7EGO8jrbbXsHYGnR3Fw0= X-Received: by 2002:a05:6122:1698:b0:4b6:b979:a28 with SMTP id 24-20020a056122169800b004b6b9790a28mr745502vkl.17.1705855215386; Sun, 21 Jan 2024 08:40:15 -0800 (PST) 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: <1673801705774097@mail.yandex.ru> <202401210751.40L7pWEF011188@critter.freebsd.dk> <40bc1694-ee00-431b-866e-396e9d5c07a2@m5p.com> <202401211626.40LGQDim013134@critter.freebsd.dk> In-Reply-To: <202401211626.40LGQDim013134@critter.freebsd.dk> From: Alan Somers Date: Sun, 21 Jan 2024 09:40:03 -0700 Message-ID: Subject: Re: The Case for Rust (in the base system) To: Poul-Henning Kamp Cc: George Mitchell , freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4THzc04SJyz3xZ3 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)[]; TAGGED_RCPT(0.00)[freebsd]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] On Sun, Jan 21, 2024 at 9:26=E2=80=AFAM 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 simila= r 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 fusefs= test > > suite, I based it around the priniciple of Mocking. [...] > > Why would such a test-tool live in src rather than ports ? I initially considered putting it in ports just for that reason. But it's too tightly coupled to src. The tests need to change with every feature addition or bug fix to src. If the tests lived in ports, then they would have to be aware of all of the differences between main, stable/14, stable/13, releng/13.2, etc. Updates to src would have to be synchronized with updates to ports, and the package builders introduce a few days' lag. I thought that synchronization effort would be too great. That's why I put the tests in src and used C++.