From nobody Sat Aug 24 03:52:19 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 4WrNLN4sk8z5V3Ls for ; Sat, 24 Aug 2024 03:52:28 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from mail.infocus-llc.com (mail.infocus-llc.com [IPv6:2604:3a00:2:1::2:13]) (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 4WrNLN22gYz4FTJ; Sat, 24 Aug 2024 03:52:28 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Authentication-Results: mx1.freebsd.org; none Received: from draco.over-yonder.net (c-174-180-135-60.hsd1.ms.comcast.net [174.180.135.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.tarragon.infocus-llc.com (Postfix) with ESMTPSA id 4WrNLD64TrzCtY; Fri, 23 Aug 2024 22:52:20 -0500 (CDT) Received: by draco.over-yonder.net (Postfix, from userid 100) id 4WrNLC4lHYz116c; Fri, 23 Aug 2024 22:52:19 -0500 (CDT) Date: Fri, 23 Aug 2024 22:52:19 -0500 From: "Matthew D. Fuller" To: Alan Somers Cc: freebsd-hackers@freebsd.org Subject: Re: Announcing freebsd-rustdate Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/2.2.13 (2024-03-09) 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)[]; ASN(0.00)[asn:33069, ipnet:2604:3a00::/32, country:US] X-Rspamd-Queue-Id: 4WrNLN22gYz4FTJ On Fri, Aug 23, 2024 at 05:15:11PM -0600 I heard the voice of Alan Somers, and lo! it spake thus: > > * Revision control. As a man of culture and taste, I'm naturally doing my work in bzr rather than git. Maybe I can try and get a real project setup over the weekend, but for now I've at least pushed my current trunk up to https://code.launchpad.net/~fullermd/+junk/rustdate > * Tests. One of the things I like best about Rust is its testing > infrastructure, and one of the things that scares me most about > freebsd-update is its total lack of tests. It has me afraid to > change anything. Rustdate does currently have some tests. Mostly of the easy to test stuff, like parsing the files from the server, and the various internal data manipulation. Testing the unimportant stuff like actually manipulating the system, well, that's harder :) And at least you start out in a less scary place than trying to change the .sh. Things happen in local variables you pass around, rather than global vars and "well-known" temp files that get written in one place and arbitrarily read in another. And being a compiled language gives you a lot of compile-time complaining when you change function args or data structures, instead of weird runtime glitches 8 months later. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.