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"
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
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"
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.
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
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"
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
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 --
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"
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
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"
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"
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
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"
Whoops, forgot to close it.
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
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
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
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
$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
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
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
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
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"
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
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
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"
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"
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
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
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
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
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
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
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
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
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"
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"
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.
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.
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
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
~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
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"
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
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"
-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
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
.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
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
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
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"
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
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
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
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
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
() '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.
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
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"
/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)>
#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
(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.
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"
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"
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"
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"
(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
> 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"
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"
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
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
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
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
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"
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
> 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
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
((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.
--
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:
>
>
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
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
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"):
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
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
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
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
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
88 matches
Mail list logo