Date: Wed, 4 Sep 2024 06:56:12 -0400 From: Jan Knepper <jan@digitaldaemon.com> To: Mark Delany <x9k@charlie.emu.st> Cc: freebsd-hackers@freebsd.org Subject: Re: Rust: kernel vs user-space Message-ID: <78BC157F-6E30-49C4-931D-9EB539BD0322@digitaldaemon.com> In-Reply-To: <0.2.0-final-1725440949.866-0xb4bb20@qmda.emu.st> References: <0.2.0-final-1725440949.866-0xb4bb20@qmda.emu.st>
next in thread | previous in thread | raw e-mail | index | archive | help
D www.dlang.org ManiaC++ Jan Knepper > On Sep 4, 2024, at 05:09, Mark Delany <x9k@charlie.emu.st> wrote: > > I hesitate to step into this discussion but is it worth making the distinction between > Rust in the kernel and Rust in user-space? > > I can see the argument for introducing a "safer" language into the kernel and there are > very few candidates available: perhaps only Rust, C++ and Zig. Clearly if that step is to > be made, it probably should pick one language and run with it. > > That's one discussion. > > As for user-space, I find the rationale for Rust as the one-true-language-after-C far less > compelling as many CLIs and server programs can just as well be written in more accessible > languages such as go or perl or java or... > > Frankly I no longer write any CLI or server code in C even after decades of doing so > because the trade-off between development costs and performance is far less compelling in > user-space. If my once-a-week invocation of a command requires a bit more memory and CPU > than one written in C, is that really important compared to how much easier the command is > to maintain and enhance? > > Point being, on the matter of introducing Rust to FreeBSD, I think the distinction between > kernel and user-space is worth keeping in mind as they are quite different problems. > > > Mark. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78BC157F-6E30-49C4-931D-9EB539BD0322>
