Re: The Case for Rust (in the base system)

From: Alan Somers <asomers_at_freebsd.org>
Date: Sun, 21 Jan 2024 21:04:20 UTC
On Sun, Jan 21, 2024 at 1:13 PM Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>
> --------
> Warner Losh writes:
>
> > Even if all the cool kids are doing it, it doesn't mean the cool kids are
> > wrong. We should not reject the hypothesis on that basis alone.
>
> I certainly didn't mean to imply that, my point about cvsup was precisely
> that the proof of the pudding is in the eating.
>
> The only comment I want to add, is that the test-cases should be
> expressed such that, if/when we find out Rust wasn't God's gift to
> programmers, we can reimplement the tool which interprets them in
> some hot-language-du-jour, without having to rewrite all the actual
> test-cases.

I think imp and phk are after different things.  phk wants a tool
written in Rust that be installed from ports and interpret test cases
defined in src.  That's similar to the fsx tests, which I'm planning
to add to src once the package builder catches up.  But imp wants test
cases that are actually written in Rust and which live in src, to test
his external toolchain proposal.  That's very different.  It's an
unusual requirement.  Off hand I can't think of many subsystems that
are a good match for a test suite like that.  ypclnt(3) might be one.