[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enviroment inquiry: inquiring about that too
- To: srfi-112@xxxxxxxxxxxxxxxxx
- Subject: Re: Enviroment inquiry: inquiring about that too
- From: David Banks <amoebae@xxxxxxxxx>
- Date: Sat, 18 May 2013 18:43:58 +0100
- Delivered-to: srfi-112@xxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=kuH4C+A6QsANNlsmjzmR1CeHbu1G0yyMwPeoL7J2T0c=; b=zjwIBDJq6oviLdiBAlYW4s3e+6XZuPWsa9vGGJs2giTMYHs6CadC11IPCC5n1G67DT Lltg/IYG0vXbEdP30TRhMOxu6oFD0TcFdG0PiYrXoh5BZaUXYIPlOcH+uour85VKpXwo 6wUqoOAKaJFpn+X4rxzi7t8db2IWAZv91Jvxa1IYfhhF6Sy9xsWkt9Q9+5v3B6z/ePsx iLZ+vLgINOAtRqC9XEQ/+8skzKUFN+K7O0vIj7SkEld6sGi3ax1dDFUZKhLVLJGCxSCg duRiwI1wi4/KjWG6Y3CK5vgBbsr7/W4UuIMieETdI3v5NNFWrdpFYy1z3mpFNeAsVUji d0JQ==
- In-reply-to: <20130517181118.GC16894@xxxxxxxxxxxxxxxx>
- References: <20130517181118.GC16894@xxxxxxxxxxxxxxxx>
On 17 May 2013 19:11, John Cowan <cowan@xxxxxxxxxxxxxxxx> wrote:
> Is everyone happy with this SRFI as well?
Looks good. I think it might be worth giving non-normative examples
of output for the various procedures. This shouldn't be construed as
providing some kind of canonical list of OS types (for instance), but
it's not a lot of use if Rhinoceros Scheme returns "Windows" as a
result of (os-type) and Diplodocus Scheme returns "win32". Even just
specifying "windows", "linux", "macosx" as potentially valid results
for OS-TYPE will improve the usefulness of the SRFI a lot. i.e.
there's still scope for implementors to break this convention, but if
they don't need to then so much the better.
For instance, the CPU-ARCHITECTURE can't really be interpreted without
knowing the convention used by the OS. Knowing likely values for the
OS-TYPE means you can at least base your cond-expand clauses on that.
In strict standard terms, programs that relied on this would have
indeterminate results according to the spec, but that wouldn't stop
them being useful. For 100% reliable behaviour it would only be safe
to cond-expand based on implementation/version combinations, which is
a nightmare to use.
Providing example output would also increase the usefulness of the
SRFI as a reference for users, for instance I currently have no idea
what a likely result of (c-memory-model) would look like (except that
it can be #f).
> In particular, if anyone knows how to emulate uname() on Windows, I
> could add that information. Of course, Cygwin knows how, but I don't
> much feel like digging through the Cygwin sources to find out.
So the main call seem to be GetSystemInfo(), and it looks like it uses
GetComputerNameA() elsewhere in the source to get the computer name
(which apparently returns the NetBIOS name)...
David Banks <amoebae@xxxxxxxxx>