Re: Stable 2.0 and popen.test on Debian Squeeze

2011-03-01 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: The difference seems to be the difference between: dash -c 'exec 1/dev/null; echo closed 12; exec 2/dev/null; read' and bash -c 'exec 1/dev/null; echo closed 12; exec 2/dev/null; read' Dash prints closed and exits immediately with error code 2. Bash

Re: Stable 2.0 and popen.test on Debian Squeeze

2011-03-02 Thread Mark H Weaver
dsm...@roadrunner.com writes: dsmith@stumpy:~/src/guile$ ./check-guile popen.test Testing /home/dsmith/src/guile/meta/guile ... popen.test with GUILE_LOAD_PATH=/home/dsmith/src/guile/test-suite Running popen.test FAIL: popen.test: open-output-pipe: no duplicate The problem here is that dash

Re: Stable 2.0 and popen.test on Debian Squeeze

2011-03-02 Thread Mark H Weaver
your problems with popen.test on Squeeze? Thanks, Mark From 11195909b25347ae710d6423165eb123cf0aa996 Mon Sep 17 00:00:00 2001 From: Mark H Weaver m...@netris.org Date: Wed, 2 Mar 2011 06:02:58 -0500 Subject: [PATCH] Portability fixes for popen.test (for when /bin/sh is not bash) * test

Re: Loop optimization

2011-03-07 Thread Mark H Weaver
Michael Ellis michael.f.el...@gmail.com writes: Thanks for the education, Andy, and congrats again on the guile compiler implementation. Your version handily outperforms the fastest python implementation I know. That's especially impressive given that the two pieces of code below are markedly

Re: Loop optimization

2011-03-07 Thread Mark H Weaver
I wrote: That's especially impressive given that the two pieces of code below are markedly different: The guile version formats 10 million integers and outputs them, whereas the python version does nothing but count and output the final value. Sorry, dumb mistake on my part. Apologies for

Re: Problem with netcat

2011-04-11 Thread Mark H Weaver
Andy Wingo wi...@pobox.com wrote: I pushed a (sigaction SIGPIPE SIG_IGN) to (system repl repl), which should fix the issue. Isn't this a bad idea? SIGPIPE generally indicates that something went wrong. If we ignore it, important problems may go unnoticed. To me, this seems kind of like

Re: shift and reset, plus while

2011-04-13 Thread Mark H Weaver
Wolfgang J Moeller w...@heenes.com writes: (d) to correct a buglet that currently transforms the non-operator `continue' into a function of arbitrarily many (as opposed to zero) arguments. I fixed this on the stable-2.0 branch a while back, in commit

Re: build errors: 9172 Broken pipe and 9173 Segmentation fault

2011-04-16 Thread Mark H Weaver
Douglas Mencken dougmenc...@gmail.com writes: #3 0x480e0f44 in scm_decoding_error (subr=value optimized out, err=38, message=value optimized out, port=value optimized out) at strings.c:1438 #4 0x480e1190 in scm_from_stringn (str=0x48128754 ��, len=value optimized out, encoding=value

Re: build errors: 9172 Broken pipe and 9173 Segmentation fault

2011-04-16 Thread Mark H Weaver
Douglas Mencken dougmenc...@gmail.com writes: #3 0x480e0f44 in scm_decoding_error (subr=value optimized out, err=38, message=value optimized out, port=value optimized out) at strings.c:1438 #4 0x480e1190 in scm_from_stringn (str=0x48128754 ��, len=value optimized out, encoding=value

Re: [bug #33165] `load' uses a wrong relative path

2011-04-26 Thread Mark H Weaver
Ludovic Courtès invalid.nore...@gnu.org writes: ?: 0 [primitive-load-path home/ludo/src/kanren-book/t/d/a.scm] ERROR: In procedure primitive-load-path: ERROR: In procedure primitive-load-path: Unable to find file home/ludo/src/kanren-book/t/d/a.scm in load path FYI, I'm unable to

