home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / scheme / 2046 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.6 KB

  1. Path: sparky!uunet!stanford.edu!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!tmb
  2. From: tmb@arolla.idiap.ch (Thomas M. Breuel)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Re: random rant on random files
  5. Message-ID: <TMB.92Aug18171257@arolla.idiap.ch>
  6. Date: 18 Aug 92 21:12:57 GMT
  7. References: <9208130624.1.11214@cup.portal.com> <700@data.rain.com>
  8.     <16ocv6INNl87@agate.berkeley.edu> <701@data.rain.com>
  9. Sender: news@ai.mit.edu
  10. Reply-To: tmb@idiap.ch
  11. Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
  12.     Perceptive)
  13. Lines: 23
  14. In-reply-to: kend@data.rain.com's message of 17 Aug 92 23:00:56 GMT
  15.  
  16. In article <701@data.rain.com> kend@data.rain.com (Ken Dickey) writes:
  17.  
  18.    The creation operations return a "store" object.  All store objects
  19.    are treated the same.  For files, the bits stay on the disk (mod
  20.    buffering).  STORE->FILE writes the contents of a store (the bits)
  21.    into a file. [...]  As stores are random, binary i/o, everything is
  22.    mapped to positive integers.  If you want to write a Scheme object
  23.    (e.g. a vector or a negative integer, etc.) it is up to you to do
  24.    the representation mapping.
  25.  
  26. It seems to me that stores are the usual binary streams, but that you
  27. are required to give an offset (a "seek" address) with every
  28. read/write operation.
  29.  
  30. Personally, I prefer the old-fashioned binary stream interface; it is
  31. the natural interface to things that may or may not be random access
  32. and that may or may not be bidirectional. Stores look too much like
  33. binary arrays, and, to me, the interface does not clearly reflect the
  34. costs of the underlying operations.
  35.  
  36. What is wrong with binary streams?
  37.  
  38.                 Thomas.
  39.