From nobody Tue Sep 3 13:03:20 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wym6G0j5Jz5PTKj for ; Tue, 03 Sep 2024 13:04:06 +0000 (UTC) (envelope-from ske-89@pkmab.se) Received: from mail1.bemta37.messagelabs.com (mail1.bemta37.messagelabs.com [85.158.142.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail1.bemta37.messagelabs.com", Issuer "DigiCert TLS RSA SHA256 2020 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wym6D72PVz4ZJD for ; Tue, 3 Sep 2024 13:04:04 +0000 (UTC) (envelope-from ske-89@pkmab.se) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ske-89@pkmab.se designates 85.158.142.113 as permitted sender) smtp.mailfrom=ske-89@pkmab.se X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRWlGSWpSXmKPExsVyYCl7k64D5/U 0g1PXhSy2b/7H6MDoMePTfJYAxijWzLyk/IoE1owZK/+yFKxhruh694CtgfE+UxcjF4eQwHRG iWP3v0E5CxgldvxrZu5i5ORgExCV2Nd9F8wWFjCWWLv1E2MXIweHiIC8xILz9iBhFgFdifvT2 9hAbE6BfImuU7/BbAkBBYkvO+axgti8AoISJ2c+YQGxmQV0JN71PWCGsOUlmrfOZgYZySwgJX GyyRSi3FRiwpTbTCC2kICMxKVFx9ghRgZLvP7eyDKBkX8WkqmzkEydhWTqLISpCxhZVjGaFac WlaUW6VroJRVlpmeU5CZm5uglVukm6qWW6ublF5Vk6BrqJZYX66UWF+sVV+Ym56To5aWWbGIE hm1KcWLYDsbJ+xv1DzFKcjApifLqPrqWJsSXlJ9SmZFYnBFfVJqTWnyIUYaDQ0mCN5rjepqQY FFqempFWmYOMIZg0hIcPEoivIpsQGne4oLE3OLMdIjUKUZFKXFeZhaghABIIqM0D64NFreXGG WlhHkZGRgYhHgKUotyM0tQ5V8xinMwKgnzxoNs58nMK4Gb/gpoMRPQ4vVOV0EWlyQipKQamPw WL1E7MzXj/JzP3TKzYw3V74Rvnj1J8UvyD6VdZbFVi30kNZ8cfCyV4vwvopN/id9zp/umd4SO 7l2zfEeBVfXzrFn3BZbc5I487Om10va0fdbU0oXrZ/5Q0UpX/bNTIlxA3euVpuCsxXInn7kJZ yeJiHXOW6luet++uCv2t+FFmRdl/+1dAjqCJ3g9zyv9oFnL58Ek/MI38ZqhwjExH8b9QT0VEy WY+pZLRobJnXfeKKO+7Vly9gzx+fHSk/+9rwnz9W32/LFeQmY6t6fY4W/ndXl27ExcNJP7L0P xCZ/SB4u/TK5+uHiu2nuBw3cXBR6S9vpt7967dPLOby5394suKtlmXte6956/pj7XbSWW4oxE Qy3mouJEAPziRr5WAwAA X-Env-Sender: ske-89@pkmab.se X-Msg-Ref: server-10.tower-725.messagelabs.com!1725368640!29810!1 X-Originating-IP: [192.165.7.130] X-SYMC-ESS-Client-Auth: outbound-route-from=fail X-StarScan-Received: X-StarScan-Version: 9.114.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 11340 invoked from network); 3 Sep 2024 13:04:00 -0000 Received: from unknown (HELO PSY-APP020.precio.lan) (192.165.7.130) by server-10.tower-725.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 3 Sep 2024 13:04:00 -0000 Received: from berenice.precio.lan ([172.27.68.201]) by PSY-APP020.precio.lan with Microsoft SMTPSVC(10.0.17763.1697); Tue, 3 Sep 2024 15:03:59 +0200 Received: from pkmab.se by berenice.pkmab.se with uucp id aa12667 for ; Tue, 3 Sep 2024 15:03:59 +0200 (CETDST) From: ske-89@pkmab.se Subject: Re: The Case for Rust (in the base system) To: freebsd-hackers@freebsd.org Date: Tue, 3 Sep 2024 15:03:20 +0200 (CETDST) In-Reply-To: <202409031131.483BVdax004602@critter.freebsd.dk> from "Poul-Henning Kamp" at Sep 3, 24 11:31:39 am X-Mailer: ELM [version 2.4 PL23] List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <202409031503.aa12667@berenice.pkmab.se> X-OriginalArrivalTime: 03 Sep 2024 13:03:59.0706 (UTC) FILETIME=[BE01C3A0:01DAFE01] X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.26 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.98)[-0.981]; NEURAL_HAM_SHORT(-0.98)[-0.976]; R_SPF_ALLOW(-0.20)[+ip4:85.158.136.0/21:c]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; FROM_NO_DN(0.00)[]; ASN(0.00)[asn:16509, ipnet:85.158.142.0/24, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[85.158.142.113:from]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; DMARC_NA(0.00)[pkmab.se]; R_DKIM_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_XOIP(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[85.158.142.113:from] X-Rspamd-Queue-Id: 4Wym6D72PVz4ZJD With all this talk about Rust in the OS kernels, can someone explain to me why Rust can't simply produce object files that can be linked into the kernel like any C object file? (If you just avoid calling Rust-specific libraries, just like you don't call the C standard library either from within the kernel.) I haven't worked with Rust, and the introductions to Rust that I have read do not discuss this. /Kristoffer Eriksson