From nobody Thu Sep 12 19:48:59 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 4X4SgV6j8mz5WdTb for ; Thu, 12 Sep 2024 19:49:10 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X4SgV3WnCz4vTR; Thu, 12 Sep 2024 19:49:10 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=citron; t=1726170542; x=1726837208; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:openpgp:blahblahblah:author:from: subject:date:to:cc:resent-author:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-reply-to:resent-message-id:in-reply-to: references:mime-version:content-type:content-transfer-encoding: content-disposition:content-id:content-description:message-id: mail-followup-to:openpgp:blahblahblah; bh=PvwNSI89k8x3oI512NwPD8XSyTwFB9Wt90uKmcQ9P0E=; b=dGzpvQlPGm4xswMroQp8tE5a1MZe5rABBSpcD/09i9+erdOEhQNL6um7qIxMEAnbQ2fQeNl2 20TSLZpTLPGkv7o+Gqh+IkF6+Rl+GsF9EwHbE6csBK3FNEP3SvE1QrbAji1/GU/ISBL08+pQIV DtUSg4ZiPXdlKjSzs/zlrAOkUP29mMCr+iHBM6wnIMM9L7y1MCaMPX4s/n0VjDWw6yfh2eX4hh 0d/XY0Hi5xdWaYef0IEEu4j7a3nVSnFxJFM2LQtFCwC4zITohZjdTmVyJLBaIV2+lp8Lxy49HO TJ3oCsBdA794FxnTmDPpitWbOdV8oRwiZG0FQ5c2CUVvNDgg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=orange; t=1726170542; x=1726837208; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:openpgp:blahblahblah:author:from: subject:date:to:cc:resent-author:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-reply-to:resent-message-id:in-reply-to: references:mime-version:content-type:content-transfer-encoding: content-disposition:content-id:content-description:message-id: mail-followup-to:openpgp:blahblahblah; bh=PvwNSI89k8x3oI512NwPD8XSyTwFB9Wt90uKmcQ9P0E=; b=7Z1o4PmfwojBAVfd6x4pIRRQPVXzWaMMFEXc72Oj1NBXvnmQWo1zLEWtlNKcOuFV16iIPe7K 64aHKnclnKfDDA== Date: Thu, 12 Sep 2024 21:48:59 +0200 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: Alan Somers Cc: "B. E." , Aryeh Friedman , FreeBSD Mailing List Subject: Re: Some rather stupid questions about Rust and FreeBSD Message-ID: <20240912194859.8xZAdMX3@steffen%sdaoden.eu> In-Reply-To: References: User-Agent: s-nail v14.9.25-608-ge479530e8d OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE] X-Rspamd-Queue-Id: 4X4SgV3WnCz4vTR 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 Alan Somers wrote in : ... |Systems programming IS the problem domain that Rust is uniquely good |for. Nor do we have a solution in search of a problem. As I've |explained elsewhere on this list (but you can 100% be forgiven for |overlooking; there've been a lot of posts), I've already encountered |many problems within FreeBSD that could've easily been solved by Rust. Let me be the one who doubts this, please. |Being experienced with both C and Rust, but being forced to use the |former, feels like a real handicap. To recap: | |* I considered writing the fusefs test suite in Rust. It would've |been well-suited. But I was forced to do it in C++ instead. |* I tried to write a prometheus exporter for CTL in Rust. But when I |realized that the API is unstable, I had to abandon using ports, which |meant that I had to abandon using Rust, and use C instead. |* I had to fix several file-parsing and memory-handling bugs in ctld. |Just to help myself understand the code, I rewrote part of it in Rust. |The portion that I rewrote took about 5.5x less code and was free of |memory-handling bugs. But I can't finish it, because the src tree |currently only allows C and C++. This sounds to me as if you have a natural relationship with some programming language. Congratulations, this makes the most fun. |* ALL of the recent security advisories involved memory handling bugs. |We obviously can't rewrite all of the affected components overnight, |but those SAs should serve as a wake-up call that C is insufficient |for developing reliable and secure software. Any components that we |can rewrite will improve the quality of our project. Here you seem to pamper over to what seems to me realities after looking in more detail to the list of problems you mentioned. ... |I've noticed that the most vociferous opposition to using Rust in |FreeBSD comes from users like yourself: casual users who do little to |no development of FreeBSD. If you aren't a developer, then what are This is why i will not post no more, and i already said so, that i have no voice that is (and this is understandable and even, well, good), but your above claims seem to contradict reality even. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)