Hook vs. list of procedures

2016-12-15 Thread Jan Synáček
Hi, I've read about hooks in the manual recently and I don't understand why they are special. What is the difference between a hook and a plain list of procedures? Why do hooks have their own API? Cheers, -- Jan Synáček

Re: Slow compilation of guile-2.1.x

2016-11-29 Thread Jan Synáček
On Mon, Nov 28, 2016 at 3:19 PM, Thompson, David wrote: > On Mon, Nov 28, 2016 at 3:47 AM, Jan Synáček wrote: >> On Fri, Nov 25, 2016 at 9:36 AM, wrote: >> ... >> Yes, but even a small (about 3 modules and a few 100s LoC) project of >> mine compiles about 3 times s

Re: Slow compilation of guile-2.1.x

2016-11-28 Thread Jan Synáček
On Mon, Nov 28, 2016 at 10:34 AM, wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Mon, Nov 28, 2016 at 09:47:08AM +0100, Jan Synáček wrote: >> On Fri, Nov 25, 2016 at 9:36 AM, wrote: >> > -BEGIN PGP SIGNED MESSAGE- >> > Hash: SHA1 >

Re: Slow compilation of guile-2.1.x

2016-11-28 Thread Jan Synáček
On Fri, Nov 25, 2016 at 9:36 AM, wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, Nov 25, 2016 at 08:31:23AM +0100, Jan Synáček wrote: >> Hello, >> >> while building guile-2.1.4 for Fedora, I noticed that the compilation >> got *really*

Slow compilation of guile-2.1.x

2016-11-24 Thread Jan Synáček
build/480524/ Cheers, -- Jan Synáček

Re: srfi-1 take and drop seriously broken

2016-11-20 Thread Jan Synáček
On Sun, Nov 20, 2016 at 7:31 PM, wrote: > > Panicz Maciej Godek wrote: >> 2016-11-20 11:42 GMT+01:00 Jan Synáček : >> >> > >> > >> Please, tell me that this is just a mistake... This can't be true. I >> > >> still c

Re: srfi-1 take and drop seriously broken

2016-11-20 Thread Jan Synáček
On Sat, Nov 19, 2016 at 11:55 PM, Panicz Maciej Godek wrote: > > > 2016-11-19 19:34 GMT+01:00 Jan Synáček : >> >> Hi, >> >> scheme@(guile-user)> ,use (srfi srfi-1) >> scheme@(guile-user)> (take (list 1 2 3) 4) >> ERROR: In procedure list-head: &g

Re: srfi-1 take and drop seriously broken

2016-11-20 Thread Jan Synáček
On Sat, Nov 19, 2016 at 10:18 PM, Jan Nieuwenhuizen wrote: > Jan Synáček writes: > >> scheme@(guile-user)> ,use (srfi srfi-1) >> scheme@(guile-user)> (take (list 1 2 3) 4) >> ERROR: In procedure list-head: >> ERROR: In procedure list-head: Wrong type argum

srfi-1 take and drop seriously broken

2016-11-19 Thread Jan Synáček
ERROR: In procedure list-tail: Wrong type argument in position 1 (expecting pair): () Please, tell me that this is just a mistake... This can't be true. I still can't believe it. This is from 2.0.11. Please, tell me that the implementation is fixed in 2.2. Yours truly puzzled, -- Jan Synáček

Parallel installation of guile-2.1.x

2016-11-17 Thread Jan Synáček
rrent installation. Is there a good way to achieve this without moving files around and running sed on them? Cheers, -- Jan Synáček

Weirdness in guile manual

2015-11-29 Thread Jan Synáček
ro to Breakpoints". When I click "Up", I get to "3.4 Debugging Features", which is correct. However, from 3.4, there is no way to get back to 3.4.2. In fact, I didn't find a way to get to 3.4.2 at all.. The links from 3.4 point to 3.4.1, 3.4.4 and 6.15. Cheers, -- Jan Synáček

Re: Reading data from a file descriptor

2015-11-18 Thread Jan Synáček
On Tue, Nov 17, 2015 at 1:59 PM, Chris Vine wrote: > 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

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

2015-11-18 Thread Jan Synáček
On Tue, Nov 17, 2015 at 10:27 PM, Mark H Weaver wrote: > 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

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

2015-11-17 Thread Jan Synáček
'k' is bigger than its length? If that is not the case, at least the error is really confusing. I'm using Guile 2.0.11. Cheers, -- Jan Synáček

Re: Reading data from a file descriptor

2015-11-15 Thread Jan Synáček
On Fri, Nov 13, 2015 at 9:45 PM, Thompson, David wrote: > 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 >> l

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 > >

Re: Reading data from a file descriptor

2015-11-08 Thread Jan Synáček
omething very similar that I ended up with. Just instead of get-byte-vector, I used read-string!/partial. > You could now just implement `acquire-valid-fd' in C and expose it to > Scheme, if that is even necessary. If you have the FD available via > e.g. an environment variable, `acquire-valid-fd' can be implemented in > Scheme as well. > > Regards, Rotty > -- > Andreas Rottmann -- <http://rotty.xx.vu/> > Thank you for all the responses! -- Jan Synáček

Reading data from a file descriptor

2015-11-07 Thread Jan Synáček
have something like this: const size_t bufsize = 4096; char buf[bufsize+1]; ssize_t count; int fd; fd = require_valid_fd() count = read(fd, buf, bufsize); buf[count] = '\0'; printf("read: %s\n", buf); Cheers, -- Jan Synáček