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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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]
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)
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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 =
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.
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
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,
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
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
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
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
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
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
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
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
This is a duplicate of bug #12808, so I'm closing this one.
Mark
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
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
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 =
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.
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 :)
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
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
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:
FYI, I've posted about this to the libffi-discuss mailing list.
http://sourceware.org/ml/libffi-discuss/2013/msg00012.html
Mark
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,
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
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
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
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:
*
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]
-
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
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
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
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
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
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
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
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.
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
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))
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
Applied, thanks.
Mark
Andy Wingo wi...@pobox.com writes:
Looks great, please apply. Thank you!
Pushed. Thanks!
Mark
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:
*
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?'
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
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
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
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
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
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
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
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
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
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
I've pushed 1ea37620c2c1794f7685b312d2530676a078ada7 to stable-2.0,
which fixes our number printer. Closing this bug.
Thanks,
Mark
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
I've pushed 1ea37620c2c1794f7685b312d2530676a078ada7 to stable-2.0,
which fixes our number printer. Closing this bug.
Thanks,
Mark
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 - 100 of 439 matches
Mail list logo