Re: [Chicken-hackers] wishlist entry: distinguished values for boolean constants in type declarations

2013-03-20 Thread Peter Bex
On Wed, Mar 20, 2013 at 09:50:31PM +0100, Jörg F. Wittenberger wrote: > To be consistent with the handling of other distinguished objects like > "()" (expressed as "null") and the eof-of-file-object (likewise "eof") > it would be great, if we had "true" and "false" to restrict these > beyond the ra

[Chicken-hackers] wishlist entry: distinguished values for boolean constants in type declarations

2013-03-20 Thread Jörg F . Wittenberger
Let's explain the idea by example. There are many standard (or srfi) procedures, which take either a distinguished type or (often) a boolean value (typically #f). For instance mutex-lock: the 1st optional argument is either a timeout or #f the second is either a thread or #f. Written as type de

Re: [Chicken-hackers] [PATCH] Avoid context switch during TCP errno reporting

2013-03-20 Thread Peter Bex
On Wed, Mar 20, 2013 at 08:12:18PM +0100, Jörg F. Wittenberger wrote: > Not at all. I forgot to mention: it relies only on > ##sys#thread-block-for-i/o! > and skips the single-fd ##net#select-write stuff entirely > for the sake of fairer scheduling. > > >I'll need some time to dig in and see why

Re: [Chicken-hackers] [PATCH] Avoid context switch during TCP errno reporting

2013-03-20 Thread Jörg F . Wittenberger
On Mar 20 2013, Peter Bex wrote: On Wed, Mar 20, 2013 at 02:27:41PM +0100, Jörg F. Wittenberger wrote: Hi all, During the development I learned that Peter is *absolutely correct* about the "strange error message" I needed help to interpret a few days back. (When the logged error indicated tha

Re: [Chicken-hackers] [PATCH] Avoid context switch during TCP errno reporting

2013-03-20 Thread Peter Bex
On Wed, Mar 20, 2013 at 02:27:41PM +0100, Jörg F. Wittenberger wrote: > Hi all, > > During the development I learned that Peter is *absolutely > correct* about the "strange error message" I needed help to > interpret a few days back. (When the logged error indicated > that a type test - (struct )

Re: [Chicken-hackers] [PATCH] Avoid context switch during TCP errno reporting

2013-03-20 Thread Jörg F . Wittenberger
Hi all, I'm not yet convinced that this patch will fix everything screwed up by use of the tcp implementation. The past days I wrote a replacement for my use. (A bit incomplete wrt. API compatibility to the tcp unit and thrown into a module I'm using to drive the SSL/TLS implementation I'm usin

Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.

2013-03-20 Thread Jörg F . Wittenberger
On Mar 18 2013, Felix wrote: From: Peter Bex Subject: Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path. Date: Mon, 18 Mar 2013 21:22:12 +0100 On Mon, Mar 18, 2013 at 02:03:41PM -0400, Mario Domenech Goulart wrote: Maybe I'm too paranoid? Or missing something? No, you're spo