[Larceny-users] open-input-file "unable to open file" on 8GB file
William D Clinger
will at ccs.neu.edu
Fri Mar 11 08:27:07 EST 2016
David Rush wrote:
> I'm running larceny 0.98, for which I have written a number of logfile
> analysis programs, but I can't seem to get started on my latest (and
> largest) log file.
I was not aware of this problem, but Sven Hartrumpf's response is correct:
Larceny is unable to create or to read files larger than 2 GiB because it
was built in 32-bit mode, and the 2 GiB limit is built into the standard
32-bit libraries.
> Do I have to wait for 64-bit Larceny?
You won't be able to use Scheme's standard file i/o on files larger than
2 GiB until Larceny moves to 64 bits.
Sven suggested a workaround, however:
> A work-around (for bigloo) is to read from standard input (and not from a file),
> but I have not tested this with larceny.
I have confirmed that this workaround works in Larceny.
Will
More information about the Larceny-users
mailing list