bug#18295: Radix points in non-decimal numbers

2014-08-19 Thread Ian Price
t does let you do 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#18065: guile hangs if strerror is called with invalid (non-int) argument

2014-08-01 Thread Ian Price
list) $1 = (wrong-type-arg #f "Wrong type (expecting ~A): ~S" ("exact integer" 1.5) (1.5)) My thinking is that the a pre-unwind handler in the repl tries to lock the same mutex, but I haven't looked into this deeply enough. -- Ian Price -- shift-reset.com "Progr

bug#17703: (ice-9 curried-definitions) is missing define*-public

2014-07-31 Thread Ian Price
I don't get that much output on a recent guile, FWIW. I've added define*-public to (ice-9 curried-definitions). Closing this, thanks. -- 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#18127: add-to-load-path adds a path twice

2014-07-30 Thread Ian Price
add-to-load-compiled-path’? I > think such function may also be useful. Fair question. I have no idea about the answer, but I've not touched this one. As a general principle, I wouldn't like to see us have a separate macro for each of these. Thanks -- Ian Price -- shift-reset.

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 i

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

2013-10-23 Thread Ian Price
Ian Price 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, whi

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

2013-10-23 Thread Ian Price
tcher' is the right place to fix this, rather than further up the stack. Various 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 --

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
at gives an error, you should hopefully get an error 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#15533: optimizing away noticeable effects

2013-10-23 Thread Ian Price
Ian Price 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 rewar

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
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#15370: weirdness w/ uniform-vector-read! compat

2013-10-20 Thread Ian Price
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#15370: weirdness w/ uniform-vector-read! compat

2013-10-20 Thread Ian Price
as 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 doin

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

2013-10-20 Thread Ian Price
al. Since 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#15586: [PATCH] Documentation fix for unfold-right in srfi-1

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

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#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 i

bug#15533: optimizing away noticeable effects

2013-10-08 Thread Ian Price
Ian Price 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 (lexi

bug#15533: optimizing away noticeable effects

2013-10-07 Thread Ian Price
l (find-definition tail) which returns a const (). We 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 "Progr

bug#15533: optimizing away noticeable effects

2013-10-05 Thread Ian Price
$17 = (a b c) I'm currently on the lua branch, which 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

bug#14449: Guile 2.1 and macro nesting

2013-10-03 Thread Ian Price
efine-macro (,abbrev var expr) `(,',proc (lambda (,var) ,expr scheme@(guile-user)> (def-caller katch call/cc) scheme@(guile-user)> (macroexpand '(katch x (+ 1 1))) $2 = # scheme@(guile-user)> ,expand (katch a (+ 1 1)) $3 = (call/cc (lambda (a) (+ 1 1))) scheme@(gu

bug#15227: Possible bug in (web server)

2013-09-13 Thread Ian Price
why it doesn't happen on web calls but only localhost. Aside: The above change to read-response-body has not been committed. I'm undecided as to whether or not read-response-body should handle checking the size of the content body. Currently it doesn't, but we have separate c

bug#15136: get-string-all documentation

2013-08-19 Thread Ian Price
Josep Portella Florit 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 Pric

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

2013-05-06 Thread Ian Price
e multiple values. On #guile, 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#14109: No code for 'bytevector->string' and 'string->bytevector'

2013-04-01 Thread Ian Price
in the info file[0], and warn about them not being implemented like we do e.g. with open-bytevector-input-port. For the moment, the (rnrs bytevectors) module has string->utf8, string->utf16, and string->utf32 which are implemented. Though, this doesn't let you specify eol-style or han

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 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 scr

bug#13865: redefinition of +

2013-03-03 Thread Ian Price
e):44: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 it again" - from "The Wizardy Compiled"

bug#13827: faulty range check in bytevector accessor

2013-02-28 Thread Ian Price
in mind? I'm going away 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#13827: faulty range check in bytevector accessor

2013-02-26 Thread Ian Price
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 oppo

bug#13485: wrong warning for format ~!

2013-01-28 Thread Ian Price
some better errors 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 Fr

bug#13485: wrong warning for format ~!

2013-01-19 Thread Ian Price
Ian Price 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 t

bug#13485: wrong warning for format ~!

2013-01-19 Thread Ian Price
Ian Price 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, which w

bug#13485: wrong warning for format ~!

2013-01-18 Thread Ian Price
the ~! option gets picked up by the else case of the loop, which adds one to both the max and minimum number of parameters. Clearly this is a mistake. I'm currently looking through the format docs to see if any others are mishandled, and will post a patch later. PS. I'm really glad this wa

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

2013-01-12 Thread Ian Price
Ian Price 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 to a differ

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

2012-12-08 Thread Ian Price
way. 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. 0. I have checked that 1 corresponds to SHUT_WR on my platform -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for do

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

2012-12-08 Thread Ian Price
Ian Price 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 for doing it

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

2012-12-08 Thread Ian Price
e request headers. Strange though, I never noticed this come up when adding the chunked support in the first place. -- 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#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#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.

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

2012-09-06 Thread Ian Price
ive a bad formal description. Anyway, I hope I've met your expectations with this one. >> +@deffn {Syntax} define* (@dots{} (name args @dots{}) @dots{}) expression >> @dots{} > > Here $B!F(Bdeffnx$B!G(B could be used instead, like: I was not aware of that options, done.

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

2012-09-04 Thread Ian Price
s.html#Lambda-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

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

2012-09-04 Thread Ian Price
pproaches though, since it does duplicate code, though this code is IMO trivial. -- 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 fb23b4a49e9c1f5c15ef0ceb2ee1903

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

2012-08-21 Thread Ian Price
~H. I've attached a patch to fix 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

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

2012-08-20 Thread Ian Price
st.github.com/3167775 ages ago, 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#12244: [patch] URI encoding bugs

2012-08-20 Thread Ian Price
u have a string with no unreserved 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-rese

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

2012-08-12 Thread Ian Price
e vector in $34 or 3. So the call works out at (unroll db 16 (- 19 3)) == (unroll db 16 16) and obviously 16 + 16 > 19 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#12173: docstrings and .guile

2012-08-10 Thread Ian Price
-user)> ,d 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. T

bug#12095: Protecting pointer on bytevector with guardian does not protect memory

2012-08-06 Thread Ian Price
t have html prag, I substituted for various other libraries (ice-9 regex)/(ice-9 threads)/(sxml simple)/ and my own (pfds queues). Is this bug somehow particular to htmlprag, or can you confirm it with others? -- Ian Price "Programming is like pinball. The reward for doing it well is the oppo

bug#11887: string->number edge cases

2012-07-09 Thread Ian Price
.org/browser/release/4/numbers/trunk/tests/string-conversion.scm 1. http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#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 Wiz

bug#11087: vector limitation in compiling to bytecode

2012-07-05 Thread Ian Price
Andy Wingo writes: > On Sat 24 Mar 2012 21:09, Ian Price 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 &g

bug#11215: [feature request] better backtraces

2012-04-10 Thread Ian Price
ages with tail calls, though it's usually more work and requires overhead, but it's something to think about for the --debug engine at least. It would also be nice as a specific counterexample of an implementation in practice for all the tail call naysayers. :) -- Ian Price "Programmi

bug#11087: vector limitation in compiling to bytecode

2012-03-24 Thread Ian Price
just 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#10522: Patch: Improve optional variable and keyword notation in manual

2012-02-03 Thread Ian Price
Andy Wingo 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#10352: Broken pipe while generating guile-procedures.txt

2012-01-31 Thread Ian Price
Andy Wingo 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 is the opportuni

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

2012-01-27 Thread Ian Price
l...@gnu.org (Ludovic Courtès) writes: > Hi Ian, > > I fail to see the patch, and to retrieve it from > <http://bugs.gnu.org/10616>. Could you resend it inline? Bah, that's twice this has happened recently. -- Ian Price "Programming is like pinball. The rew

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

2012-01-26 Thread Ian Price
Ian Price 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 libgui

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

2012-01-26 Thread Ian Price
Ian Price writes: > scheme@(guile−user)> (let* ((port (make-soft-port >(vector #f #f (lambda () 'flushed) #f #f) >"rw"))) >(force-output port)) > scheme@(guile−user)&g

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

2012-01-26 Thread Ian Price
() 'flushed) #f #f) "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.

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

2012-01-22 Thread Ian Price
able, it should be a matter of changing the catch. I'm not quite sure how to add 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 baaf226cb91

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

2012-01-20 Thread Ian Price
ypond/. 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 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-20 Thread Ian Price
/local/share/guile/site/2.0" "/usr/local/share/guile/site" "/usr/local/share/guile") scheme@(guile-user)> %load-compiled-path $2 = ("notadir2" "/usr/local/lib/guile/2.0/ccache" "/usr/local/lib/guile/2.0/site-ccache") scheme@(guile-user)>

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

2012-01-19 Thread Ian Price
#x27;t reproduce this on a recent stable-2.0 with fedora 16. [ian@Kagami ~]$ env GUILE_LOAD_PATH=notadir guile -q GNU Guile 2.0.3.155-6f0e5 .. scheme@(guile-user)> %load-path $1 = ("notadir" "/usr/local/share/guile/2.0" "/usr/local/share/guile/site/2.0" &qu

bug#9776: case-lambda should accept zero clauses

2012-01-07 Thread Ian Price
(apply (lambda r b1 b2 ...) args scheme@(guile−user)> (case-lambda) $22 = #:734:0 args> scheme@(guile−user)> ($22) ERROR: ERROR: R6RS exception: 1. &assertion 2. &message: "unexpected number of arguments" 3. &irritants: () Entering a new prompt.

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

2011-12-23 Thread Ian Price
at the point of the 'include' macro use at macro expansion time"? 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#10326: Need to document %load-path, %load-compiled-path, and add %search-load-compiled-path and load-compiled-from-path to API

2011-12-23 Thread Ian Price
e' > > — Scheme Procedure: load-compiled-from-path filename > > Similar to load-compiled, but searches for filename in the > compiled load paths. If the above is correct, this is just (compose load-compiled compiled-file-name), yes? Might be useful for symmetry with 'load-from-path' -- 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
so clearly that's not enough anymore, and I would need to see which other commits depend on SCM_HEAP_OBJECT_BASE before I could 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#10250: Problems using optargs with function docstrings

2011-12-08 Thread Ian Price
cs go here" (define (frob p) (display p) (newline)) (frob bar)) (foo) baz scheme@(guile−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#10246: R6RS library form broken?

2011-12-07 Thread Ian Price
(rnrs base) (define (make-counter start) (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 "Pro

bug#9844: peval & dynamic-wind

2011-11-09 Thread Ian Price
> Sorry it's taken so long, but this is fixed now in stable-2.0 Yes, this works fine for me. Much appreciated. -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

bug#9900: Using a guardian on a value in a weak hash

2011-10-29 Thread Ian Price
cbug.scm.go # # #f which isn't correct either, but not surprising if something else is holding onto f. -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

bug#9900: Using a guardian on a value in a weak hash

2011-10-28 Thread Ian Price
ine) (gc)(gc)(gc)(gc)(gc)(gc)(gc)(gc)(gc)(gc)(gc)(gc) (write finalizer-table) (newline) (write (guardian)) (newline) will produce the output [ian@Kagami guile]$ guile -s /tmp/gcbug.scm # # #f [ian@Kagami guile]$ -- Ian Price "Programming is like pinball. The reward for doing it we

bug#9883: R6RS fold-left

2011-10-26 Thread Ian Price
er, I 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 fo

bug#9844: peval & dynamic-wind

2011-10-23 Thread Ian Price
t; If I place a (format #t "entered? ~s~%" entered?) before 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

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 Date: Tue, 4

Re: header parsing

2011-09-10 Thread Ian Price
of course), 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 #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: 0001-Fix-listen-option-to-all

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 Fro

header parsing

2011-09-09 Thread Ian Price
x27;s law[1], but the commentary at the top of http.scm says there shouldn't be too many compatibility hacks. Patches are supplied for both. [0]. https://tools.ietf.org/html/rfc822#section-5.1 (see 1*2DIGIT) [1]. Be conservative in what you send; be liberal in what you accept. -- Ian Price

Re: r6rs define-record-type is unhygienic

2011-06-17 Thread Ian Price
((system base compile) #:select (compile)) >>:use-module (test-suite lib)) > > Along the same lines, #:use-module and #:version are the preferred > spellings now. Done. > Want to fix the line wrapping and the commit message and resubmit? Attached. --

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

2011-06-11 Thread Ian Price
Torstein Winterseth 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. > > Testcase: > >

r6rs define-record-type is unhygienic

2011-06-11 Thread Ian Price
messages should be improved, but I can do that too if you would like. If there are any problems let me know, Ian >From 05dcbb4625dfaf38209292430096881fc00d6c68 Mon Sep 17 00:00:00 2001 From: Ian Price Date: Sat, 11 Jun 2011 02:43:08 +0100 Subject: [PATCH] Fix hygiene issues with `define-re

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

2011-04-11 Thread Ian Price
Andy Wingo 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: [r6rs] frontier port position rejected with bytevector ports

2011-04-07 Thread Ian Price
on Sep 17 00:00:00 2001 From: Ian Price 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"):

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. http://www.r6

(@ (rnrs base) log) optional second argument

2011-04-05 Thread Ian Price
Hello guilers, Guile does not implement the optional second argument for log. I have attached a simple patch that implements it using the formula you learn in high school. I have left the behaviour for two special cases alone, as there is no clear right answer among the current R6RS implementatio

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

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)) (dynamic-wind

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 t