Re: [Chicken-hackers] [patch] R7RS make-promise...

2013-05-26 Thread Peter Bex
On Sun, May 26, 2013 at 01:55:48PM +0200, Christian Kellermann wrote: Hi, the first step of implementing the lazy procedures from R7RS is attached to this mail. I will probably have to adjust the internal representation for recursive promisses again but I am not yet sure about how to do

Re: [Chicken-hackers] [patch] R7RS make-promise...

2013-05-26 Thread John Cowan
Christian Kellermann scripsit: This patch also adds a new R7RS test file that will host all new test cases that would not find a nice place elsewhere. See also https://code.google.com/p/chibi-scheme/source/browse/tests/r7rs-tests.scm, which is an official WG1 work product, though not as

[Chicken-hackers] [PATCH] Add support for self-evaluating vectors and srfi-4 vectors (and blobs, for consistency)

2013-05-26 Thread Peter Bex
Hi all, Attached is a patch that will make your heart bleed. I decided to make blob self-evaluating too, for consistency, because they are a lot like u8vectors. This patch adds an internal ##sys#srfi-4-vector? predicate and exposes it as number-vector? in SRFI-4. The internal predicate has to

Re: [Chicken-hackers] [patch] R7RS make-promise...

2013-05-26 Thread Christian Kellermann
* Peter Bex peter@xs4all.nl [130526 14:10]: On Sun, May 26, 2013 at 01:55:48PM +0200, Christian Kellermann wrote: Hi, the first step of implementing the lazy procedures from R7RS is attached to this mail. I will probably have to adjust the internal representation for recursive

Re: [Chicken-hackers] [PATCH] Add support for self-evaluating vectors and srfi-4 vectors (and blobs, for consistency)

2013-05-26 Thread Christian Kellermann
* Peter Bex peter@xs4all.nl [130526 14:27]: Hi all, Attached is a patch that will make your heart bleed. With a bleeding heart I have applied this and adjusted it slightly to remove the superflous tests. Cheers, Christian -- In the world, there is nothing more submissive and weak than

Re: [Chicken-hackers] [patch] R7RS make-promise...

2013-05-26 Thread Peter Bex
On Sun, May 26, 2013 at 02:58:03PM +0200, Christian Kellermann wrote: * Peter Bex peter@xs4all.nl [130526 14:10]: The make-promise itself looks good. Unfortunately not so good, please find a correction attached. Gah! I overlooked that. Sleep deprivation will do that to you :/ Also

[Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-26 Thread Peter Bex
Hi all, Here are two patches for adding R7RS named character and string escapes sequences. Turns out the r7rs-tasks wiki page is incorrect; we already had \a and #\alarm support. The only two standard named characters that needed to be added was #\null (where we had #\nul) and #\escape where we

Re: [Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-26 Thread Evan Hanson
On 2013/05/26 11:09P, Peter Bex wrote: Here are two patches for adding R7RS named character and string escapes sequences. I don't believe the second patch is sufficient for adding intraline whitespace escapes; it only handles LF-terminated lines, while R7RS specifies that CR, CRLF and LF line

[Chicken-hackers] [PATCH] verify syntax in = cond clauses

2013-05-26 Thread Evan Hanson
This patch improves cond's behavior on clauses which contain `=` but do not match the precise definition of cond. CHICKEN's current behavior is as follows: #; (cond (#t =)) Error: (caddr) during expansion of (cond ...) - bad argument type: () ... I believe this behavior is

[Chicken-hackers] [PATCH] add = syntax for case clauses

2013-05-26 Thread Evan Hanson
The attached patch adds support and basic tests for case clauses containing `=` patterns (R7RS 4.2.1). `condition?` is used in the R7RS tests since `error-object?` has yet to be implemented. Evan From 48ebd94f3ec2d3926e156f7996924c142b870b23 Mon Sep 17 00:00:00 2001 From: Evan Hanson

[Chicken-hackers] [PATCH] load files from CHICKEN_INCLUDE_PATH on require

2013-05-26 Thread Evan Hanson
The documentation for `require` indicates that the current include path, which defaults to the pathnames given in CHICKEN_INCLUDE_PATH will be searched for files to load. However, this isn't currently the case: $ ls foo bar.scm $ CHICKEN_INCLUDE_PATH=./foo csi ... #; (require

[Chicken-hackers] [PATCH] remove redundant call to rm eggdir on uninstall

2013-05-26 Thread Evan Hanson
This trivial patch just gets rid of a duplicated line to remove the $IEGGDIR when uninstalling. Evan From ee64c525b827326d5193e9e2e5242a289250b1f9 Mon Sep 17 00:00:00 2001 From: Evan Hanson ev...@foldling.org Date: Fri, 3 May 2013 16:28:27 +1200 Subject: [PATCH] remove redundant call to rm eggdir