Re: guile stable-2.0 fails on OSX 10.6.7

2011-04-27 Thread Mark H Weaver
Another OS X 10.6 user had the same problem compiling Guile 2.0, and later discovered that the compiler bug is specific to XCode 4. Downgrading to XCode 3 worked for him. http://article.gmane.org/gmane.lisp.guile.bugs/5525 Someone else said that XCode 3 uses a derivative of GCC, whereas XCode

Re: multiple values bug in head / call-with-input-file

2011-05-02 Thread Mark H Weaver
Daniel Llorens daniel.llor...@bluewin.ch writes: scheme@(guile-user) (call-with-input-string hello (lambda (p) (values 1 2))) $1 = 1 $2 = 2 but: scheme@(guile-user) (call-with-input-file hello (lambda (p) (values 1 2))) $1 = 1 Indeed this is suboptimal, and probably a bug. Thanks for

Re: guile-2.0.0 fails to build without threads

2011-05-20 Thread Mark H Weaver
Marco Maggi marco.maggi-i...@poste.it writes: Andy Wingo wrote: You mention in your original report: CFLAGS=3D'-O3 -march=3Di686 -mtune=3Di686' Are the 3D things an artifact of some mailing list encoding thing, or are they a mis-paste? They were just = characters, but while

Re: (+ (values 1 2)) should be 1

2011-05-24 Thread Mark H Weaver
Hans Aberg haber...@telia.com writes: Right, but as the result is unspecified according to the standard, the Guile manual suggests that the value SCM_UNSPECIFIED as an interpretation of that. I merely say that I think it would be a good idea. Although Guile often returns SCM_UNSPECIFIED when

Re: (+ (values 1 2)) should be 1

2011-05-25 Thread Mark H Weaver
Hans Aberg haber...@telia.com writes: On 25 May 2011, at 02:25, Mark H Weaver wrote: Right, but as the result is unspecified according to the standard, the Guile manual suggests that the value SCM_UNSPECIFIED as an interpretation of that. I merely say that I think it would be a good idea

Re: Memory not being reclaimed (apparently)

