This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: please take a look at (features)
- From: Jamison Hope <jrh at theptrgroup dot com>
- To: kawa mailing list <kawa at sourceware dot org>
- Date: Wed, 15 Oct 2014 00:47:03 -0400
- Subject: Re: please take a look at (features)
- Authentication-results: sourceware.org; auth=none
- References: <543DB6F9 dot 6080708 at bothner dot com>
On Oct 14, 2014, at 7:51 PM, Per Bothner <per@bothner.com> wrote:
> The R7RS procedure (features) returns a list of "supported features",
> such as may be used by cond-expand.
>
> I just added a bunch of feature names - including 'r7rs (yeah!).
> Specifically, I tried to provide sane platform-identifying
> names, such as for os, architeture and endianness.
> For example on my Fedora Laptop running Java 8 I get:
>
> (kawa kawa-1.14.1 complex exact-complex exact-closed ieee-float ratios
> full-unicode java-8 java-7 java-6 little-endian posix unix linux gnu-linux
> i386 x86-64 jvm r7rs srfi-0 srfi-4 srfi-6 srfi-8 srfi-9 srfi-11 srfi-16
> srfi-17 srfi-23 srfi-25 srfi-26 srfi-28 srfi-30 srfi-39
> string-normalize-unicode threads)
>
> Please try calling (features) on your platform, and let me know
> of any non-desirable results.
I find it mildly misleading that on x86-64 the features list includes 'i386.
I'm pretty sure that if you try to load a 32-bit library in a 64-bit JVM
(e.g. via JNA) it'll fail. But 'x86-64 is there, so as long as that's
consulted first it probably won't be an issue in practice.
I'm waffling over whether to suggest changing 'macos to 'macosx. Once upon
a time it was important to distinguish Mac OS X from the "classic" Mac OS,
but those days are long gone. Apple officially just calls it "OS X" now
(which would argue for 'osx), but I have sentimental attachment to having
"Mac" in the name of the operating system.
Hmm, Chicken calls it "macosx", so let's go with that.
Is anybody running one of the BSDs? I wonder what the "os.name" property
is there. (Maybe the "nix"/"nux"/"aix" check needs to add "bsd".)
> The "specification" is the non-normative Appendix B "Standard Feature Identifiers"
> on page 77 (of my pdf of) R7RS.
>
> You might also want to take a look at the relevant part of the source code:
> The initialization in kawa/standard/IfFeature.java of the coreFeatures ArrayList
> (currentlylines 105-220).
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
--
Jamison Hope
The PTR Group
www.theptrgroup.com