Error in vector-move-left! vector-move-right!

2011-02-14 Thread Ian Price
Hi all, I was trying to copy a vector slice into another destructively using vector-move-(left!|right!) and came across a bug. If you try to fill the whole of the destination vector, you will get an error. This happens with both vector-move-left! and vector-move-right!, and it does not matter if

exit dynamic wind

2011-03-22 Thread Ian Price
Hey guilers, If you run (exit) at the repl, it is caught, and any after-thunks from dynamic-wind will be called when you continue with ,q . However, in a guile script, it is not an error, and the after-thunks are not called. $ cat Desktop/dynamic-wind-test.ss #!r6rs (import (rnrs))

Short circuiting behaviour in type specific equality predicates

2011-04-03 Thread Ian Price
Hello, Guilers When using type specific equality predicates in guile, I've noticed that they only test the type of an argument, if it has not already decided that the answer is false. Working my way through all the predicates given by the meta command ,a =\??$ we find GNU Guile 2.0.0.147-e309f

ASSERT should return a value

2011-04-06 Thread Ian Price
Hello Guilers, Over on Racket Users, Marco Maggi points out that ASSERT should return the value of the expression if it is true[0][1]. I have attached a simple patch to fix this behaviour in guile. Regards, Ian 0. http://lists.racket-lang.org/users/archive/2011-April/045046.html 1.

Re: [r6rs] frontier port position rejected with bytevector ports

2011-04-07 Thread Ian Price
: Ian Price ianpric...@googlemail.com Date: Fri, 8 Apr 2011 02:49:20 +0100 Subject: [PATCH] Fix fencepost error in bip_seek * libguile/r6rs-ports.c (bip_seek): Fix to allow seeking to end of port. * test-suite/tests/r6rs-ports.test (bytevector input port can seek to very end): Add tests

Re: (@ (rnrs base) log) optional second argument

2011-04-11 Thread Ian Price
Andy Wingo wi...@pobox.com writes: We're brushing the point at which you should assign copyright to the FSF. Are you OK with that? Please let me know and I'll kick off the process. Yeah sure. Just tell me what you need. Regards, Ian

Re: Guile v. 2.0.1 does not handle escaped open parentheses correctly.

2011-06-11 Thread Ian Price
Torstein Winterseth kvike...@fsfe.org writes: Hello, I have found a bug where Guile does not handle escaped open parentheses correctly. This was found in a real program which works in Dr. Racket in R5RS mode. You are not the only interpreter on Fedora 15 which fails this, but anyhow.

Re: r6rs define-record-type is unhygienic

2011-06-17 Thread Ian Price
are the preferred spellings now. Done. Want to fix the line wrapping and the commit message and resubmit? Attached. -- Ian Price There are only two hard problems in Computer Science: cache invalidation and naming things. - Phil Karlton From f331ecbe9d0f35ef88099d41a5045c01ef5b04ad Mon Sep 17 00

Re: header parsing

2011-09-09 Thread Ian Price
Patches are supplied for both. Apparently not. ;-) -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled From 8cde08a514ff1c0d4c09dbfd2d2ae50dc090db46 Mon Sep 17 00:00:00 2001 From: Ian Price ianpric

[bug #34258] guile --listen=some_port does not work

2011-09-09 Thread Ian Price
Follow-up Comment #1, bug #34258 (project guile): Same here. There are actually two separate mistakes in the code for --listen=. See the attached patch. (file #23962) ___ Additional Item Attachment: File name:

Re: header parsing

2011-09-10 Thread Ian Price
), but I actually only got 1 wrong etag. Maybe I just got unlucky yesterday.*shrugs*. Best just to ignore the patch, but thanks anyway. -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#9664: (format #t ~3tX) fails in the REPL

2011-10-04 Thread Ian Price
evaluate the REPL expression. -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled From 7a457be8c43051817b18d425a76b296f0f1fc730 Mon Sep 17 00:00:00 2001 From: Ian Price ianpric...@googlemail.com Date: Tue, 4 Oct 2011