2011-05-31 Thread Mark H Weaver
Hi Daniel, Daniel Oliveira psy...@gmail.com writes: To reproduce: (define (fact n)   (let loop ((i 1) (r 1))     (if ( i n) r (loop (+ i 1) (* r i) (fact 123456) Watch your computer get unusable :) I have posted a patch to guile-devel that fixes this problem. The subject is [PATCH]

Re: `set!' of generated temporary in macro expansion causes warning

2011-06-30 Thread Mark H Weaver
Hi Andy, Andy Wingo wi...@pobox.com writes: p.s. Regarding hygienically introducing identifiers, I had an idea. From a mail I sent to scheme-reports: To recap: (define-syntax define-const (syntax-rules () ((_ name val) (define t val)

bug#9851: No configure file in git cloned guile despite what README says

2011-10-24 Thread Mark H Weaver
J. Greg Davidson j...@well.com writes: I used the git command git clone git://git.sv.gnu.org/guile.git from the guile webpage https://www.gnu.org/software/guile/download.html and got a nice directory with a README file which tells me to run ./configure which does not exist. The README

bug#10241: undefined ffi_type_pointer problem mipsel linux

2011-12-07 Thread Mark H Weaver
Can you please run make V=1 so that we can see the complete command used in the failing link (CCLD guile) command? As Anthony Green said, it appears that libffi was not linked. I can think of a few possible reasons: * Did you forget to run ldconfig after installing libffi? * Was libffi present

bug#10283: Guile Manual Error

2011-12-12 Thread Mark H Weaver
add unknown.ar...@gmail.com writes: www.gnu.org/software/guile/manual/guile.html#Linking-Guile-into-Programs Hm, I've tried the linking guile into programs and the gcc command there is incorrect, [...] The gcc command should be gcc -o simple-guile simple-guile.c $(pkg-config --cflags --libs

bug#10283: Guile Manual Error

2011-12-13 Thread Mark H Weaver
The submitter add unknown.ar...@gmail.com told me in private email that the gcc command in the manual now works for him (he probably mistyped it before), and that the HOSTNAME variable was a private shell variable and not an environment variable, so I'm closing this bug. Mark

bug#10302: Some typos in web.texi documenation

2011-12-14 Thread Mark H Weaver
jc zulian jeanchristophe.zul...@gmail.com writes: While reading the documentation I came across some typos. Please find attached a patch to correct those (I hope the patch format is alright). Actually those are not typos. In mathematics, iff is widely understand to mean if and only if. I

bug#10519: guile and (mini-)gmp

2012-01-16 Thread Mark H Weaver
Hi Niels, thanks for looking into this! ni...@lysator.liu.se (Niels Möller) writes: 2. The next problem is maybe more a nuisance than a real problem. I'm looking at scm_i_big2dbl, in numbers.c. I notice this code doesn't currently use mpz_get_d (comment says that's because gmp-4.2

bug#10621: Incorrect usage of hash procedures in (ice-9 mapping)

2012-01-27 Thread Mark H Weaver
These are genuine errors: ice-9/mapping.scm:97:48: warning: possibly wrong number of arguments to `hashx-get-handle' ice-9/mapping.scm:94:48: warning: possibly unbound variable `hashx-create-handle' Mark

bug#10622: Bugs in decompile-assembly.scm

2012-01-27 Thread Mark H Weaver
These are genuine bugs: language/glil/decompile-assembly.scm:174:21: warning: possibly unbound variable `make-glil-local' language/glil/decompile-assembly.scm:170:21: warning: possibly unbound variable `make-glil-local' Mark

bug#10623: Bugs in ecmascript/base.scm

2012-01-27 Thread Mark H Weaver
These are genuine bugs: language/ecmascript/base.scm:179:31: warning: wrong number of arguments to `object-number' language/ecmascript/base.scm:95:6: warning: possibly unbound variable `v' language/ecmascript/base.scm:181:14: warning: possibly unbound variable `o' Mark

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

2012-01-28 Thread Mark H Weaver
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 using a multibyte encoding. 'char-ready?' currently returns #t whenever at least one _byte_ is available. This is not correct in general.

bug#10681: GNU Guile 2.0.5 released

2012-01-31 Thread Mark H Weaver
Hans Aberg haber...@telia.com writes: The 'make check' gives this error, on OS X 10.7.2 using the compiler i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 supplied by Xcode 4.2.1: PASS: test-asmobs bad return from expression `(f-sum -1 2000 -3 400)': expected 3971999; got

bug#10645: Guile 2.0.3: fails make check on s390x in test-ffi

2012-01-31 Thread Mark H Weaver
Rob Browning r...@defaultvalue.org writes: Make check fails on the s390x architecture: [...] ERROR: incorrect result (7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7

bug#10681: GNU Guile 2.0.5 released

2012-01-31 Thread Mark H Weaver
Hans Aberg haber...@telia.com writes: On 31 Jan 2012, at 19:04, Mark H Weaver wrote: The 'make check' gives this error, on OS X 10.7.2 using the compiler i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 supplied by Xcode 4.2.1: PASS: test-asmobs bad return from expression `(f-sum -1 2000

bug#10681: GNU Guile 2.0.5 released

2012-01-31 Thread Mark H Weaver
Hans Aberg haber...@telia.com writes: With gcc-4.7.0 (from SVN), the test-ffi test now passes (libffi from GIT) Excellent! I guess that this was a libffi bug. but I get three other failures. The compiler that is normally used on the system, is llvm-gcc-4.2, and its compile is still

bug#10681: GNU Guile 2.0.5 released

2012-01-31 Thread Mark H Weaver
Hans Aberg haber...@telia.com writes: After doing this, the same failure with the LLVM-GCC compiler: /usr/bin/cc - llvm-gcc-4.2 /usr/bin/gcc - llvm-gcc-4.2 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 This is the compiler that one will use on OS X 10.7 if one installs Xcode 4.2.1, and

bug#9776: case-lambda should accept zero clauses

2012-01-31 Thread Mark H Weaver
Hi Ludovic, Thanks for tackling this. Of course this is Andy's area, but psyntax is still fresh in my mind, so I'll attempt a review as well as my own tentative approach. l...@gnu.org (Ludovic Courtès) writes: So, here’s a tentative patch for review: Modified module/ice-9/psyntax.scm

bug#10693: guild compile --load-path value is not processed with scm_parse_path, GUILE_LOAD_PATH env variable value is parsed.

2012-02-01 Thread Mark H Weaver
Hi Ian, Ian Hulin i...@hulin.org.uk writes: ian@nanny-ogg ~/src/lilypond (T2026-1) guild compile --load-path=/home/ian/src/lilypond:/home/ian/src/lilypond/scm According to both the Guile manual and the output of guile compile -h: -L, --load-path=DIR add DIR to the front of the module load

bug#10486: Patch: Fix case in identifiers starting sentences in doc/r5rs/r5rs.texi

2012-02-02 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: On Thu 12 Jan 2012 17:11, Bake Timmons b3timm...@speedymail.org writes: The GNU coding standards advise sticking with proper case for identifiers, even if the identifier starts with a lowercase letter and appears at the beginning of a sentence. The Guile

bug#10481: Simple patches to Texinfo docs

2012-02-02 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: On Wed 11 Jan 2012 19:08, Bake Timmons b3timm...@speedymail.org writes: Months ago I proposed some improvements to the manual. With a gentle reminder from Andy Wingo, I have finally started breaking up my original giant patch into some manageable patches.

bug#10693: guild compile --load-path value is not processed with scm_parse_path, GUILE_LOAD_PATH env variable value is parsed.

2012-02-08 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: We might want to change the long option name (while continuing to accept --load-path for backward compatibility), but I can't think of a good name. Any suggestions? As discussed on IRC, I agree that the long

bug#10836: guardians and weak references

2012-02-28 Thread Mark H Weaver
Andy Wingo wi...@pobox.com 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

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

2012-03-01 Thread Mark H Weaver
Tobias Brandt tob.bra...@googlemail.com 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

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

2012-03-01 Thread Mark H Weaver
Tobias Brandt tob.bra...@googlemail.com 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

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

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

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

2012-03-07 Thread Mark H Weaver
Andy Wingo wi...@pobox.com 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* () (begin

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 m...@netris.org 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

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 ianpric...@googlemail.com 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 =

bug#10992: error signaled for syntax expression

2012-03-11 Thread Mark H Weaver
Stefan Israelsson Tampe stefan.ita...@gmail.com 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.

bug#11083: guile-2.0.5 bug report

2012-03-24 Thread Mark H Weaver
Kiyoshi KANAZAWA yoi_no_myou...@yahoo.co.jp 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

bug#11083: guile-2.0.5 bug report

2012-03-28 Thread Mark H Weaver
Kiyoshi KANAZAWA yoi_no_myou...@yahoo.co.jp 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,

bug#11083: guile-2.0.5 bug report

2012-04-04 Thread Mark H Weaver
Kiyoshi KANAZAWA yoi_no_myou...@yahoo.co.jp 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

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

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 encodings

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 m...@netris.org 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 (with-fluids ((%default-port-encoding UTF

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

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

bug#11564: Broken pipe when compiling from git

2012-05-27 Thread Mark H Weaver
Mark Skilbeck m...@iammark.us 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

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 godek.mac...@gmail.com 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

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 jo...@applicake.com 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 jo...@applicake.com 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

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 =

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 jo...@applicake.com 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 :)

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

2013-01-23 Thread Mark H Weaver
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 m...@netris.org Date: Wed, 23 Jan 2013 17:27:50 -0500 Subject: [PATCH 1/2] Fix source annotation bug

bug#13534:

2013-01-24 Thread Mark H Weaver
Daniel Llorens daniel.llor...@bluewin.ch 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

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 stdint.h int64_t test_sum (int8_t a, int64_t b) { return a + b; } When compiled with GCC 4.6, the assembly is: test_sum: .LFB0:

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 marco.maggi-i...@poste.it 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,

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 ptee...@me.com 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

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 ptee...@me.com 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 mand...@gmail.com 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: *

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

2013-02-24 Thread Mark H Weaver
Hi Daniel, Daniel Hartwig mand...@gmail.com 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] -

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

2013-02-24 Thread Mark H Weaver
Daniel Hartwig mand...@gmail.com writes: On 24 February 2013 18:45, Mark H Weaver m...@netris.org 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

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

2013-02-24 Thread Mark H Weaver
Hi Andy, Andy Wingo wi...@pobox.com writes: On Sat 28 Jan 2012 11:21, Mark H Weaver m...@netris.org 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 using a multibyte

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

2013-02-24 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: On Sun 24 Feb 2013 21:14, Mark H Weaver m...@netris.org 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 complete character

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 wi...@pobox.com writes: On Wed 20 Feb 2013 00:38, Jan Schukat shoo...@email.de 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

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

2013-02-25 Thread Mark H Weaver
Hi Andy, Andy Wingo wi...@pobox.com 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

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

2013-02-26 Thread Mark H Weaver
Andy Wingo wi...@pobox.com 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

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

2013-02-26 Thread Mark H Weaver
Hi Andy, Andy Wingo wi...@pobox.com writes: On Mon 25 Feb 2013 01:34, Mark H Weaver m...@netris.org 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 reason why raising

bug#13827: faulty range check in bytevector accessor

2013-02-26 Thread Mark H Weaver
Ian Price ianpric...@googlemail.com 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.

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

2013-02-27 Thread Mark H Weaver
Hi Andy, Andy Wingo wi...@pobox.com writes: On Tue 26 Feb 2013 23:40, Mark H Weaver m...@netris.org 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. If you

bug#13827: faulty range check in bytevector accessor

2013-02-27 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: Ian Price ianpric...@googlemail.com 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))

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

2013-02-27 Thread Mark H Weaver
David Kastrup d...@gnu.org 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 wi...@pobox.com writes: Looks great, please apply. Thank you! Pushed. 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 mand...@gmail.com 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: *

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

2013-03-01 Thread Mark H Weaver
Daniel Hartwig mand...@gmail.com writes: On 18 February 2013 17:16, Ludovic Courtès l...@gnu.org 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?'

bug#11887: string-number edge cases

2013-03-05 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: On Mon 09 Jul 2012 14:29, Ian Price ianpric...@googlemail.com 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

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 new

bug#11887: string-number edge cases

2013-03-06 Thread Mark H Weaver
Daniel Llorens daniel.llor...@bluewin.ch writes: I think this isn't working as it should either. scheme@(guile-user) +1i $1 = 0.0+1.0i scheme@(guile-user) 1i ;;; unknown-location: warning: possibly unbound variable `#{1i}#' ERROR: In procedure #procedure 101d6d4a0 (): ERROR: In procedure

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 m...@netris.org 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 peter@xs4all.nl 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 and 4+3/0i as symbols. More

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 daniel.llor...@bluewin.ch 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

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

2013-03-08 Thread Mark H Weaver
Daniel Llorens daniel.llor...@bluewin.ch 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

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

2013-03-13 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: On Wed 13 Mar 2013 14:09, David A. Wheeler dwhee...@dwheeler.com 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

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

2013-03-14 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: On Wed 13 Mar 2013 19:10, Mark H Weaver m...@netris.org 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 flag that would be consulted

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

  1   2   3   4   5   >