Date: Sun, 21 Jan 2024 17:40:52 +0100 From: Kristof Provost <kp@FreeBSD.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: Alan Somers <asomers@freebsd.org>, George Mitchell <george+freebsd@m5p.com>, freebsd-hackers@freebsd.org Subject: Re: The Case for Rust (in the base system) Message-ID: <4EF67303-A995-457A-990F-A4972C23EA80@FreeBSD.org> In-Reply-To: <202401211626.40LGQDim013134@critter.freebsd.dk> References: <CAOtMX2hAUiWdGPtpaCJLPZB%2Bj2yzNw5DSjUmkwTi%2B%2BmyemehCA@mail.gmail.com> <1673801705774097@mail.yandex.ru> <CANCZdfpqWgvV_RCvVO_pvTrmajQFspW%2BQ9TM_Ok3JrXZAfeAfA@mail.gmail.com> <ef4ad207-5899-42b6-8728-bc46f1417e9e@antonovs.family> <202401210751.40L7pWEF011188@critter.freebsd.dk> <40bc1694-ee00-431b-866e-396e9d5c07a2@m5p.com> <CAOtMX2hppfdu5ypDdGpfw_QDcd1rwJEeyVfSk9ogFEm7CiV6Kw@mail.gmail.com> <202401211626.40LGQDim013134@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 21 Jan 2024, at 17:26, Poul-Henning Kamp wrote: > Alan Somers writes: >> * "<something> can't be implemented unless written in rust" >> >> I don't think anybody has claimed this yet. But I _have_ made a similar 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 ? > It’s entirely reasonable for the test code to live in the same repository as the code it tests. Doing otherwise would make life harder (e.g. how do you establish if a test 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’m thinking more of test like this one: https://cgit.freebsd.org/src/commit?id=4c84c69ba308b7758d07dc8845b13922ed667e02 I’ll take the opportunity to point out that there’s precedent for using non-base languages in tests (e.g. Python, for the test linked 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 corner if it doesn’t work out. — Kristof
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EF67303-A995-457A-990F-A4972C23EA80>
