Re: (list-head lst k) with k longer than (length lst)

2015-11-17 Thread Mark H Weaver
Chris Vine writes: > On Tue, 17 Nov 2015 11:53:05 +0100 > Jan Synáček wrote: >> Hello, >> >> I'm getting: >> >> scheme@(guile-user)> (list-head '(1 2 3) 5) >> ERROR: In procedure list-head: >> ERROR: In procedure list-head: Wrong type argument in position 1 >> (expecting pair): () >> >> This

Re: Asynchronous event loop brainstorm at FSF 30

2015-11-17 Thread Christopher Allan Webber
Chris Vine writes: > It is certainly the case that mixing threads with coroutines is usually > best avoided, otherwise it becomes very difficult to know what code > ends up running in which particular thread and thread safety becomes a > nightmare. However, it would be good to allow a worker thre

Re: Reading data from a file descriptor

2015-11-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Nov 17, 2015 at 01:55:17PM +, Chris Vine wrote: > On Tue, 17 Nov 2015 13:52:21 +0100 > wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On Tue, Nov 17, 2015 at 12:59:56PM +, Chris Vine wrote: > > > On Tue, 17 Nov 2

Re: Reading data from a file descriptor

2015-11-17 Thread Chris Vine
On Tue, 17 Nov 2015 13:52:21 +0100 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tue, Nov 17, 2015 at 12:59:56PM +, Chris Vine wrote: > > On Tue, 17 Nov 2015 10:53:19 +0100 > > [...] > > > guile's R6RS implementation has get-bytevector-some, which will do > > that for yo

Re: (list-head lst k) with k longer than (length lst)

2015-11-17 Thread Chris Vine
On Tue, 17 Nov 2015 11:53:05 +0100 Jan Synáček wrote: > Hello, > > I'm getting: > > scheme@(guile-user)> (list-head '(1 2 3) 5) > ERROR: In procedure list-head: > ERROR: In procedure list-head: Wrong type argument in position 1 > (expecting pair): () > > This looks pretty much like a bug to me.

Re: Reading data from a file descriptor

2015-11-17 Thread Chris Vine
On Tue, 17 Nov 2015 10:53:19 +0100 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Mon, Nov 16, 2015 at 11:54:33AM +0100, Amirouche Boubekki wrote: > > On 2015-11-13 21:41, Jan Synáček wrote: > > [...] > > > >I have an open fd to a unix socket and I want to read data from > >

(list-head lst k) with k longer than (length lst)

2015-11-17 Thread Jan Synáček
Hello, I'm getting: scheme@(guile-user)> (list-head '(1 2 3) 5) ERROR: In procedure list-head: ERROR: In procedure list-head: Wrong type argument in position 1 (expecting pair): () This looks pretty much like a bug to me. Shouldn't list-head return the entire list when the 'k' is bigger than its

Re: Reading data from a file descriptor

2015-11-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Nov 16, 2015 at 11:54:33AM +0100, Amirouche Boubekki wrote: > On 2015-11-13 21:41, 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'