Re: [Chicken-hackers] [PATCH] Fix another problem with receiving signals while read()ing

2012-11-05 Thread Felix
From: Peter Bex Subject: [Chicken-hackers] [PATCH] Fix another problem with receiving signals while read()ing Date: Sat, 3 Nov 2012 21:56:38 +0100 > Hi all, > > Today I noticed an intermittent failure in the scsh-process tests. > After some debugging, it turned out that my last patch for > fast

[Chicken-hackers] [PATCH] two scrutinizer fixes

2012-11-05 Thread Felix
a) when matching "list-of"/"vector-of" with "list"/"vector", each element of the latter must match the element-type of the former (reported by megane, fixes #948). Previously the "list"/vector" type was matched as "(list-of (or ...))" instead, which makes the match less precise. b) whe

Re: [Chicken-hackers] [PATCH] Slight promise efficiency and memory improvements

2012-11-05 Thread Moritz Heidkamp
Peter Bex writes: > Very clever! I've tested and pushed this. Cool, thank you very much! > Are you actually using promises so much that you're running into > performance issues with them, or was this just for fun? I ran into memory leaks when trying to implement the lazy-seq egg based on prom

Re: [Chicken-hackers] [PATCH] Slight promise efficiency and memory improvements

2012-11-05 Thread Peter Bex
On Mon, Nov 05, 2012 at 04:25:18PM +0100, Moritz Heidkamp wrote: > Dear Chickeneers, > > the attached patch changes the implementation of promises to be slightly > more efficient when forcing a promise more than once (one procedure call > less). Also, instead of keeping the promise result in the p

Re: [Chicken-hackers] [PATCH] Slight promise efficiency and memory improvements

2012-11-05 Thread Moritz Heidkamp
Quick follow-up: I posted the benchmark results of a different program, of course, one with the sequence going up to 50 rather than 100. Sorry for the blunder! :-) ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.o

[Chicken-hackers] [PATCH] Slight promise efficiency and memory improvements

2012-11-05 Thread Moritz Heidkamp
Dear Chickeneers, the attached patch changes the implementation of promises to be slightly more efficient when forcing a promise more than once (one procedure call less). Also, instead of keeping the promise result in the promise thunk's closure it is now kept in a slot of the promise structure. T