Re: [PATCH] Futures: Avoid creating the worker pool more than once

2012-11-07 Thread Mark H Weaver
Here's an improved version the patch that gracefully handles the case where creation of the worker pool is unsuccessful due to an exception or cancelled thread. What do you think? Mark From b0d936a348b916e73e9071abeb7baae3d7c126d3 Mon Sep 17 00:00:00 2001 From: Mark H Weaver m...@netris.org

Re: [PATCH] Futures: Avoid creating the worker pool more than once

2012-11-07 Thread Daniel Hartwig
On 7 November 2012 21:46, Mark H Weaver m...@netris.org wrote: Here's an improved version the patch that gracefully handles the case where creation of the worker pool is unsuccessful due to an exception or cancelled thread. What do you think? Looks clean. Nice work picking up on this race

Re: Functional record setters, a different approach

2012-11-07 Thread Mark H Weaver
Hello all, Apologies for the long delay on this, but I've finally produced an improved implementation of functional record setters for stable-2.0. It is fully compatible with the earlier API proposed by Ludovic in http://lists.gnu.org/archive/html/guile-devel/2012-04/msg00032.html (i.e.

[PATCH] Fix `get-string-n!' i/o-decoding exception behavior

2012-11-07 Thread Andreas Rottmann
Previously, `get-string-n!' from `(rnrs io ports)' would not throw the exception required by R6RS, and could not easily do so due to being implemented entirely in C. This change fixes this by introducing a corresponding internal C function reporting errors by return value and reimplementing the

Re: [PATCH] Add .guile.sls and .sls to the default %load-extensions

2012-11-07 Thread Alex Shinn
On Thu, Nov 8, 2012 at 5:28 AM, Ludovic Courtès l...@gnu.org wrote: Hi! Mark H Weaver m...@netris.org skribis: One option would be to return to Aubrey Jaffer's model (used in SCM), where a catalog of modules and their locations is maintained Hmm, I never really liked that. And it’s quite

Re: Functional record setters, a different approach

2012-11-07 Thread Mark H Weaver
Hello all, I've attached a slightly improved functional record setters patch. The only change since yesterday's version is to the test suite, which now includes tests of the compile-time error checking. Here's a brief overview of the provided functionality. First, 'define-immutable-record-type'