bug#9844: peval dynamic-wind

2011-10-23 Thread Ian Price
the (set! entered? #t), I see entered? #f entered? #f $2 = not−supposed−to−happen which tells me that the earlier mutation isn't effecting later continuations. -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#9883: R6RS fold-left

2011-10-26 Thread Ian Price
can change it to check the lengths of the lists before-hand, and do the same for fold-right. Cheers. 0. http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-4.html#node_idx_212 1. http://srfi.schemers.org/srfi-1/srfi-1.html#fold -- Ian Price Programming is like pinball. The reward for doing

bug#10246: R6RS library form broken?

2011-12-07 Thread Ian Price
) (lambda () (let ((val start)) (set! start (+ start 1)) val))) ) would probably be helpful. 0. http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-10.html 1. http://www.gnu.org/software/guile/manual/html_node/R6RS-Libraries.html -- Ian Price Programming is like pinball. The reward for doing

bug#10250: Problems using optargs with function docstrings

2011-12-08 Thread Ian Price
−user) ,describe foo Docs go here scheme@(guile−user) Which version are you using? I'm on current stable-2.0(e7b2efd) -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#10352: Broken pipe while generating guile-procedures.txt

2011-12-22 Thread Ian Price
definitively say. If you need anything else, I'll be happy to provide. -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#10327: Please document include and include-from-path

2011-12-23 Thread Ian Price
? Or am I being ever so slightly patronising? -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#9776: case-lambda should accept zero clauses

2012-01-07 Thread Ian Price
@(guile−user) -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#10557: GUILE_LOAD_PATH variable value ignored when setting %load-path.

2012-01-19 Thread Ian Price
/local/share/guile/site /usr/local/share/guile) scheme@(guile-user) I'll report back again after I've built the 2.0.3 release -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#10556: (use-modules ) references not found on file system when compiling

2012-01-20 Thread Ian Price
/home/ian/src/lilypond/scm/ is in your path, not /home/ian/src/lilypond/. And hence it will look for the existence of a /home/ian/src/lilypond/scm/scm/clip-region.scm. My advice is to change your %load-path, or if you prefer, use (clip-region) instead of (scm clip-region), and so on. -- Ian

bug#10581: exit-hook is undocumented and is not called from a non-interactive environment

2012-01-22 Thread Ian Price
a test case for this though. -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled From baaf226cb91a41de66b7dc663c433c67f1c0f0e5 Mon Sep 17 00:00:00 2001 From: Ian Price ianpric...@googlemail.com Date: Sun, 22 Jan 2012 19

bug#10616: flush procedure for soft ports isn't called

2012-01-26 Thread Ian Price
) rw))) (force-output port)) scheme@(guile−user) I have no issues with the other procedures. This is on current stable, on 32 bit x86 running Fedora 16. More complicated examples available on request. -- Ian Price Programming is like pinball

bug#10616: flush procedure for soft ports isn't called

