[gambit-list] Conformance to the R5RS

egarrulo egarrulo at gmail.com
Mon Jun 17 08:06:02 EDT 2013


Hello everyone,

I'm a newcomer to Scheme and I was playing Gambit.

While fiddling around, I have stumbled upon a Scheme file whose goal
is to test an implementation's conformance to the R5RS:

http://sisc-scheme.org/r5rs_pitfall.scm

The Gambit interpreter passed all tests but the 8.3 (which could be a
feature: read the file for explanations) and saving for a warning,
whilst the Gambit compiler failed two more tests. Here is the
session:

---- TEST SESSION STARTS HERE
$ cat ~/.gambcini
(load "~~/lib/syntax-case")
$ gsi r5rs_pitfall.scm
...
Failure: 8.3, expected '1', got '2'.
Map is call/cc safe, but probably not tail recursive or inefficient.
$ gsc -exe r5rs_pitfall.scm
$ ./r5rs_pitfall
Failure: 1.1, expected '0', got '1'.
...
Failure: 1.3, expected '#t', got '#f'.
...
Failure: 8.3, expected '1', got '2'.
Map is call/cc safe, but probably not tail recursive or inefficient.
$ gsc -v
v4.6.8 20130430024640 i686-pc-linux-gnu "./configure
'--enable-single-host' '--enable-c-opt' '--enable-multiple-versions'
'--prefix=/home/egarrulo/bin/gambit/gambit-4.6.8'"
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-targets=all --with-arch-32=i586
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)
$ cat /etc/debian_version
6.0.7
---- TEST SESSION ENDS HERE

Any comments? Thanks for your attention.



More information about the Gambit-list mailing list