Re: My experiences with Rust

From: Vadim Goncharov <vadimnuclight_at_gmail.com>
Date: Fri, 22 Aug 2025 21:29:42 UTC
On Fri, 22 Aug 2025 19:37:11 +0000
"Poul-Henning Kamp" <phk@phk.freebsd.dk> wrote:

> --------
> Vadim Goncharov writes:
> 
> > Why it should be reinvented-wheel-bicycle "nvlist" instead of CBOR, RFC
> > 8949  
> 
> Because CBOR is just another kind of binary data structure, and we are
> trying to get away from that ?

We are trying to get away from ad hoc binary "C structures", not from "binary"
per se. It's XXI century, text only formats are not sifficient now.

> Any format you cannot open in a text-editor is by definition a non-starter.

No. Any format you could not *securely parse* in kernel is by definition a
non-starter. And minimal CBOR codec (e.g. queue(3)-based) takes just several
hundreds of C code where it is hard to get security errors - no text format
parser in kernel can ever compare to this.

And nobody needs to open "format" *directly* in text editor - as CBOR is
seamlessly converted to/from text-form EDN (extended diagnostic notation, a
superset of JSON), that sounds like a requirement to open ELF binary directly
in text editor instead of just putting (dis)assembler into pipeline.

-- 
WBR, @nuclight