Subject: Re: reading/writing bytes smaller than 8 bits?
From: Erik Naggum <erik@naggum.no>
Date: 2000/01/26
Newsgroups: comp.lang.lisp
Message-ID: <3157890572406899@naggum.no>

* Andrew Cooke <andrew@andrewcooke.free-online.co.uk>
| Ouch!  Next week I'm planning to write code that generates binary files
| to a certain standard (Midi music data).  I haven't checked the docs yet,
| but this post implies that there is no way to generate files with a
| specified binary format (at least that other people or other Lisps can
| use with certainty).  Is that correct?  What do people do when they need
| to write a formatted binary file?  Or does everyone use just Lisp
| programs ;-) ?

  locate your misplaced calm and _breathe_, mister, you're near hysterical.

  if you know that the medium is an 8-bit medium, opening a stream for
  writing to or reading from it as (UNSIGNED-BYTE 8) is guaranteed to
  produce the expected results by virtue of the insanity of not doing so.

  if you need control over the individual bits, you don't request a service
  where you explicitly say "do the smartest thing you can with my request".

  please realize that the Common Lisp community is more than 40 years old.
  collectively, the community has already been where every clueless newbie
  will be going for the next three years.  so relax, please.

#:Erik