This looks excellent!  Here's a few small points:


1) Allow a running program to retrieve this same information as a Scheme object by calling a procedure, which allows the program to customize itself.  

2) Make it clear if stand-alone compiled programs written in Scheme may, must, should, or should not support this SRFI.  If so,  the compiler will have to effectively synthesize the procedure mentioned in #1 at compile time.    

3) Return non-sexp lines as (non-parsable "blah blah blah") rather than just discarding them, as there may be valuable information in them.

4) Add "compile-command" so that systems like Chicken and Gambit with standalone compilers can be accommodated.

5) Since there is no limit on the length of lines (and modern *ix tools impose none), you might as well remove support for multi-line S-expressions.  This will encourage people to use the "Hacks for lists" style, which should be called "Simplifying complex lists".

6) Consider removing support for nested lists also for the same reason.  (Maybe you meant to, but the Specification part doesn't actually say that.

7) Platform support is kind of a mess.  I'd get rid of plain "platform" and add "platform-userland".  The number of bits in a platform doesn't really tell you enough because different fundamental types can have different sizes: I'd go with platform-(memory-)model a la the features list: lp64, llp64, ilp32, etc.

8) For the sake of unambiguity, private properties should use / or something besides - to connect the name(space) with the property name:  fantastic-scheme/POM.

This is more controversial because it isn't known at compile time:  what about adding uname?


On Mon, Oct 7, 2019 at 1:01 AM Arthur A. Gleckler <xxxxxx@speechcode.com> wrote:
Scheme Request for Implementation 176,
"Version flag,"
by Lassi Kortela,
is now available for discussion.

Its draft and an archive of the ongoing
discussion are available at
<https://srfi.schemers.org/srfi-176/>.

You can join the discussion of the draft
by filling out the subscription form on
that page.

You can contribute a message to the
discussion by sending it to
<xxxxxx@srfi.schemers.org>.

Here's the abstract:

  This SRFI defines a standard
  command-line flag to get version
  information from a Scheme
  implementation.  The output is
  Line-oriented S-expressions which are
  easy to parse from Scheme, C, and
  shell scripts and can co-exist with
  non-S-expression output.  A standard
  vocabulary is defined; extensions are
  easy to make.

Regards,


SRFI Editor