Re: My experiences with Rust
- Reply: Poul-Henning Kamp: "Re: My experiences with Rust"
- In reply to: David Chisnall : "Re: My experiences with Rust"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Aug 2025 18:48:48 UTC
On Fri, 22 Aug 2025 18:26:45 +0100
David Chisnall <theraven@FreeBSD.org> wrote:
> 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.
Why it should be reinvented-wheel-bicycle "nvlist" instead of CBOR, RFC 8949,
Internet Standard 94 ? It's forgivable that nvlists are used in ZFS code, as
nothing better existed two decades ago (just as with XML at same times, not
even JSON), but that should be strictly confined to Solaris port and not be
used anywhere else, not even to mention security vulnerabilities.
BTW, libxo even has some CBOR code inside.
--
WBR, @nuclight