This document outlines the changes made to Chez Scheme for Version 7.4d since Version 7.4.
Version 7.4d is available for the following platforms:
This document contains three sections describing significant (1) functionality changes, (2) bugs fixed, and (3) performance enhancements. A version number listed in parentheses in the header for a change indicates the first minor release or internal prerelease to support the change.
More information on Chez Scheme and Petite Chez Scheme can be found at http://www.scheme.com, and extensive documentation is available in The Scheme Programming Language, 3rd edition and the Chez Scheme Version 7 User's Guide.
The configure script used when installing Chez Scheme from a tarball now forces the executable to be rebuilt to link against local libraries by default. Use the --noforce-relink to avoid rebuilding the executable.
Windows builds of Chez Scheme now link against the msvcr90.dll C run-time library. Manifests are incorporated directly into the Chez Scheme dll and exe files, which should allow Windows to find the C run-time library in the same directory as the Chez Scheme dll and/or exe file if the run-time library is not already installed on the system. For the threaded version, the pthread library also links against msvcr90.dll and has been renamed accordingly to avoid conflicts with versions built against different C run-time libraries.
Static libraries linked against the static libcmt are also available, as well as static libraries built to link against msvcr90.dll.
Four new C library operators have been added for converting 32- and 64-bit integers from their Scheme representations:
An error is signaled if a 32-bit value is not in the range -231 through 232 - 1 or a 64-bit values is not in the range -263 through 264 - 1.
Simiarly, four new C library operators have been added for converting 32- and 64-bit integers to their Scheme representations:
Each returns a Scheme exact integer whose value is x. The arguments are signed or unsigned 32- or 64-bit C integers, as appropriate.
The month field of a date record, e.g., one returned by current-date, runs from 1 through 12 rather than 0 through 11, for compatibility with SRFI 19.
Requesting monotonic no longer fails on Linux systems that do not support monotonic clocks; on such systems, the real-time clock is now used instead. All of the high-precision time procedures now fall back on older time mechanisms when requesting high-precision timers fails.
The expression editor now binds the common delete-key sequence (Esc[3~) to ee-delete-char and escape followed by the same sequence to ee-delete-sexp. The effect of this is that the delete key should now delete forward rather than backward. The backspace key should still delete backward.
New bindings have also been added for the home and end keys of certain terminal emulators, including the Gnome terminal.
The top-level-value and top-level-bound? procedures now recognize as bound a variable assigned by a file compiled in one session and loaded into another session---even if the variable was not defined.
A bug in the handling of the port "beginning of line" flag on unbuffered output ports, resulting in missing or extra newlines being emitted by fresh-line, has been fixed.
The expression editor disables automatic margins (i.e., automatic line wrapping) when possible so it can use the last column without scrolling the display. Unfortunately, when automatic margins are disabled in the MacOS X Terminal application, they are disabled simultaneously for all windonws, not just for the current window, causing problems when the expression editor is running in one window and long lines are printed in another. The expression editor now disables automatic margins only temporarily while writing text to the last column, reducing (though not entirely eliminating) the possibility that other windows are affected.
A bug that caused corruption of the heap and typically resulted in an "unrecoverable invalid memory reference" while using the R6RS eq hashtable interface has been fixed.
The expression editor no longer returns end-of-file for an entry containing only a single commented-out datum.
The expression editor now properly closes the clipboard after a paste (control-v) operation, i.e., no longer prevents new items from being copied to the clipboard.
A bug that could cause exact->inexact to improperly round an exact value halfway between two floating-point values has been fixed.
A bug resulting in an "undefined for zero" error when the optional column width specifier in a tabulate directive is zero, e.g., ~1,0t, has been fixed.
A bug that caused ash to return the wrong result for word-sized or greater negative (right) shifts of large powers of two has been fixed.
A bug in the expander that sometimes resulted in an internal error ("source-wrap ae/x mismatch") has been fixed.
A bug in the compiler that caused it to treat the return value of compile as true in test context has been fixed.
open-input-file, open-output-file, and related procedures now use the default file buffer size as determined by the maximum of the stdio.h constant BUFSIZ and 4096, often resulting in increased throughput.
A better choice of register assignments has resulted in measurable improvement in x86 performance. Actual improvements differ from one program to another, and we've seen anything from -9% descreases in speed to 36% increases, with increases of 5-15% appearing typical.