bug#10836: guardians and weak references

2012-02-28 Thread Mark H Weaver
Andy Wingo writes: > I tried reimplementing weak tables using finalizers. (The finalizers > remove elements from the table). As long as we ensure that the > guardian's finalizers run first, which is possible for Guile to do, that > does fix this bug. > > However, using finalizers has the downsid

bug#10918: srfi-4 functions return wrong length for bytevectors

2012-03-01 Thread Mark H Weaver
Tobias Brandt writes: > Applying any of the f/u/s*vector-length functions to > a bytevector returns the wrong size. Specifically they > multiply (instead of dividing) the size of the bytevector > by the size of one element. > > scheme@(guile-user)> (use-modules (rnrs bytevectors)) > scheme@(guile

bug#10914: Segfault when creating vector >= 2^16

2012-03-01 Thread Mark H Weaver
Tobias Brandt writes: > Guile segfaults when a vector is created with size >= 2^16 = 65535. > Observe: > > scheme@(guile-user)> (define v1 (make-vector 65534)) > scheme@(guile-user)> (define v2 (make-vector 65535)) > Segmentation fault I cannot reproduce this. Please give us more details. What

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

2012-03-07 Thread Mark H Weaver
Hi Ian, Ian Price writes: > From 8a9524014ce85fb34fe5cfd7a2667395ce0cdf5d Mon Sep 17 00:00:00 2001 > From: Ian Price > Date: Fri, 27 Jan 2012 06:38:09 + > Subject: [PATCH] Fix flush on soft ports, so that it actually runs. > > * libguile/vports.c (sf_flush): Remove conditional testing the >

bug#10756: [2.0.5+] Miscompilation with peval: local shadows module-ref

2012-03-07 Thread Mark H Weaver
Andy Wingo writes: > On Wed 08 Feb 2012 00:04, l...@gnu.org (Ludovic Courtès) writes: > >> scheme@(guile-user)> ,optimize (define (foo) (define bar (@ (chbouib) bar)) >> bar) >> $11 = (define foo >> (lambda () >> (let ((bar-1510 (if #f #f))) >> (letrec* >> () >> (begi

bug#10756: [2.0.5+] Miscompilation with peval: local shadows module-ref

2012-03-07 Thread Mark H Weaver
And here's the actual patch. Mark >From 13668b618c4345d51a5667056d1d515c21a874a9 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Thu, 8 Mar 2012 01:24:25 -0500 Subject: [PATCH] Fix @ and @@ to not capture lexicals; new @@ @@ form for R6RS libraries MIME-Version: 1.0 Content-Ty

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

2012-03-08 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Ian Price skribis: > >> >> - if (pt->write_pos > pt->write_buf) >> -{ >> - /* write the byte. */ >> - scm_call_1 (SCM_SIMPLE_VECTOR_REF (stream, 0), >> - SCM_MAKE_CHAR (*pt->write_buf)); >> - pt->write_pos = pt->write_buf

bug#10992: error signaled for syntax expression

2012-03-11 Thread Mark H Weaver
Stefan Israelsson Tampe writes: > Hi, > > > I wanted to enter meta data where the symbols are important into a > syntax object and tried to be smart > in doing that but stumbled on this because loading (a simplified > example) the attached file I get an annoying error e.g. > > ERROR: bad src > $7

bug#11083: guile-2.0.5 bug report

2012-03-24 Thread Mark H Weaver
Kiyoshi KANAZAWA writes: > I'm trying to install guile-2.0.5 on Solaris 10 x86-64 system. > I have some problems. > > (1) make fails with threads > make fails with configure CC="gcc -I/usr/local/GNU/include > -L/usr/local/GNU/lib" --prefix=/usr/local/GNU > make stops with messages as: > make[3]:

bug#11083: guile-2.0.5 bug report

2012-03-28 Thread Mark H Weaver
Kiyoshi KANAZAWA writes: > Thank you Mark, > Sending this again with Cc: > > (1) Now, make succeeds with threads > Version of libgc is 7.1, but I found some macro define is required for > threads on Solaris. > After re-install gc-7.1 with -DGC_SOLARIS_THREADS or -DGC_THREADS, > make succeeds. Th

bug#11083: guile-2.0.5 bug report

2012-04-04 Thread Mark H Weaver
Kiyoshi KANAZAWA writes: > I analysed the problems. > (1) Why can not link libguile-2.0.so.22 > LD_LIBRARY_PATH_64 is not set correctly. > I changed "LD_LIBRARY_PATH" to "LD_LIBRARY_PATH_64" in all the files > in guile-2.0.5, and found libguile-2.0.so.22 can be linked. This is a libtool issue. S

bug#11083: guile-2.0.5 bug report

2012-04-05 Thread Mark H Weaver
Hi Ludovic, It appears that 'environ_locale_charset' returns a bad address on Solaris 10, but only when Guile is compiled with '-m64'. Kiyoshi says that 5de0053178b4acc793ae62838175e5f3ab56c603 is applied in his tree. Do you have time to look into this? Regards, Mark Kiyoshi KANAZ

bug#11083: guile-2.0.5 bug report

2012-04-10 Thread Mark H Weaver
Hi Kiyoshi, I wrote: > It appears that 'environ_locale_charset' returns a bad address on > Solaris 10, but only when Guile is compiled with '-m64'. Kiyoshi: would you be willing to help investigate further? I would recommend running the 64-bit version of Guile in a debugger, setting a breakpoint

bug#11197: problems with string ports and unicode

2012-04-11 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > It may be that your string ports are created with a non-Unicode-capable > encoding. Try something like: > > (define p > (with-fluids ((%default-port-encoding "UTF-8")) > (open-input-string "čtyří"))) IMO, this should not be needed. Port encodi

bug#11197: problems with string ports and unicode

2012-04-11 Thread Mark H Weaver
Hi Ludovic, l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: >> l...@gnu.org (Ludovic Courtès) writes: >>> It may be that your string ports are created with a non-Unicode-capable >>> encoding. Try something like: >>> >>> (define p

bug#11198: problems reading data with a "read-hash-extend" registered reader

2012-04-11 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Klaus Stehle skribis: > >> (read-hash-extend #\R read-R) > > Unlike previous versions, Guile 2.0 has distinct compilation and > run-time phases. Here you probably want the reader extension to become > effective at compile-time (when compiling), and at eval

bug#11198: problems reading data with a "read-hash-extend" registered reader

2012-04-22 Thread Mark H Weaver
Klaus Stehle writes: > On Wed, 11 Apr 2012, Mark H Weaver wrote: >> l...@gnu.org (Ludovic Courtès) writes: >> > Klaus Stehle skribis: >> > >> >> (read-hash-extend #\R read-R) >> > >> > Unlike previous versions, Guile 2.0 has distinct comp

bug#11564: "Broken pipe" when compiling from git

2012-05-27 Thread Mark H Weaver
Mark Skilbeck writes: > Hi, all. I've encountered an issue when compiling from the git > repo. The relevant output from make follows: [Guile crashed on its first execution while trying to build docs] I've spoken with Mark on irc and determined that this was due to building stable-2.0 within a wor

bug#11564: "Broken pipe" when compiling from git

2012-05-28 Thread Mark H Weaver
Thien-Thi Nguyen writes: >[crash] was due to building stable-2.0 within a working >directory that had previously built master and not been cleaned >properly before rebuilding. > > What does "cleaned properly" mean? All I know is that he built and installed the master branch, and then

bug#10474: Progress

2012-09-12 Thread Mark H Weaver
On 09/11/2012 01:17 PM, LRN wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Any progress on this? I've tried 2.0.6, and it's still a mess. Compiled with a few hacks (disabled networking and posix, copied getpid definition to random.c), but it still fails with Throw to key system-error with

bug#12665: regexp fault for closing square bracket within character class

2012-10-17 Thread Mark H Weaver
Panicz Maciej Godek writes: > guile 2.0.5-deb+1-1 > (string-match "[\\[]" "[") > ===> #("[" (0 . 1)) > (string-match "[\\]]" "]") > ===> #f As documented in "Syntax of Regular Expressions" of the Emacs manual (to which section 6.15 of the Guile manual refers): To include a `]' in a characte

bug#12809: segfault with (weird use of) make-struct and make-vtable

2012-11-05 Thread Mark H Weaver
This is a duplicate of bug #12808, so I'm closing this one. Mark

bug#13031: large numbers

2012-11-30 Thread Mark H Weaver
Jozef Chraplewski writes: > I use guile 2.0.6, compiled on macbook pro 7.1 osx 10.8.2 > > I've compiled guild via home-brew package manager. Could you please run "make check" in the build directory and show us the output if any errors are reported? Thanks! Mark

bug#13031: large numbers

2012-11-30 Thread Mark H Weaver
Hi Jozef, Jozef Chraplewski writes: > It looks that guile returns incorrect results when it works with really big > numbers. Please disregard my earlier request. Can you please run the following code and send us the output? (let ((modulus (expt 10 10))) (define (last10 n) (modulo n modu

bug#13031: large numbers

2012-12-03 Thread Mark H Weaver
Hi Jozef, I guess that on your system, (* 65536 65536) evaluates to 0. Is that right? If so, I believe the problem is caused by an aggressive optimization in recent versions of Clang, which breaks Guile's logic for detecting overflow when multiplying two fixnums. Currently, Guile computes kk = x

bug#13031: large numbers

2012-12-05 Thread Mark H Weaver
I wrote: > I guess that on your system, (* 65536 65536) evaluates to 0. > Is that right? I should have mentioned that if you're on a 64-bit system, then it may instead be the case that (* (expt 2 32) (expt 2 32)) evaluates to 0. Same bug either way, and the rest of my previous email still applies.

bug#13031: large numbers

2012-12-07 Thread Mark H Weaver
Hi Jozef, Jozef Chraplewski writes: > Yes, I use 64-bit machine and (* (expt 2 32) (expt 2 32)) produces 0 (without > the patch). > > I've applied your fix and it works perfectly. Excellent! Thanks for bringing this problem to our attention, and for helping us track it down :) > I suppose tha

bug#13509: wrong "definition in expression context" in R6RS mode

2013-01-23 Thread Mark H Weaver
s for an unrelated bug that I discovered during my investigation. Reviews solicited, otherwise I'll commit these in a week or so. Mark >From 2b8587d090d13f044f3cc4d221e832a655dcc1cd Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Wed, 23 Jan 2013 17:27:50 -0500 Subject: [PATCH

bug#13534:

2013-01-24 Thread Mark H Weaver
Daniel Llorens writes: > Ok, it seems that this was fixed before I reported it. Close? I see that ",arg0" was changed to ",(car args)" but you also wrote: > ,arg0 should be ,(car args) > > However, even after fixing this, there are problems with the load path Can you verify that the "problems

bug#13342: [PARTIALLY SOLVED] bug#13342: Errors trying to build Guile 2.0.7

2013-01-27 Thread Mark H Weaver
Hi Ludovic, Thanks for looking into this! I think I understand the problem now. l...@gnu.org (Ludovic Courtès) writes: > Consider this example: > > #include > > int64_t > test_sum (int8_t a, int64_t b) > { > return a + b; > } > > When compiled with GCC 4.6, the assembly is: > > test_sum: > .L

bug#13342: Errors trying to build Guile 2.0.7

2013-01-30 Thread Mark H Weaver
FYI, I've posted about this to the libffi-discuss mailing list. http://sourceware.org/ml/libffi-discuss/2013/msg00012.html Mark

bug#13509: wrong "definition in expression context" in R6RS mode

2013-01-30 Thread Mark H Weaver
Marco Maggi writes: > #!r6rs > (import (rnrs)) > (define (alpha) > (define-syntax define-special > (syntax-rules () > ((_ ?who ?val) >(define ?who ?val > (define-special beta #t) > #f) > (alpha) > > should succeed, but instead it

bug#13342: closed (Re: bug#13342: Errors trying to build Guile 2.0.7) , bug#13386: closed (Re: bug#13342: Errors trying to build Guile 2.0.7)

2013-01-31 Thread Mark H Weaver
Hi Peter, Peter Teeson writes: > Would you please report this over at LLVM since you did the work to > discover it. Okay, I'll take care of it. I'm also working with the libffi folks to work around this problem in the interim. The next libffi release (due out fairly soon) will interface proper

bug#13342: closed (Re: bug#13342: Errors trying to build Guile 2.0.7) , bug#13386: closed (Re: bug#13342: Errors trying to build Guile 2.0.7)

2013-02-02 Thread Mark H Weaver
Hi Peter, Peter Teeson wrote: > When you think things are ready to test I'll be glad to do so on my > Mac setup. I believe that this libffi patch will fix the problem. Would you like to test it? It would also be helpful if you could run "make check" on both libffi and Guile and let us know of

bug#13386: bug#13342: closed (Re: bug#13342: Errors trying to build Guile 2.0.7) , bug#13386: closed (Re: bug#13342: Errors trying to build Guile 2.0.7)

2013-02-02 Thread Mark H Weaver
Peter Teeson writes: > …... > PASS: test-asmobs > PASS: test-ffi > PASS: test-list > …… > === > All 29 tests passed > === Excellent! We can now submit the libffi patch upstream. Thanks, Mark

bug#13741: guile-2.0: optimize, and eq-ness of literals (test-suite)

2013-02-18 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > However, it’s fundamentally wrong to rely on eq? to compare numbers. So > the test case you mention seems buggy, to start with. Agreed. I removed the buggy test. Thanks, Mark

bug#13741: [PATCH] test-suite: eq-ness of numbers, characters is unspecified

2013-02-18 Thread Mark H Weaver
Daniel Hartwig writes: > * test-suite/tests/00-socket.test: > * test-suite/tests/alist.test: > * test-suite/tests/elisp.test: > * test-suite/tests/encoding-iso88591.test: > * test-suite/tests/encoding-iso88597.test: > * test-suite/tests/encoding-utf8.test: > * test-suite/tests/hash.test: > * test-

bug#12827: [PATCH] Tweak web modules, support relative URIs

2013-02-24 Thread Mark H Weaver
Hi Daniel, Daniel Hartwig writes: > * Terminology > > The terminology used in latest URI spec. (RFC 3986) is not widely used > elsewhere. Not by Guile, not by the HTTP spec., or other sources. > Specifically, it defines these terms: > > - URI: scheme rest ... [fragment] > - Absolute-URI: scheme

bug#12827: [PATCH] Tweak web modules, support relative URIs

2013-02-24 Thread Mark H Weaver
Daniel Hartwig writes: > On 24 February 2013 18:45, Mark H Weaver wrote: >> I would argue that Absolute-URIs are more often appropriate in typical >> user code. The reason is that outside of URI-handling libraries, most >> code that deals with URIs simply use them as unive

bug#10627: char-ready? is broken for multibyte encodings

2013-02-24 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > On Sat 28 Jan 2012 11:21, Mark H Weaver writes: > >> The R5RS specifies that if 'char-ready?' returns #t, then the next >> 'read-char' operation is guaranteed not to hang. This is not currently >> the case for ports u

bug#10627: char-ready? is broken for multibyte encodings

2013-02-24 Thread Mark H Weaver
Andy Wingo writes: > On Sun 24 Feb 2013 21:14, Mark H Weaver writes: > >> Maybe I'm missing something, but I don't see any semantic problem here, >> and it seems straightforward to implement. 'char-ready?' should simply >> read bytes until either a

bug#13809: Wishlist: support > 10 args to foreign functions

2013-02-24 Thread Mark H Weaver
The current limitation of 10 arguments to foreign functions is proving to be a problem for some libraries, in particular the Allegro game library. Is there a reason why raising this limit to 16 or 20 would be undesirable? What tradeoffs are involved? Thanks, Mark

bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2

2013-02-24 Thread Mark H Weaver
reopen 13768 thanks Andy Wingo writes: > On Wed 20 Feb 2013 00:38, Jan Schukat writes: > >> What happens is, in random.c in random_state_of_last_resort on line 668 >> scm_getpid is used to seed the random generator. So either a >> preprocessor switch or a hand constructed scm like in scm_getpid

bug#10015: Guile-2.0.3: test-ffi fails

2013-02-24 Thread Mark H Weaver
Hi Hans. Following up on an old bug report: Hans Aberg wrote: > bad return from expression `(f-sum -1 2000 -3 400)': expected > 3971999; got 3972255 > FAIL: test-ffi This turns out to be due to a bug in LLVM, namely that it improperly assumes that signed integer arguments w

bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2

2013-02-25 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > Our PRNG is not secure. We should not be making arguments from the > perspective of security. (I think including the PID is a good thing, > but not because of security.) Indeed, point well taken. > Why don't we just add the result of getpid() without relying on t

bug#10627: char-ready? is broken for multibyte encodings

2013-02-26 Thread Mark H Weaver
Andy Wingo writes: > Are you proposing that `char-ready?' do a nonblocking read if > the buffer is empty? That could work. Yes. I suspect that something along these lines is already implemented, because I don't see how 'u8-ready?' could work properly without it. > Do what you like to do :) Bu

bug#13809: [PATCH] Support calling foreign functions of 10 or more arguments

2013-02-26 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > On Mon 25 Feb 2013 01:34, Mark H Weaver writes: > >> The current limitation of 10 arguments to foreign functions is proving >> to be a problem for some libraries, in particular the Allegro game >> library. >> >> Is there a reaso

bug#13827: faulty range check in bytevector accessor

2013-02-26 Thread Mark H Weaver
Ian Price writes: > After some talk on #guile, Mark and I believe it comes down to the range > check in INTEGER_ACCESSOR_PROLOGUE in bytevectors.c Going a bit further: INTEGER_ACCESSOR_PROLOGUE uses 'scm_to_uint', which I believe should fail for 2^32 on a 32-bit machine. According to numbers.h:4

bug#13809: [PATCH] Support calling foreign functions of 10 or more arguments

2013-02-27 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > On Tue 26 Feb 2013 23:40, Mark H Weaver writes: > >> I've attached a patch that implements dynamic allocation of objcode >> stubs for larger arities. What do you think? > > LGTM. Please lazily initialize the vector as well. Okay.

bug#13827: faulty range check in bytevector accessor

2013-02-27 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Ian Price skribis: > >> Branch: master >> Commit: 9b977c836bf147d386944c401113aba32776fa68 >> System: 32 bit x86 Fedora 16 >> >> (use-modules (rnrs bytevectors)) >> (define not-32-bit (expt 2 32)) >> (define bv (make-bytevector 4)) >> (bytevector-u32-set!

bug#13835: [PATCH] Let reverse! accept arbitrary types as second argument (new_tail)

2013-02-27 Thread Mark H Weaver
David Kastrup writes: > There is no reason to restrict the type of the second argument to proper > lists as it is added as last CDR to the list without interpretation. > > This allows for stack-depth friendly usage [...] Looks good to me. Applied, thanks! Mark

bug#13838: [PATCH] Fix duplicate removal of with-fluids

2013-02-28 Thread Mark H Weaver
Applied, thanks. Mark

bug#13809: [PATCH] Support calling foreign functions of 10 or more arguments

2013-02-28 Thread Mark H Weaver
Andy Wingo writes: > Looks great, please apply. Thank you! Pushed. Thanks! Mark

bug#13843: [PATCH] Fix "later bindings win" stipulation for with-fluids

2013-02-28 Thread Mark H Weaver
Fixed in 8dd01861a9a0331b912a1ae6310e64eb6b47c29c. Thanks! Mark

bug#13741: [PATCH] test-suite: eq-ness of numbers, characters is unspecified

2013-03-01 Thread Mark H Weaver
I wrote: > Daniel Hartwig writes: >> * test-suite/tests/00-socket.test: >> * test-suite/tests/alist.test: >> * test-suite/tests/elisp.test: >> * test-suite/tests/encoding-iso88591.test: >> * test-suite/tests/encoding-iso88597.test: >> * test-suite/tests/encoding-utf8.test: >> * test-suite/tests/h

bug#13741: guile-2.0: optimize, and eq-ness of literals (test-suite)

2013-03-01 Thread Mark H Weaver
Daniel Hartwig writes: > On 18 February 2013 17:16, Ludovic Courtès wrote: >> Quoth R5RS: >> >> `Eq?''s behavior on numbers and characters is >> implementation-dependent, but it will always return either true or >> false, and will return true only when `eqv?' would also return >>

bug#10519: guile and (mini-)gmp

2013-03-02 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > A ping on this bug on getting Guile to have the possibility of using an > embedded copy of mini-gmp. I'm embarrassed to admit that the integration of mini-gmp into guile has long been waiting on my pending numerics patches. I'll try to get going on this (and some o

bug#11887: string->number edge cases

2013-03-05 Thread Mark H Weaver
Andy Wingo writes: > On Mon 09 Jul 2012 14:29, Ian Price writes: > >> If the number contains a division by zero, we get a numerical overflow >> error. >> >> scheme@(guile−user)> (string->number "3/0") >> ERROR: In procedure string−>number: >> ERROR: Throw to key `numerical−overflow' with args `(

bug#10519: guile and (mini-)gmp

2013-03-05 Thread Mark H Weaver
Hello all, I wrote: > I'm embarrassed to admit that the integration of mini-gmp into guile has > long been waiting on my pending numerics patches. I'll try to get going > on this (and some other things) for the 2.0.8 release. > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10519#8 I've posted a

bug#11887: string->number edge cases

2013-03-06 Thread Mark H Weaver
Daniel Llorens writes: > I think this isn't working as it should either. > > scheme@(guile-user)> +1i > $1 = 0.0+1.0i > scheme@(guile-user)> 1i > ;;; : warning: possibly unbound variable `#{1i}#' > ERROR: In procedure #: > ERROR: In procedure module-lookup: Unbound variable: #{1i}# No, this is c

bug#11887: [PATCH] Improve standards conformance of string->number (was Re: bug#11887: string->number edge cases)

2013-03-06 Thread Mark H Weaver
Here's a patch to fix these problems. Comments and suggestions welcome. Mark >From a1926777b03445d397bb1069b325d243e765f84b Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Wed, 6 Mar 2013 12:52:39 -0500 Subject: [PATCH] Improve standards conformance of string->number.

bug#11887: string->number edge cases

2013-03-06 Thread Mark H Weaver
Hi Peter, Peter Bex writes: > On Tue, Mar 05, 2013 at 02:04:55PM -0500, Mark H Weaver wrote: >> FYI, I produced a simple patch a while back to fix this (see below), but >> it had an interesting side effect: it caused the reader to read things >> like "3/0"

bug#11887: [PATCH] Improve standards conformance of string->number (was Re: bug#11887: string->number edge cases)

2013-03-07 Thread Mark H Weaver
I wrote: > Here's a patch to fix these problems. Comments and suggestions welcome. I went ahead and pushed this to stable-2.0. I'm closing this bug. Thanks, Mark

bug#13905: (max inexact exact) => always inexact?

2013-03-08 Thread Mark H Weaver
tags 13905 notabug close 13905 thanks Daniel Llorens writes: > Not necessarily a bug, but I'd like to hear some thoughts on this. > > In current Guile > > (max -inf.0 9) => 9.0 Yes, and this is correct. In general, the error of an inexact number is unbounded. Consider the inexact infinities (

bug#13905: (max inexact exact) => always inexact?

2013-03-08 Thread Mark H Weaver
Daniel Llorens writes: > My interest in this is that I don't want > > (fold max -inf.0 exact-number-list) > > to return an inexact number. By the way, there's an easy way to accomplish what you want. Simply use 'reduce' (from SRFI-1) instead of 'fold': (reduce max -inf.0 exact-number-list)

bug#12216: peek-char incorrectly *CONSUMES* eof

2013-03-13 Thread Mark H Weaver
Andy Wingo writes: > On Wed 13 Mar 2013 14:09, "David A. Wheeler" writes: > >> Andy Wingo: >> >>> So, we are repeating ourselves here :) I agree with you but I can't see >>> a good way of implementing this. >> >> Would the per-port reader options be reasonable place to store the info >> about E

bug#12216: peek-char incorrectly *CONSUMES* eof

2013-03-14 Thread Mark H Weaver
Andy Wingo writes: > On Wed 13 Mar 2013 19:10, Mark H Weaver writes: > >> I don't know, it might not be that bad, now that we've agreed on a way >> to extend the port structure in 2.0. Maybe we could just have a "last >> peek-char returned EOF" fl

bug#12216: Problems with Guile's number printer

2013-03-17 Thread Mark H Weaver
I've pushed 1ea37620c2c1794f7685b312d2530676a078ada7 to stable-2.0, which fixes our number printer. Closing this bug. Thanks, Mark

bug#10519: guile and (mini-)gmp

2013-03-17 Thread Mark H Weaver
FYI, I've pushed patches to Guile's git repository (stable-2.0 branch) which eliminate the known obstacles to mini-gmp integration. Mark

bug#12216: Problems with Guile's number printer

2013-03-17 Thread Mark H Weaver
I wrote: > I've pushed 1ea37620c2c1794f7685b312d2530676a078ada7 to stable-2.0, > which fixes our number printer. Closing this bug. Sorry, I sent this to the wrong bug. Oops :) Mark

bug#13757: Problems with Guile's number printer

2013-03-17 Thread Mark H Weaver
I've pushed 1ea37620c2c1794f7685b312d2530676a078ada7 to stable-2.0, which fixes our number printer. Closing this bug. Thanks, Mark

bug#13995: Problem with macros whose expansions define and use auxiliary macros

2013-03-18 Thread Mark H Weaver
Consider the following module: --8<---cut here---start->8--- (define-module (foo) #:export (foo)) (define-syntax-rule (foo bar) (begin (define-syntax-rule (blah x) x) (define (bar val) (blah val --8<---cut here---end-

bug#13995: Problem with macros whose expansions define and use auxiliary macros

2013-03-20 Thread Mark H Weaver
Andy Wingo writes: > Have you tried master? I just did, and my toy example works there. Do you think that commit de41e56492666801078e73860a358e1c63cbc8c2 is the reason? It would be nice to get this working in stable-2.0 as well, but I guess that would require working through our disagreement ov

bug#14001: guile-2.0.7 : 1 of 1 test failed on Debian Linux 3.2.0-4-powerpc64

2013-03-22 Thread Mark H Weaver
Marijn writes: > On 22-03-13 13:48, Ludovic Courtès wrote: >> >> Thanks for the report. The failure is: >> >> FAIL: gc.test: gc: Lexical vars are collectable >> >> Unfortunately, this test exercises the garbage collector, and its >> failure does not always indicate a problem. >> >> Since th

bug#14035: Fixed in 2.0.7

2013-03-23 Thread Mark H Weaver
Hi John, johnanth...@lavabit.com writes: > I grabbed 2.0.7 to see if it was fixed here and it appears to be. Excellent, thanks for letting us know! > Apologies if I was re-reporting an existing bug that was both known about > and fixed. No need to apologize. Thanks for taking the time to file

bug#10519: guile and (mini-)gmp

2013-03-27 Thread Mark H Weaver
Hi Niels, ni...@lysator.liu.se (Niels Möller) writes: > For the small integer gcd code, you may want to have a look at the > tricks used in > http://gmplib.org:8000/gmp/file/304af17b9ccc/mpn/generic/gcd_1.c, the > code under GCD_1_METHOD == 2 > > 1. Shift out the least significant bit of both a an

bug#13188: Whats' the proper senario of par-map? (Was Re: bug#13188: par-map causes VM stack overflow)

2013-03-27 Thread Mark H Weaver
Nala Ginrut writes: > But I'm still puzzled with the performance of par-map: > cut--- > scheme@(guile-user)> ,time (define a (map (lambda (x) (expt x 5)) (iota > 1))) > ;; 0.008019s real time, 0.007979s run time. 0.00s spent in GC. > scheme@(guile-user

bug#13188: Whats' the proper senario of par-map? (Was Re: bug#13188: par-map causes VM stack overflow)

2013-03-28 Thread Mark H Weaver
Hi Ludovic, l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> It only makes sense to use 'par-map' when the procedure is fairly >> expensive to compute. > > Indeed. > >> There is inevitably a lot of overhead in creating and joining t

bug#14080: Guile bug building from source with pkg-config

2013-03-30 Thread Mark H Weaver
Mark Sutton writes: > I can ./configure make make install guile-2.0.7 from source, however, > when I then try in build guile-clutter or guile-ncurses from source I > get errors in both. After googling I found that I should have > ./configure PKG_CONFIG=true. You shouldn't need PKG_CONFIG=true.

bug#12216: peek-char incorrectly *CONSUMES* eof

2013-03-30 Thread Mark H Weaver
Andy Wingo writes: > Maybe if it is somehow confined to scm_peek_char and scm_fill_input it > could be doable. I think I now see a reasonable way to fix this. First of all, all interfaces that do something like 'peek' would, when returning an EOF, set a 'pending_eof' flag in the port structure.

bug#14080: Guile bug building from source with pkg-config

2013-03-30 Thread Mark H Weaver
Hi Mark, In your replies, please keep <14...@debbugs.gnu.org> in the CC line, so that your emails will be recorded in this bug entry. Mark Sutton writes: > On 30/03/13 07:21, Mark H Weaver wrote: >> Mark Sutton writes: >> >>> I can ./configure make make i

bug#14080: Guile bug building from source with pkg-config

2013-03-30 Thread Mark H Weaver
Also, what version of g-wrap are you trying to build? Thanks, Mark

bug#14093: configure for build problem

2013-03-30 Thread Mark H Weaver
Hi, "d.henman" writes: > I'm not sure if this is a confgure script problem or not. Please take a look > at the related configure error message. > > $ configure > > > checking for LIBFFI... configure: error: Package requirements (libffi) were > not met: > > No package 'libffi' found > > C

bug#14101: Gcd from gnulib?

2013-03-31 Thread Mark H Weaver
Cojocaru Alexandru writes: > what about using the gcd module from gnulib? > See: https://www.gnu.org/software/gnulib/MODULES.html#module=gcd That module is under the GPLv3+, and we must keep Guile under LGPLv3+. Mark

bug#14093: configure for build problem

2013-03-31 Thread Mark H Weaver
hould add the directory containing `libffi.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libffi' found > > I'm looking for information at cygwin and also > about gettnig the ffi.h file as Mark suggested. > > > Regards "d.henman" writ

bug#14101: Gcd from gnulib?

2013-03-31 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> Cojocaru Alexandru writes: >>> what about using the gcd module from gnulib? >>> See: https://www.gnu.org/software/gnulib/MODULES.html#module=gcd >> >> That module is under the G

bug#12216: peek-char incorrectly *CONSUMES* eof

2013-03-31 Thread Mark H Weaver
Mark H Weaver writes: > Andy Wingo writes: >> Maybe if it is somehow confined to scm_peek_char and scm_fill_input it >> could be doable. > > I think I now see a reasonable way to fix this. > > First of all, all interfaces that do something like 'peek'

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

2013-04-01 Thread Mark H Weaver
Ian Price writes: > Nikita Karetnikov writes: > >> The mentioned functions are documented [1]. However, I'll get the >> "Unbound variable" error if I try to import them: >> >> scheme@(guile-user)> ,use (rnrs io ports) >> scheme@(guile-user)> string->bytevector >> ;;; : warning: possibly unboun

bug#12216: peek-char incorrectly *CONSUMES* eof

2013-04-01 Thread Mark H Weaver
The prerequisite patches are now in stable-2.0. Here's an updated patch that applies against current stable-2.0. Otherwise it has not changed. Mark >From 7d9ebc691519af7236e1fec8dfefd5fc8784f875 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sun, 31 Mar 2013 19:06:51 -0400

bug#12216: peek-char incorrectly *CONSUMES* eof

2013-04-02 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > Looks like a good start. Two comments: > > On Mon 01 Apr 2013 23:27, Mark H Weaver writes: > > 1. I don't much like the addition of this call to this inline function. > Can we move all the non-fast-path code into some other function? T

bug#12216: peek-char incorrectly *CONSUMES* eof

2013-04-04 Thread Mark H Weaver
Andy Wingo writes: > Looks great to me. Thanks for following up on this! Excellent! I pushed this to stable-2.0, so it will be in Guile 2.0.8. Closing this bug now. Thanks! Mark

bug#14164: letrec: detect illegal accesses to vars before entering body

2013-04-08 Thread Mark H Weaver
Nikita Karetnikov writes: > According to the manual [1], this snippet: > > (letrec ((a 42) > (b (+ a 10))) > (* a b)) > > should return "Error: unbound variable: a." The manual doesn't say anything nearly that specific. It says "Note that while the init expressions may refer to the n

bug#14164: letrec: detect illegal accesses to vars before entering body

2013-04-09 Thread Mark H Weaver
Nikita Karetnikov writes: >>> According to the manual [1], this snippet: >>> >>> (letrec ((a 42) >>> (b (+ a 10))) >>> (* a b)) >>> >>> should return "Error: unbound variable: a." > >> The manual doesn't say anything nearly that specific. > > Either you missed it or I misunderstood thi

bug#14164: letrec: detect illegal accesses to vars before entering body

2013-04-10 Thread Mark H Weaver
Nikita Karetnikov writes: >> I'll fix the manual. > > Thanks. > > So what's the difference between 'letrec' and 'letrec*', then? I fail > to grasp it. The difference is that in 'letrec*', the initializers are guaranteed to be evaluated in order, and they are allowed to access earlier bindings b

bug#14193: Build system: touching ports.h fails to rebuild sockets.o and posix.o

2013-04-12 Thread Mark H Weaver
Touching ports.h fails to rebuild sockets.o and posix.o. Both sockets.c and posix.c include fports.h, which includes ports.h, so this rebuild should be automatic. Andy pointed out that this probably has to do with the special handling of sockets.c and posix.c: * Both are conditionally included d

bug#14171: Aw: Re: bug#14171: REPL doesn't work on windows min-gw

2013-04-14 Thread Mark H Weaver
"Jan Schukat" writes: > Ok, did use this package: guile-2.0.9.2-f480a-dirty.tar.gz and can > build and run guile-2.0 on mingw when I --disable-posix, which makes > sense, since Windows is not posix :) Can even use threads. > I guess I try to get the test-suite to run now. > I'm pretty happy now th

bug#14203: Manual: 'my-or'; 'let' inside macros

2013-04-14 Thread Mark H Weaver
Nikita Karetnikov writes: > I think this example [1,2]: > > (define-syntax my-or > (syntax-rules () > ((my-or) > #t) > ((my-or exp) > exp) > ((my-or exp rest ...) > (let ((t exp)) >(if exp >exp >(my-or rest ...)) > > should look lik

bug#14219: ./configure

2013-04-17 Thread Mark H Weaver
754506...@qq.com writes: > checking size of char... configure: error: cannot compute sizeof > (char) > See `config.log' for more details. Can you send us the "config.log" file? Please keep "14...@debbugs.gnu.org" in the CC line. Out of curiosity, what language is your real name written in? My

bug#14572: Goto Label Bug

2013-06-07 Thread Mark H Weaver
Shane Celis writes: > If a goto label is followed by an SCM variable declaration, a > compilation error will result. I've written up this piece of code > that demonstrates the behavior and how to work around it, available > here: > > https://gist.github.com/shanecelis/5728982 In the future, ple

bug#14550: libltdl not found during configure of Guile 2.0.9

2013-06-10 Thread Mark H Weaver
Hi Eric, "Eric Sheibley" writes: > Ludo, > I figured it out but now I am getting another error when running 'make all' > CCLD guile > Undefined symbol first referenced in file > ffi_closure_alloc ./.libs/libguile-2.0.so > ffi_type_pointer > ffi_prep_closure_loc > ffi_typ

  1   2   3   4   5   6   >