Re: [PATCH] Improved log/log10, add round-ash

2011-02-15 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > I applied them both. I’ll revert the latter tomorrow if it breaks on > some other platform. I see one potential portability problem with the new patch. Can you please apply the attached fix? With this new patch applied, I think it should be portable, assu

Re: [PATCH] Improved log/log10, add round-ash

2011-02-15 Thread Ludovic Courtès
Hi Mark, Mark H Weaver writes: > The first patch here is a trivial comment fix for numbers.test. > > The second patch fixes some serious problems in the logarithm functions > when applied to large integers, large or small fractions, or fractions > with large numerators and denominators which are

Re: thread safe functions

2011-02-15 Thread Ken Raeburn
On Feb 10, 2011, at 17:19, Andy Wingo wrote: >> procproc.c: There's a mutex to protect overrides, but it looks like >> set-procedure-property! doesn't use it correctly; it should look more >> like set-object-property! does. > > I'm going to punt on this one, since it cannot access the hash table i

[PATCH] Improved log/log10, add round-ash

2011-02-15 Thread Mark H Weaver
The first patch here is a trivial comment fix for numbers.test. The second patch fixes some serious problems in the logarithm functions when applied to large integers, large or small fractions, or fractions with large numerators and denominators which are close to 1. I strongly recommend includin

Re: thread safe functions

2011-02-15 Thread Ken Raeburn
On Feb 10, 2011, at 17:19, Andy Wingo wrote: > Hey Ken, > > I got tired of seeing your mail marked as starred in my inbox, so I > decided to take a look at it ;-) Thanks! :-) I'm sorry I haven't had time in a while to investigate more. >> symbols.c: I don't think 'symbols' is handled safely. Bu

2.0.x branched!

2011-02-15 Thread Ludovic Courtès
Hello! There’s now a ‘stable-2.0’ branch! We’re releasing in less than 24 hours so normally nothing will be pushed there. :-) There’s an additional jobset on Hydra for this branch: http://hydra.nixos.org/jobset/gnu/guile-2-0 Normally you should soon be able to grab a tarball from there and

mingw runtime patches

2011-02-15 Thread Jan Nieuwenhuizen
I have now sucessfully cross-built guile-1.9 for mingw and used it to run a simple guile-gnome GUI [http:/lilypond.org/schikkers-list]. Earlier I have sent a couple of configure and build-time patches, what follows here are patches that I'm using to fix runtime problems. Most obvious lacking is s

[PATCH 5/5] [mingw]: Use $LOCALAPPDATA as a possible root for cachedir.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen 2011-02-15 Jan Nieuwenhuizen * libguile/load.c (scm_init_load_path) [MINGW32]: Use $LOCALAPPDATA to avoid having a NULL cachedir, while still allowing override by using $XDG_CACHE_HOME. --- libguile/load.c |4 1 files changed, 4 insert

[PATCH 3/5] [mingw]: Do not export opendir, readdir etc., as dirents differ.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen Without this patch, libguile exports symbols such as opendir, readdir, which expect and use guile's struct dirent that differs from mingw's dirent. Linking to libguile when using mingw's dirent gives unexpected results. 2011-02-15 Jan Nieuwenhuizen * libguile

[PATCH 2/5] [mingw]: Have compiled-file-name produce valid names.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen 2011-02-04 Jan Nieuwenhuizen * module/system/base/compile.scm (compiled-file-name): Add directory separator and remove colon for Mingw. Fixes compilation on Windows. --- module/system/base/compile.scm |9 +++-- 1 files changed, 7 insertions(+), 2

[PATCH 4/5] [mingw]: Delete existing target file before attempting rename.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen 2011-02-15 Jan Nieuwenhuizen * libguile/filesys.c [MINGW32] (my_rename): Add implementation that deletes target if it exists. Fixes rename behaviour. --- libguile/filesys.c | 24 +--- 1 files changed, 21 insertions(+), 3 deletion

[PATCH 1/5] [mingw]: Add implementation of canonicalize_file_name.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen It does not look like this will be fixed any time soon in gnulib. 2011-02-04 Jan Nieuwenhuizen * libguile/filesys.h: * libguile/filesys.c (mingw_canonicalize_file_name)[__MINGW32__]: Add minimal implementation of canonicalize_file_name for Mingw. --- libg

Re: [PATCH] New division operators, and optimization for fractions

2011-02-15 Thread Ludovic Courtès
Hi Mark, Mark H Weaver writes: > The following patch should fix it. It apparently does, thanks! http://hydra.nixos.org/jobset/gnu/guile-master Ludo’.

Re: [PATCH] New division operators, and optimization for fractions

2011-02-15 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > This patch series seems to break compilation on i686-linux-gnu: > > http://hydra.nixos.org/build/913079 > > The relevant part of the log is: > > Running numbers.test > FAIL: numbers.test: Number-theoretic division: truncate/: mixed types: > (130.0 10/

