From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!algonet!newsfeed1.bredband.com!bredband!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: read-sequence Date: 09 Sep 2002 17:03:09 +0000 Organization: Naggum Software, Oslo, Norway Lines: 20 Message-ID: <3240579789398792@naggum.no> References: <3D7C3507.4040405@alum.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: maud.ifi.uio.no 1031590990 25416 129.240.64.16 (9 Sep 2002 17:03:10 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 9 Sep 2002 17:03:10 GMT Mail-Copies-To: never User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.lisp:40078 * Adam Warner | There is a way around this. You use read-sequence in stages, manually | extending the vector each time if there is still data remaining on stdin. This is massively wasteful. If you have this kind of need, which indicates that something is wrong at the outset, read a bunch of chunks and concatenate them at the end. The function `concatenate´ should compute the sum of the lengths of its arguments and copy each chunck only once. | Lisp is so high level that I just get surprised when this kind of | functionality is not built in. It is because it is high-level that you do not need these things. It appears that you are still thinking in very low-level terms. -- Erik Naggum, Oslo, Norway Act from reason, and failure makes you rethink and study harder. Act from faith, and failure makes you blame someone and push harder.