2012-01-26 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: scheme@(guile−user) (let* ((port (make-soft-port (vector #f #f (lambda () 'flushed) #f #f) rw))) (force-output port)) scheme@(guile−user) Yak

bug#10616: flush procedure for soft ports isn't called

2012-01-26 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: Yak, this example is a horrible one, since force-output doesn't return the return value of the procedure anyway, but if you try replacing it with (lambda () (throw 'wontthrow)), and you'll see it doesn't error In sf_flush in libguile/vports.c

bug#10352: Broken pipe while generating guile-procedures.txt

2012-01-31 Thread Ian Price
Andy Wingo wi...@pobox.com writes: I reverted 47ed8656db8800f3ad20a40eb2c4e9ef3dc891e3 as you suggested and fixed the two other SCM_HEAP_OBJECT_BASE uses. Can you try again? Yes, it builds now. Thanks. -- Ian Price Programming is like pinball. The reward for doing it well

bug#10522: Patch: Improve optional variable and keyword notation in manual

2012-02-03 Thread Ian Price
Andy Wingo wi...@pobox.com writes: Also, it seems pedantic to repeat the keyword arguments (once as keyword, once as identifier). Surely #:foo=bar is unambiguous? Since guile use the same name for both the keyword and identifier, I'd say so. -- Ian Price Programming is like pinball

bug#11087: vector limitation in compiling to bytecode

2012-03-24 Thread Ian Price
wrapped the file in #(...). I've since changed it to actually read the vector from the file. -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#11215: [feature request] better backtraces

2012-04-10 Thread Ian Price
of an implementation in practice for all the tail call naysayers. :) -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#11087: vector limitation in compiling to bytecode

2012-07-06 Thread Ian Price
Andy Wingo wi...@pobox.com writes: On Sat 24 Mar 2012 21:09, Ian Price ianpric...@googlemail.com writes: ;;; ERROR: In procedure bytevector-u8-set!: Value out of range: 390 vector constant containing 10 values This limitation is documented, and somewhat reasonable, but on IRC mark

bug#11887: string-number edge cases

2012-07-09 Thread Ian Price
#node_idx_584 Peter, Thanks for these -- Ian Price Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled ;;; ;;; Numerical syntax torture test ;;; ;;; This tries to test a lot of edge cases in Scheme's numerical syntax. ;;; ;;; Output

bug#12173: docstrings and .guile

2012-08-10 Thread Ian Price
test #f scheme@(guile-user) (define (test) docs #f) scheme@(guile-user) ,d test docs This happens on 32bit fedora 16 on stable-2.0 git commit 1321a36ed61deb9431b41768dc92cb7230c9afa1 -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do

bug#12182: guile 2.0.6: Value out of range: 0 when compiling a procedure

2012-08-12 Thread Ian Price
Not sure if that's helped at all, but the bug intrigued me when he brought it up on #guile yesterday -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#12244: [patch] URI encoding bugs

2012-08-20 Thread Ian Price
characters, nothing gets encoded. scheme@(guile−user) (uri-encode \\^) $31 = \\∧ scheme@(guile−user) (uri-encode \\^a) $32 = %3c%3e%5c%5ea Patches attached. Cheers, -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from

bug#12033: closed (Re: bug#12033: format should be faster)

2012-08-20 Thread Ian Price
, along similar lines to this. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#12246: [patch] iso 8601 specifies zero padding, not space padding

2012-08-21 Thread Ian Price
these. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled From befdf71b04a0d1c02947457baa3c7e5f152b7e8e Mon Sep 17 00:00:00 2001 From: Ian Price ianpric...@googlemail.com Date: Tue, 21 Aug 2012 12:13:25

bug#12341: define does not support lambda shorthand notation, define-public does

2012-09-04 Thread Ian Price
-Alternatives I agree, and have provided some documentation. I'm no texinfo expert so it probably needs cleanup. In particular, I wasn't sure of how to markup these curried forms. Comments kindly requested, -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well

bug#12341: define does not support lambda shorthand notation, define-public does

2012-09-06 Thread Ian Price
. +Prior to guile 2, guile provided an extension to @code{define} syntax $B!H(BGuile 2.0$B!I(B. Fixed. David, How about you, any feedback on this documentation? -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again

bug#12341: define does not support lambda shorthand notation, define-public does

2012-09-06 Thread Ian Price
l...@gnu.org (Ludovic Court$(D+2(Bs) writes: Should really be $B!H(BGuile 2.0$B!I(B and $B!H(BGuile$B!I(B, with a capital $B!F(BG$B!G(B, when talking about the package. Ah, of course. Fixed and Pushed. Thanks David for the report, I'm marking this as done. -- Ian Price

bug#12173: docstrings and .guile

2012-11-29 Thread Ian Price
l...@gnu.org (Ludovic Courtès) writes: Fixed in c438cd7, please test! Thanks, works fine for me. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#13095: http-get: Throw to key `bad-response' with args `(EOF while reading response body: ...)'

2012-12-08 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: Strange though, I never noticed this come up when adding the chunked support in the first place. Actually, my apologies, I had noticed it since I use it in the tests. :/ -- Ian Price -- shift-reset.com Programming is like pinball. The reward

bug#13095: http-get: Throw to key `bad-response' with args `(EOF while reading response body: ...)'

2013-01-12 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: I'm going to withhold pushing a patch and closing this bug for the moment, until I'm satisfied of the reason why this is the problem. Well, I never did get a satisfying reason, but Andy Wingo pushed the obvious fix for this issue in response

bug#13485: wrong warning for format ~!

2013-01-19 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: I'm currently looking through the format docs to see if any others are mishandled, and will post a patch later. So, having went through all of the docs for format, I think I've handled all of the sequences correctly (except for the iteration ones

bug#13485: wrong warning for format ~!

2013-01-19 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: I'm currently looking through the format docs to see if any others are mishandled, and will post a patch later. So, having went through all of the docs for format, I think I've handled all of the sequences correctly (except for the iteration ones

bug#13485: wrong warning for format ~!

2013-01-28 Thread Ian Price
for sequence parameters. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled From 90baf8cdfe8ce356ee4720a012e0deb5a2cb5818 Mon Sep 17 00:00:00 2001 From: Ian Price ianpric...@googlemail.com Date: Sat, 19 Jan

bug#13827: faulty range check in bytevector accessor

2013-02-26 Thread Ian Price
. It happens for a wide range of values that don't fit in 32 bits. After some talk on #guile, Mark and I believe it comes down to the range check in INTEGER_ACCESSOR_PROLOGUE in bytevectors.c -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity

bug#13827: faulty range check in bytevector accessor

2013-02-28 Thread Ian Price
for the weekend, though, so I won't really be able to debug this properly till Monday. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#13865: redefinition of +

2013-03-03 Thread Ian Price
:14 4(return) So, you can't win on this one :) [0] I have not got a stable-2.0 install at the moment to compare, but I suspect it will be similar. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do

bug#13865: redefinition of +

2013-03-04 Thread Ian Price
l...@gnu.org (Ludovic Court$(D+2(Bs) writes: close 13865 tag 13865 notabug thanks Ian Price ianpric...@googlemail.com skribis: is pretty much what we want usually. And I'm inclined to say NOTABUG for the repl when optimisation is turned on. However, in a script, this is a bug IMO

bug#14109: No code for 'bytevector-string' and 'string-bytevector'

2013-04-01 Thread Ian Price
. This documentation is lifted straight from the R6RS (modulo formatting). -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#14347: reset, shift, continuation values truncated inconsistently

2013-05-06 Thread Ian Price
, mark_weaver reminded me of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13966 which I think is the same issue. But I haven't tested that yet. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15136: get-string-all documentation

2013-08-19 Thread Ian Price
Josep Portella Florit j...@primfilat.com writes: In the documentation for get-string-all, on module (rnrs io ports), it says: Scheme Procedure: get-string-all textual-input-port count Yes, a silly little oversight. Thanks for the report. It's fixed in stable. -- Ian Price -- shift

bug#15227: Possible bug in (web server)

2013-09-13 Thread Ian Price
should handle checking the size of the content body. Currently it doesn't, but we have separate code for doing that in (web client), so maybe not. But it might be an idea to document that read-response-body may return less bytes than the content length. -- Ian Price -- shift-reset.com Programming

bug#14449: Guile 2.1 and macro nesting

2013-10-03 Thread Ian Price
(katch a (+ 1 1)) $3 = (call/cc (lambda (a) (+ 1 1))) scheme@(guile-user) (katch a (+ 1 (a 3))) $4 = 3 I'm closing this one. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15533: optimizing away noticeable effects

2013-10-05 Thread Ian Price
means branches from master at 6871327742d3e1a0966aa8fed04c911311c12c2a (Aug 31). I'll try on a more recent master or stable when I have time. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15533: optimizing away noticeable effects

2013-10-07 Thread Ian Price
obviously need to have a check for mutability when referring to a variable, the question is where? Does it make sense to add it to find-definition? or should we add it before the use in that case? -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well

bug#15533: optimizing away noticeable effects

2013-10-08 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: Does it make sense to add it to find-definition? or should we add it before the use in that case? I've decided that it does, and I've made the following (tentative) change on my own guile install. (cond ((lookup (lexical-ref

bug#15540: Circular module imports vs. #:select (2.0.9)

2013-10-08 Thread Ian Price
Looks fine to me. Maybe it's worth adding a comment to the source to mention why we do it that way. And of course, a test so we don't break it in the future. :) -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from

bug#15586: [PATCH] Documentation fix for unfold-right in srfi-1

2013-10-19 Thread Ian Price
Funny thing is, I was just about to fire off an email about why this fix was wrong, and just before posting realised this was a patch for unfold-right, not unfold. I was unsure of whether to go with the srfi wording or your wording, but yours is a little better so I kept it. Cheers -- Ian

bug#15586: [PATCH] Documentation fix for unfold-right in srfi-1

2013-10-19 Thread Ian Price
Whoops, forgot to close it.

bug#15370: weirdness w/ uniform-vector-read! compat

2013-10-20 Thread Ian Price
this procedure is marked deprecated, I'd like to know how long it has left before I patch it. Little point fixing it if it's soon... Cheers -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15370: weirdness w/ uniform-vector-read! compat

2013-10-20 Thread Ian Price
version was the major version it would likely mean removing deprecations. _That_ is the scenario I am concerned about, not lording it over you to update your programs. A fix that never gets released isn't a fix. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well

bug#15370: weirdness w/ uniform-vector-read! compat

2013-10-20 Thread Ian Price
it. Patch pushed. Closing. Cheers ttn -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15620: guile 2.0.9 make check error, in bit-operations.test, elisp-compiler.test and eval-string.test

2013-10-20 Thread Ian Price
-documentation extract) You'll need to hit ,bt when you get the prompt. Cheers. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15533: optimizing away noticeable effects

2013-10-23 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: If Andy is happy with this change, I'll add a test, and push a commit, but I'm going leave it to his discretion. Andy OKed it on IRC, so I've attached the patch. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing

bug#15620: guile 2.0.9 make check error, in bit-operations.test, elisp-compiler.test and eval-string.test

2013-10-23 Thread Ian Price
here too. Then you can use the command ,bt to get a backtrace. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15691: ,br doesn't work for generic functions

2013-10-23 Thread Ian Price
procedures in (system vm traps) are documented as taking a procedure, which IMO should include applicable structs. I've attached a patch which handles this, implementing behaviour (1) above. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well

bug#15691: ,br doesn't work for generic functions

2013-10-23 Thread Ian Price
Ian Price ianpric...@googlemail.com writes: We could either fix this a bit further up the stack, by making sure that we extract the procedure from applicable structs, we could extract it in `frame-matcher'. It did not occur to me before I sent it, but there is one other reasonable behaviour

bug#15533: optimizing away noticeable effects

2014-01-06 Thread Ian Price
Following prompting from mark weaver on IRC. I rebased this patch, and pushed to stable-2.0. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled

bug#15691: ,br doesn't work for generic functions

2014-01-08 Thread Ian Price
I pushed the patch from the 24 of October (commit 3981feaa11aa0d866ff1d99128f0ace3). It's not perfect, but I'm marking this one done. Sorry it took a while. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from

bug#18295: Radix points in non-decimal numbers

2014-08-19 Thread Ian Price
this. -- Ian Price -- shift-reset.com Programming is like pinball. The reward for doing it well is the opportunity to do it again - from The Wizardy Compiled