Re: Reading data from a file descriptor

2015-11-13 Thread Mark H Weaver
Jan Synáček writes: > On Sun, Nov 8, 2015 at 12:49 AM, Andreas Rottmann > wrote: > > Also note that if there's no requirement to actually implement > this in > C, there's `fdes->inport' and `fdes->outport' on the Scheme level, > so > something like the following would be anal

Re: [PATCH] Add SRFI-25 implementation

2015-11-13 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > l...@gnu.org (Ludovic Courtès) skribis: > >> Andreas Rottmann skribis: >> >>> Adds an implementation of SRFI 25 on top of Guile's native arrays. The >>> implementation does not introduce a disjoint type; Guile arrays and >>> SRFI-25 arrays can be used inte

Re: Reading data from a file descriptor

2015-11-13 Thread Jan Synáček
On Fri, Nov 13, 2015 at 4:51 PM, Mark H Weaver wrote: > > Jan Synáček writes: > > > On Sun, Nov 8, 2015 at 12:49 AM, Andreas Rottmann > > wrote: > > > > Also note that if there's no requirement to actually implement > > this in > > C, there's `fdes->inport' and `fdes->outport' on the

Re: Reading data from a file descriptor

2015-11-13 Thread Thompson, David
On Fri, Nov 13, 2015 at 3:41 PM, Jan Synáček wrote: > > I have an open fd to a unix socket and I want to read data from it. I > know that the data is going to be only strings, but I don't know the > length in advance. The good thing about using read-string!/partial is, > that I don't have to speci

Re: [PATCH] Add SRFI-25 implementation

2015-11-13 Thread Ludovic Courtès
Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> l...@gnu.org (Ludovic Courtès) skribis: >> >>> Andreas Rottmann skribis: >>> Adds an implementation of SRFI 25 on top of Guile's native arrays. The implementation does not introduce a disjoint type; Guile arrays and >