From nobody Sun Aug 4 18:09:32 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 4WcSJp0YpVz5SmPm for ; Sun, 04 Aug 2024 18:09:46 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WcSJn5WlLz4Jc8 for ; Sun, 4 Aug 2024 18:09:45 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-4f50dd3eab9so3361864e0c.1 for ; Sun, 04 Aug 2024 11:09:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722794984; x=1723399784; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6L4NWeWj2Hhg7/mlnIJ+yski0Kq4sGqVIeVIUIaEMr8=; b=RQVoA8PlMnGfbY1rwdLUrQCu5u7iXD0r2TNn0KTeDHNrZYyfM/CBsV5NvHT5mhdsyU apxX33dTxXO9yjUJrZOkXgTWy+DZL5GSN3fAsiwvou7/cu/NxL1GKW7vpISXWAj2ecTL ZcrcFzTOHwtG5src23Bsok3eC+im2xAmrHY0WEpSc2EyPL44hHftREyJLqazDRNUC/Vz IiKCgmAB760Jiks6QxBr5s4EW1yN0q3YFm4bATpShdeqg5UYSOpV3g+2h+3XKrfdBqmN I0K+6d+J9E3c3mT9aMx9fENW1f5RW2iyl38odFfJKsZhBFVx1nQ5TugyMz5q+uwPDquu ovlQ== X-Gm-Message-State: AOJu0Yz6P0ii6RNrHKRyG7GCBOFPkeKS3lJIxJVpYYSS1lzDRs8zDOhJ zDc7CGy2hgtcR/JN0Da2mqyzEl2MGLRKo+tC6apMaOfRMxRBPXtagd8Qzezt6hKCod+TBOU7L78 1BBf9yzI5TeyL8dgjxNLrL9FRlS2FnQ== X-Google-Smtp-Source: AGHT+IEw3GYaroDLv9rM1aXkz8ucHnnVi3HD68hVUSY9AA+hi6Ol5OLy8AuO6MyLiNO+UwD556iSDS/5K3rStaQmkRo= X-Received: by 2002:a05:6122:2a56:b0:4ed:14e:9342 with SMTP id 71dfb90a1353d-4f89ff40db3mr9513487e0c.1.1722794984524; Sun, 04 Aug 2024 11:09:44 -0700 (PDT) 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 References: <202408041800.474I0HUM050473@critter.freebsd.dk> In-Reply-To: <202408041800.474I0HUM050473@critter.freebsd.dk> From: Alan Somers Date: Sun, 4 Aug 2024 12:09:32 -0600 Message-ID: Subject: Re: A Demo of rust-in-base To: Poul-Henning Kamp Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4WcSJn5WlLz4Jc8 On Sun, Aug 4, 2024 at 12:00=E2=80=AFPM Poul-Henning Kamp wrote: > > -------- > Alan Somers writes: > > Due to all of the recent discussion of using Rust for code in the > > FreeBSD base, I've put together a demo of what it might look like. It > > demonstrates: > > Awesome! > > But to be blunt: Is it worth the effort, relative to concentrating > on a pkg-based distribution of FreeBSD, where these things could > be built with the regular "COTS" Rust ecosystem, without having to > do all this extra work and adding all this extra maintenance load ? If it weren't for my experience with CTL, I would say no. But CTL stuff _cannot_ exist in the ports tree, since the ioctl interface is unstable. Similarly, stuff like the fusefs test suite can't exist in the ports tree, either. It needs to be updated in lock-step with even minor kernel changes. If those are to use Rust, they need to reside in the same git repository as freebsd-src.