Live data from Hacker News

The Case for Rust in the base system

mail-archive.freebsd.org

151–155 of 155 posts

Re: The Case for Rust in the base system

#152

Earlier quoted context omitted.

The OP has since elaborated: > 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. Each test case has a client thread that does normal file system access, and a server thread that implements…

Mocking is a horrible principle. It is probably the worst of the various types of test doubles, in terms of the kind of test design they imply. Software engineering would be significantly better off, IMO, if mocking were so awkward that no one bothers to do it, ever, in any language.

I don't fully agree but what I will say is that I perceive mocking to be not that easy or good in Rust, so it is surprising to me to see it cited positively.

Re: The Case for Rust in the base system

#153
post #22

Earlier quoted context omitted.

Yeah, but Rust tier 1 is only x86, x86_64, and arm64. And only Linux. That excludes MIPS, PPC, and arm32, all of which FreeBSD continues to support to varying degrees. x86_64-FreeBSD is a Rust tier 2 "it might work" target, as are arm6/7 and PPC. MIPS is Rust tier 3 "we don't build for it or test on it."

Surely that's not set in stone right? Like FreeBSD could contribute money & resources to hook up CI machines to make it a tier 1 target?

I don't believe FreeBSD has the money, resources, or (sufficient) interest as a project to do so for the foreseeable future.

Re: The Case for Rust in the base system

#154
post #22

Earlier quoted context omitted.

Yeah, but Rust tier 1 is only x86, x86_64, and arm64. And only Linux. That excludes MIPS, PPC, and arm32, all of which FreeBSD continues to support to varying degrees. x86_64-FreeBSD is a Rust tier 2 "it might work" target, as are arm6/7 and PPC. MIPS is Rust tier 3 "we don't build for it or test on it."

My understanding of the tiers of support is based on the level of commitment from the community. That is, if the FreeBSD folks wanted to make it a Tier 1 target, they can, “If running the testsuite requires additional infrastructure (such as physical systems running the target), the target maintainers must arrange to provide such resources to the Rust project, to the satisfaction and approval of the Rust infrastructu…

I don't think FreeBSD has the resources (money/hardware/volunteer hours) or interest in providing that level of support.

Re: The Case for Rust in the base system

#155

Archive Link: http://web.archive.org/web/20240121220432/https://mail-archi... Just in case anybody else can not see the post. I have no idea if the post is hidden, deleted, or if the server is overloaded.

FreeBSD bug 276716 – mail-archive.freebsd.org permalink failures

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276716>

Post reply on HN