[plt-scheme] reading a whole file

Eli Barzilay eli at barzilay.org
Tue Nov 11 00:50:14 EST 2008


On Nov 10, Ben Goetter wrote:
> Thomas Chust wrote:
> > what about adding support for memory mapping to PLT Scheme? This would
> > allow you to turn a whole file into a mutable or immutable byte string
> >   
> Only helpful for byte files, or for those rare text files whose encoding 
> matches that of PLT Scheme's UCS-4 strings.  I agree, would certainly 
> address the performance issues mentioned.

Another problem is that the memory must be out of the GC's hand, which
adds another layer of complication.  Also, I don't see how this kind
of a `mutable' byte string is useful -- it's only in rare cases that
you need to edit things in-place.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



More information about the plt-scheme mailing list