Re: SRFI-64 implementation for Guile 2.0

2012-12-27 Thread Per Bothner
I don't think we ever resolved this. It would be great if we could get good support for Guile (and other Schemes). The way I like to work (and this is standard in every well-managed Free Software project) is I don't want to see your updated code; I want to see a patch (created using 'diff -u' or

Re: SRFI-64 implementation for Guile 2.0

2012-04-22 Thread Sunjoong Lee
Hi, Ludo’; A srfi-64-test.scm file is a test suite for the SRFI 64 and you can get it from http://srfi.schemers.org/srfi-64/srfi-64-test.scm . 51 expected passes and 2 expected failures are normal: $ guile -L /home/sunjoong/guile/site --use-srfi=64 srfi-64-test.scm Starting test SRFI 64 -

Re: SRFI-64 implementation for Guile 2.0

2012-04-21 Thread Ludovic Courtès
Hello, Sunjoong Lee skribis: > Your implementation fails srfi-64-test.scm, a test suite for the SRFI 64. Oh, which ones? This is essentially the reference implementation, so it shouldn’t fail. But perhaps my copy of srfi-64.scm is older than srfi-64-test.scm? > I don't know "Display a backtr

Re: SRFI-64 implementation for Guile 2.0

2012-04-20 Thread Sunjoong Lee
I've attached diff of 2007 testing.scm. 2012/4/21 Per Bothner > > I'm going to look at the patch in detail, but before I do, a question: > Why is your srfi-64.scm.gz "for Guile, Chicken and Gambit" so very > different from the reference implementation with your patch applied? > I just mean that

Re: SRFI-64 implementation for Guile 2.0

2012-04-20 Thread Per Bothner
On 04/20/2012 03:19 AM, Sunjoong Lee wrote: I'll attatch two files on this mail; srfi-64.scm.gz and testing.patch.gz. The srfi-64.scm.gz file is for Guile, Chicken and Gambit users. The testing.patch.gz file is for Per. Much better. I applied your patch to the reference implementation, and tha

Re: SRFI-64 implementation for Guile 2.0

2012-04-20 Thread Sunjoong Lee
Hi, Ludo’; Your implementation fails srfi-64-test.scm, a test suite for the SRFI 64. Per: I realize the test-error of the reference implementation has a bug; It calls %test-error like this - (test-assert (%test-error etype expr)) but %test-error needs three arguments - (%test-error r etype expr)

Re: SRFI-64 implementation for Guile 2.0

2012-04-20 Thread Ludovic Courtès
Hi, Per Bothner skribis: > I think it would be great to get SRFI-64 into Guile. Me too. FWIW, I’ve been using an almost-unmodified version in several projects: http://git.savannah.gnu.org/cgit/libchop.git/tree/guile2/srfi The only changes compared to the reference implementations are minor

Re: SRFI-64 implementation for Guile 2.0

2012-04-20 Thread Sunjoong Lee
Thanks Noah and Per; English language is more difficult than scheme language for me. :( I want to share my code or modification to others and learn somethings during that. Few days ago, I found testing.scm, the reference implementation of SRFI 64, does not pass srfi-64-test.scm, a test suite for

Re: SRFI-64 implementation for Guile 2.0

2012-04-19 Thread Per Bothner
On 04/19/2012 07:50 PM, Noah Lavine wrote: Hello! I'm a bit confused by this conversation. Do you want to merge this code into Guile, or into the reference implementation of SRFI 64? If it's into Guile, I can't speak for the maintainers, but I think we would love to have it. We do like supporti

Re: SRFI-64 implementation for Guile 2.0

2012-04-19 Thread Noah Lavine
Hello! I'm a bit confused by this conversation. Do you want to merge this code into Guile, or into the reference implementation of SRFI 64? If it's into Guile, I can't speak for the maintainers, but I think we would love to have it. We do like supporting SRFIs. Thanks, Noah On Sun, Apr 15, 2012

Re: SRFI-64 implementation for Guile 2.0

2012-04-15 Thread Sunjoong Lee
Now, srfi-64.scm works on Guile 1.8 and 2.0. There are two different thins; 1) Guile 1.8 does not support nested block comments. So, it does not pass srfi-64-test.scm test suite. But, comments are comments - not problem. 2) srfi-64.scm on Guile 2.0 can catch and report the source for

Re: SRFI-64 implementation for Guile 2.0

2012-04-14 Thread Per Bothner
This is nice. It would be great if the Guile port would be merged into the reference implementation, presumably using cond-expand. That way bug-fixes or changes in one could be more easily be merged into the other. The use of #:KEYWORD syntax might cause reader problems on some Scheme implementa

Re: SRFI-64 implementation for Guile 2.0

2012-04-14 Thread Sunjoong Lee
I rewrote srfi/srfi-64.scm file using cond-expand but don't know it works. On Guile 2.0, it works; $ guile -L `pwd` --use-srfi=64 srfi-64-test.scm Starting test SRFI 64 - Meta-Test Suite (Writing full log to "SRFI 64 - Meta-Test Suite.log") # of expected passes 51 # of expected f

Re: SRFI-64 implementation for Guile 2.0

2012-04-13 Thread Sunjoong Lee
I fixed some bugs and changed test-error to detect using message string too because of 'misc-error and 'syntax-error. For example, "^missing or extra expression" and "^string contains #nul character" are both 'misc-error. Example1: just check whether a exception occurs? scheme@(guile-user)>

SRFI-64 implementation for Guile 2.0

2012-04-12 Thread Sunjoong Lee
Hello, world! :) I'm a newbie of scheme. I'd heard the testing framework SRFI-64 but failed to use it on Guile 2.0. After attempt to solve this problem, I made a guile module to pass the test suite for SRFI-64 by Donovan Kolbly. -- 1. srfi/srfi-64.scm is a SRFI-64 implementation for