Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2024 09:40:03 -0700
From:      Alan Somers <asomers@freebsd.org>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        George Mitchell <george+freebsd@m5p.com>, freebsd-hackers@freebsd.org
Subject:   Re: The Case for Rust (in the base system)
Message-ID:  <CAOtMX2inanNDXVz5V3ELp5ffUXny_EhJ6VjR0HXc4KLvzjikEw@mail.gmail.com>
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 Sun, Jan 21, 2024 at 9:26=E2=80=AFAM Poul-Henning Kamp <phk@phk.freebsd.=
dk> 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 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++.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2inanNDXVz5V3ELp5ffUXny_EhJ6VjR0HXc4KLvzjikEw>