Re: PROPOSAL: dot-proc interface [was: /proc stuff]

Tim Jansen
2001-11-04T18:26:21Z

On Sunday 04 November 2001 18:41, you wrote:
> The "fuzzy parsing" userland has to do today to get useful information
> out of many proc files today is not nice at all.

I agree, but you dont need a binary format to achieve this. A WELL-DEFINED
format is sufficient. XML is one of them, one-value-files another one. The
"fuzzy parsing" only happens because the files try to be friendly for human
readers.

> It eats CPU, it's error-prone, and all in all it's just "wrong".

How much of your CPU time is spent parsing /proc files?

> However - having a human-readable /proc that you can use directly with
> cat, echo, your scripts, simple programs using read(), etc. is
> absolutely a *very* cool feature that I don't want to let go. It is just
> too damn practical.

You shouldn't use them in scripts because they are likely to break. That's
the whole point. At least not when you want to distribute the scripts to
others. And BTW the one-value-files are much easier to parse for scripts than
any other solution that I have seen so far, including the current /proc
interface.

bye...