[Larceny-users] relationships between Larceny, ERR5RS, and R6RS
Felix Klock
felixluser at pnkfx.org
Thu Sep 24 09:50:00 EDT 2009
David-
In general, importing R6RS libraries into Larceny's default mode does
not work out of the box; moreover, the only way we have focused on
making it work is in the R6RS and ERR5RS modes, not the R5RS mode.
But, many of the procedures added in R6RS are present in Larceny's
default environment when in R5RS mode.
Have you tried invoking the procedures associated with the bytevector
library, without importing anything?
E.g.
$ larceny
Larceny v0.97 "Funny in the Head" (Aug 19 2009 04:24:46,
precise:Posix:unified)
larceny.heap, built on Wed Aug 19 04:26:48 EDT 2009
> (native-endianness)
little
> (let ((b (make-bytevector 8))) (bytevector-ieee-double-set! b 0
3.14 'little) b)
#vu8(31 133 235 81 184 30 9 64)
> (let ((b (make-bytevector 8))) (bytevector-ieee-double-set! b 0
3.14 'big) b)
#vu8(64 9 30 184 81 235 133 31)
>
-Felix
On Sep 24, 2009, at 7:01 AM, David Rush wrote:
> So I want to load the R6RS bytevector library into a vanilla (R5RS)
> Larceny. From a code read it seems like
>
> (require 'rnrs/bytevectors)
>
> ought to get the job done, but it does not. What I get is the error
>
> Error: Could not locate library: rnrs/bytevectors
>
> when (current-require-path) is the default
>
> ("lib/R6RS" "lib/SRFI" "lib/Ffi" "lib/Base" "lib/Standard" "lib"
> "lib/Debugger" "lib/SLIB")
>
> Can I do this without moving into ERR5RS mode? How?
>
> david rush
> --
> GPG Public key at http://cyber-rush.org/drr/gpg-public-key.txt
>
> _______________________________________________
> Larceny-users mailing list
> Larceny-users at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/larceny-users
More information about the Larceny-users
mailing list