Discussion:
[Larceny-users] relationships between Larceny, ERR5RS, and R6RS
David Rush
2009-09-24 11:01:41 UTC
Permalink
So I want to load the R6RS bytevector library into a vanilla (R5RS)
Larceny.
Felix Klock
2009-09-24 13:50:00 UTC
Permalink
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
So I want to load the R6RS bytevector library into a vanilla (R5RS)
Larceny.
David Rush
2009-09-24 18:22:08 UTC
Permalink
Post by Felix Klock
Have you tried invoking the procedures associated with the bytevector
library, without importing anything?
Nope. Thanks to yours & Will's answers I will. The documentation in
UserManual refers to the R6RS libraries for bytevector primitives, but
I must have missed the bit that says they are already there in R5RS
mode.

Sorry for wasting everyone's time.

david rush
--
GPG Public key at http://cyber-rush.org/drr/gpg-public-key.txt
w***@ccs.neu.edu
2009-09-24 14:00:36 UTC
Permalink
Post by David Rush
So I want to load the R6RS bytevector library into a vanilla (R5RS)
Larceny.
Why? Apart from the endianness syntax, which is (in Larceny) equivalent
to quote except for some extra run-time overhead needed to implement the
deprecation warning, everything that's exported by (rnrs bytevectors) is
already available in Larceny's R5RS mode at startup.
Post by David Rush
Can I do this without moving into ERR5RS mode? How?
No.

Will
Loading...