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
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))
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
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.
: 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
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
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.
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
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
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:
), 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
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
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
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
)
(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
−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
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
? 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
@(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
/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
/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
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
)
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
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
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
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
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
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
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
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
#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
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
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
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
, 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
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
-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
.
+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
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
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
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
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
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
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
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
. 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
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
: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
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
. 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
, 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
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
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
(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
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
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
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
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
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
Whoops, forgot to close it.
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
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
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
-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
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
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
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
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
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
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
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
71 matches
Mail list logo