Re: [PATCH] New division operators, and optimization for fractions

2011-02-15 Thread Ludovic Courtès
Hi Mark, This patch series seems to break compilation on i686-linux-gnu: http://hydra.nixos.org/build/913079 The relevant part of the log is: Running numbers.test FAIL: numbers.test: Number-theoretic division: truncate/: mixed types: (130.0 10/7) FAIL: numbers.test: Number-theoretic di

Re: Needed: log1p from gnulib

2011-02-15 Thread Ludovic Courtès
Hi Mark, Mark H Weaver writes: > I apologize for asking you again so soon, but could you possibly import > log1p from gnulib? [...] > If it's easy to import a couple more modules while you're at it, then > round and isfinite would also be useful. Done, except for ‘isfinite’, which is currentl

Re: New problem with Windows port

2011-02-15 Thread Jan Nieuwenhuizen
carlo.bra...@libero.it schreef op di 15-02-2011 om 11:11 [+0100]: Hi Carlo, > while I was applying with my hacks on the latest candidate release of GUILE, > I > got this error in many sources, apparently without solution: > > .libs/socket.o: In function `scm_socket': > C:/msys/home/Carlo/guile

Re: cross building 1.9.14 for mingw

2011-02-15 Thread Jan Nieuwenhuizen
Ludovic Courtès schreef op za 29-01-2011 om 22:34 [+0100]: > > From 4aeb4bb48423d87001b598030afed0a2dc03e747 Mon Sep 17 00:00:00 2001 > > From: Jan Nieuwenhuizen > > Date: Sat, 29 Jan 2011 19:42:46 +0100 > > Subject: [PATCH 2/4] Use AC_CHECK_LIB rather than AC_LIB_HAVE_LINKFLAGS. > > Fixes cros

New problem with Windows port

2011-02-15 Thread carlo.bra...@libero.it
Hello friends, while I was applying with my hacks on the latest candidate release of GUILE, I got this error in many sources, apparently without solution: .libs/socket.o: In function `scm_socket': C:/msys/home/Carlo/guile/libguile/../../guile-1.9.15/libguile/socket.c:439: undefined reference to

Re: NEWS for 1.9.15 -> 2.0.0

2011-02-15 Thread Mark H Weaver
Andy Wingo wrote: > I was thinking that for 2.0, the NEWS that we would post would be > cumulative: all the changes of note that a user of 1.8 will see when > upgrading to 2.0. Here is a combined NEWS entry for the new division operators. Mark ** Added new number-theoretic division operato

Re: cross building 1.9.14 for mingw

2011-02-15 Thread Jan Nieuwenhuizen
Ludovic Courtès schreef op ma 14-02-2011 om 13:29 [+0100]: > Done. Thanks! > However, we don’t seem to be actually using the ‘sockets’ module: IIUC > we should include “sockets.h” somewhere and call ‘gl_sockets_startup’, > which we don’t do. Am I missing something? It seems you're right, we do

[PATCH] round-ash, a rounding arithmetic shift operator

2011-02-15 Thread Mark H Weaver
The first patch is trivial, but there for the sake of correctness. The second patch adds round-ash, a rounding arithmetic shift operator. (round-ash n count) ==> (round (* n (expt 2 count))) but it's implemented much more efficiently than that, and requires that both n and count are exact integ

Needed: log1p from gnulib

2011-02-15 Thread Mark H Weaver
Hi Ludo, I apologize for asking you again so soon, but could you possibly import log1p from gnulib? I'm trying to implement log for exact rationals, and I have a serious problem with catastrophic cancellation if the numerator and denominator are close, for example (/ big (1+ big)). The only way

Re: Is testsuite still used?

2011-02-15 Thread Andy Wingo
On Tue 15 Feb 2011 00:28, Mark H Weaver writes: > Is the testsuite directory (as opposed to test-suite) still used? > If not, perhaps it should be removed. It has indeed been removed: http://git.savannah.gnu.org/gitweb/?p=guile.git;a=tree You might have stale build products lying around. It

NEWS for 1.9.15 -> 2.0.0

2011-02-15 Thread Andy Wingo
Hi all, I was thinking that for 2.0, the NEWS that we would post would be cumulative: all the changes of note that a user of 1.8 will see when upgrading to 2.0. But there have been some changes since the 1.9.15, so I figured I'd post them here separately: Changes since the 1.9.15 prerelease: *

Re: [PATCH] A couple of small patches for 2.0

2011-02-15 Thread Andy Wingo
On Mon 14 Feb 2011 23:16, Mark H Weaver writes: > A couple of small patches for 2.0. Applied, thanks. Andy -- http://wingolog.org/