Date: Fri, 22 Aug 2025 18:26:45 +0100 From: David Chisnall <theraven@FreeBSD.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: Konstantin Belousov <kostikbel@gmail.com>, hackers@freebsd.org Subject: Re: My experiences with Rust Message-ID: <E04D6E14-8EA1-446B-8C9C-762C9956F6D5@FreeBSD.org> In-Reply-To: <202508221712.57MHCPDl008201@critter.freebsd.dk> References: <aKiWZ1I3pqZSOsfk@kib.kiev.ua> <202508221712.57MHCPDl008201@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 22 Aug 2025, at 18:12, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>
> Aka: the guy who added kern.geom.confxml in 2002
XML is not great for generating or parsing, but we have nvlist infrastructure in the kernel and a nice library (and a less-nice library that you have to use if you link libzfs{core}) in base. I would love to see more interfaces to the kernel switch to using nvlists. They should be the default for *any* new kernel interface that isn’t 100% performance critical. Certainly any system-reporting or control-plane interfaces should be using nvlists.
David
[-- Attachment #2 --]
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">On 22 Aug 2025, at 18:12, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:<br><div><blockquote type="cite"><br class="Apple-interchange-newline"><div><span style="caret-color: rgb(0, 0, 0); font-family: SourceCodePro-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">Aka: the guy who added kern.geom.confxml in 2002</span><br style="caret-color: rgb(0, 0, 0); font-family: SourceCodePro-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"></div></blockquote></div><br><div>XML is not great for generating or parsing, but we have nvlist infrastructure in the kernel and a nice library (and a less-nice library that you have to use if you link libzfs{core}) in base. I would love to see more interfaces to the kernel switch to using nvlists. They should be the default for *any* new kernel interface that isn’t 100% performance critical. Certainly any system-reporting or control-plane interfaces should be using nvlists.</div><div><br></div><div><br></div><div>David</div><div><br></div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E04D6E14-8EA1-446B-8C9C-762C9956F6D5>
