[plt-scheme] r6rs timer
Many thanks. Very clear.
When I said R6RS conformant, I ment source code that runs on all R6RS
implementations, not restricted to PLT only.
The two R6RS documents do mention "time" in their indices, nor anything
alike.
Hence when using "time" in a performance test suit, I must include a dummy
time macro, which I replace by an import from scheme/base when running with
PLT.
When the user runs the code with another implementation that does provide a
timer, she may replace the dummy macro by an import of that timer.
When the user runs the code with an implementation that does not provide a
timer, the dummy time macro evaluates its expression without producing
timing info.
Jos
----- Original Message -----
From: "Ken Dickey" <Ken.Dickey at whidbey.com>
To: "Jos Koot" <jos.koot at telefonica.net>
Cc: <plt-scheme at list.cs.brown.edu>
Sent: Thursday, August 28, 2008 8:18 PM
Subject: Re: [plt-scheme] r6rs timer
> On Thursday 28 August 2008 08:48:11 Jos Koot wrote:
>> For myself I usually use #lang scheme (because it is so compete)
>> However, sometimes I am asked to provide R6RS conformant code.
>> Then I use #!r6rs (with an anoying long list of imports)
>> But I can't find something like PLT's "time" macro in any of the R6RS
>> libraries. Does something alike live in R5RS? If so I would be much
>> obliged
>> if you would provide me a pointer. Thanks,
>> Jos
>
> R6RS library compatibility is still a bit in flux, but the basic strategy
> for
> importing implementation specific features is to define a
> *-compat.<impl>.ss
> file and have your program import library *-compat.
>
> You still need to set the the implementation specific search paths and
> possibly symbolic links.
>
> E.g. see attached process-compat.*.sls files which live in my "kend"
> directory.
>
> Use:
> (import (kend process-compat)
> ;; ...
> )
>
>
> Close enough?
>
> Cheers,
> -KenD
>
> PS: Note SRFI 97: "SRFI Libraries"
> http://srfi.schemers.org/srfi-97/srfi-97.html
>