From ... From: Erik Naggum Subject: Re: Streams as pipes? Date: 1999/05/26 Message-ID: <3136674790837348@naggum.no>#1/1 X-Deja-AN: 482148092 References: <4nyaidhxyy.fsf@rtp.ericsson.se> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * Raymond Toy | Is there a way of making a stream that behaves somewhat like a unix pipe? | Basically, I want a stream that works like a fifo: when writing to it, | the data goes to the end of the stream, but when reading, I read from the | beginning. if you use a Common Lisp implementation that supports the Gray Proposal for CLOSified streams, this is a trivial exercise. if you don't, you're basically out of luck. since the Gray Proposal is not quite standard, you'll need to use the manual with the Common Lisp implementation. if you're using Allegro CL 4 or higher, you might also want to ensure that the multiprocessing code can deal with such streams, which adds a very interesting amount of complexity, especially if you want bounds on the size of the FIFO and want writers to block if the reader doesn't read. feel free to drop me a line in either case if you use Allegro CL. #:Erik -- @1999-07-22T00:37:33Z -- pi billion seconds since the turn of the century