Re: Fixing non-reproducibility in some guile packages

2017-02-13 Thread Maxim Cournoyer
Hi Andy, and thank you for your detailed answer! Andy Wingo <wi...@igalia.com> writes: > Hi :) > > [+guile-devel] > > On Mon 13 Feb 2017 07:18, Maxim Cournoyer <maxim.courno...@gmail.com> writes: > >>>> ;;; note: auto-compil

Re: Static linking of Guile extensions

2017-08-29 Thread Maxim Cournoyer
Christopher Allan Webber <cweb...@dustycloud.org> writes: > Maxim Cournoyer writes: > >> Hi, >> >> Today I tried investigating if was possible to build Guile so that even >> its extension modules could be built in statically rather than >> dynamically lo

Static linking of Guile extensions

2017-08-25 Thread Maxim Cournoyer
Hi, Today I tried investigating if was possible to build Guile so that even its extension modules could be built in statically rather than dynamically loaded. I didn't succeed; even when building Guile the way its described by the %guile-static package in Guix (see (gnu packages make-bootstrap)),

[PATCH devel 4/6] htmlprag: Allow users to parameterize the parent constraints.

2021-03-04 Thread Maxim Cournoyer
sing of real-world HTML ;; Copyright (C) 2003-2004 Neil W. Van Dyke ;; Modified 2004 by Andy Wingo to fit in with guile-lib. +;; Modified 2021 by Maxim Cournoyer to parameterize the parent constraints. ;; This program is free software: you can redistribute it and/or modify ;; it under the term

[PATCH devel 2/6] Work around Guile 3.0.0 miscompilation at -O2.

2021-03-04 Thread Maxim Cournoyer
From: Ludovic Courtès This bug would cause the test suite to hang and fully use one CPU core and slowly consume all the memory. Signed-off-by: Maxim Cournoyer --- src/md5.scm | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/md5.scm b/src/md5.scm index c30ef2c

[PATCH devel 1/6] Revert "When using guile-3.0, compile src/md5.scm using -O0"

2021-03-04 Thread Maxim Cournoyer
This reverts commit 437ddcdd359ce7daccd546be0060fb71c56a71d7. I'm proposing to add the fix from Guix, which is simpler. --- am/guile.mk | 12 +--- configure.ac | 4 +--- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/am/guile.mk b/am/guile.mk index 0cc75a7..6ab0750

[PATCH devel 6/6] configure.ac: Standardize default installation directory.

2021-03-04 Thread Maxim Cournoyer
David Pirotte +Copyright (C) 2021 Maxim Cournoyer This file is part of Guile-Lib. @@ -63,8 +64,6 @@ dnl dependency version to 2.0.12 [or higher], because it has texinfo dnl patches so 'make check' pass. GUILE_PROGS([2.0.12]) GUILE_SITE_DIR -GUILE_GLOBAL_SITE_DIR -GUILE_SITE_CCACHE_DIR

[PATCH devel 3/6] Add a HACK file.

2021-03-04 Thread Maxim Cournoyer
To ease the hacking experience. * HACK: New file. --- HACK | 47 +++ 1 file changed, 47 insertions(+) create mode 100644 HACK diff --git a/HACK b/HACK new file mode 100644 index 000..a7cf01e --- /dev/null +++ b/HACK @@ -0,0 +1,47 @@ +Dependencies

[PATCH devel 5/6] build: Add support for cross-compilation.

2021-03-04 Thread Maxim Cournoyer
From: Christopher Baines This enables cross-compiling for systems different than the build machine. * configure.ac (GUILE_TARGET): New variable. * am/guile.mk (.scm.go): Use it. Signed-off-by: Maxim Cournoyer --- am/guile.mk | 2 +- configure.ac | 5 + 2 files changed, 6 insertions

[PATCH devel 0/6] Parameterize the parent constraints in htmlprag & varia

2021-03-04 Thread Maxim Cournoyer
100644 HACK delete mode 100644 m4/guile-ext.m4 Christopher Baines (1): build: Add support for cross-compilation. Ludovic Courtès (1): Work around Guile 3.0.0 miscompilation at -O2. Maxim Cournoyer (4): Revert "When using guile-3.0, compile src/md5.scm using -O0" Add a

Re: Python on guile v1.2.3.7

2021-04-11 Thread Maxim Cournoyer
Hi Stefan, Stefan Israelsson Tampe writes: > Hi, > > I released a new tag of my python code that basically is a snapshot of a > work in progress. > > This release includes > * pythons new match statement > * dataclasses > * Faster python regexps through caching and improved datastructures > *

Re: Close 10519, and, how to close bug on debbugs?

2023-09-03 Thread Maxim Cournoyer
Hi, Rob Browning writes: > Mike Gran writes: > >> That doc doesn't seem to explain that sending an e-mail as you described >> closes a bug, but, I'm sure the emacs mode will know what to do. > > If it helps, I suspect much of the Debian info should translate > directly, e.g.

[PATCH v3 0/4] Add module depth information to %load-verbosely output

2023-09-10 Thread Maxim Cournoyer
in v2: - Guard against negative pad count when computing 'visual-depth' Maxim Cournoyer (4): (ice-9 boot-9): Fix typo. .dir-locals: Set c-basic-offset to 2 for c-mode. guix.scm: Update guile package native inputs. load: Display modules depth in output when using %load-verbosely. .dir-loc

[PATCH v3 4/4] load: Display modules depth in output when using %load-verbosely.

2023-09-10 Thread Maxim Cournoyer
b Browning Tristan Colgate-McFarlane Aleix Conchillo Flaqué + Maxim Cournoyer Ludovic Courtès Jason Earl Paul Eggert diff --git a/doc/guile-api.alist b/doc/guile-api.alist index a1616149f..20c900166 100644 --- a/doc/guile-api.alist +++ b/doc/guile

[PATCH v3 2/4] .dir-locals: Set c-basic-offset to 2 for c-mode.

2023-09-10 Thread Maxim Cournoyer
* .dir-locals.el (c-mode): Set c-basic-offset to 2. --- (no changes since v1) .dir-locals.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 908670479..f63bdc8a3 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ ((nil .

[PATCH v3 3/4] guix.scm: Update guile package native inputs.

2023-09-10 Thread Maxim Cournoyer
* guix.scm (guile) [native-inputs]: Replace texlive-base with texlive-scheme-basic. Add git:send-email. --- (no changes since v1) .guix/modules/guile-package.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.guix/modules/guile-package.scm

[PATCH v3 1/4] (ice-9 boot-9): Fix typo.

2023-09-10 Thread Maxim Cournoyer
* module/ice-9/boot-9.scm (module-use-interfaces!): Fix typo in doc string. --- (no changes since v1) module/ice-9/boot-9.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index a5f2eea9b..897d8d01c 100644 ---

[PATCH v2 2/4] .dir-locals: Set c-basic-offset to 2 for c-mode.

2023-09-10 Thread Maxim Cournoyer
* .dir-locals.el (c-mode): Set c-basic-offset to 2. --- (no changes since v1) .dir-locals.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 908670479..f63bdc8a3 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ ((nil .

[PATCH v2 3/4] guix.scm: Update guile package native inputs.

2023-09-10 Thread Maxim Cournoyer
* guix.scm (guile) [native-inputs]: Replace texlive-base with texlive-scheme-basic. Add git:send-email. --- (no changes since v1) .guix/modules/guile-package.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.guix/modules/guile-package.scm

[PATCH v2 0/4] Add module depth information to %load-verbosely output

2023-09-10 Thread Maxim Cournoyer
This change was made to support investigating cyclic module dependencies that sometimes happen in GNU Guix and are difficult to comprehend/debug. For more context, see: <https://issues.guix.gnu.org/65716>. Changes in v2: - Guard against negative pad count when computing 'visual-depth'

[PATCH v2 4/4] load: Display modules depth in output when using %load-verbosely.

2023-09-10 Thread Maxim Cournoyer
llo Flaqué + Maxim Cournoyer Ludovic Courtès Jason Earl Paul Eggert diff --git a/doc/guile-api.alist b/doc/guile-api.alist index a1616149f..20c900166 100644 --- a/doc/guile-api.alist +++ b/doc/guile-api.alist @@ -37,9 +37,9 @@ (%init-rdelim-builtins (groups Scheme)

[PATCH v2 1/4] (ice-9 boot-9): Fix typo.

2023-09-10 Thread Maxim Cournoyer
* module/ice-9/boot-9.scm (module-use-interfaces!): Fix typo in doc string. --- (no changes since v1) module/ice-9/boot-9.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index a5f2eea9b..897d8d01c 100644 ---

[PATCH 0/4] Add module depth information to %load-verbosely output

2023-09-09 Thread Maxim Cournoyer
This change was made to support investigating cyclic module dependencies that sometimes happen in GNU Guix and are difficult to comprehend/debug. For more context, see: <https://issues.guix.gnu.org/65716>. Maxim Cournoyer (4): (ice-9 boot-9): Fix typo. .dir-locals: Set c-basic-offse

[PATCH 4/4] load: Display modules depth in output when using %load-verbosely.

2023-09-09 Thread Maxim Cournoyer
a/THANKS b/THANKS index aa4877e95..546f79b45 100644 --- a/THANKS +++ b/THANKS @@ -5,6 +5,7 @@ Contributors since the last release: Rob Browning Tristan Colgate-McFarlane Aleix Conchillo Flaqué + Maxim Cournoyer Ludovic Courtès Jason Earl

[PATCH 1/4] (ice-9 boot-9): Fix typo.

2023-09-09 Thread Maxim Cournoyer
* module/ice-9/boot-9.scm (module-use-interfaces!): Fix typo in doc string. --- module/ice-9/boot-9.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index a5f2eea9b..897d8d01c 100644 --- a/module/ice-9/boot-9.scm +++

[PATCH 2/4] .dir-locals: Set c-basic-offset to 2 for c-mode.

2023-09-09 Thread Maxim Cournoyer
* .dir-locals.el (c-mode): Set c-basic-offset to 2. --- .dir-locals.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 908670479..f63bdc8a3 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ ((nil . ((fill-column . 72)

[PATCH 3/4] guix.scm: Update guile package native inputs.

2023-09-09 Thread Maxim Cournoyer
* guix.scm (guile) [native-inputs]: Replace texlive-base with texlive-scheme-basic. Add git:send-email. --- .guix/modules/guile-package.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.guix/modules/guile-package.scm b/.guix/modules/guile-package.scm index

[PATCH] module: Add srfi-126.

2023-11-02 Thread Maxim Cournoyer
This is not original work: it merely integrates and formats the work of Taylan Ulrich Bayırlı/Kammer into Guile, with a few adjustments to avoid warnings/fix missing imports. Thank you! * module/srfi/srfi-126.scm: New file. * test-suite/tests/srfi-126.test: New file. *

[PATCH 1/2] module: Add srfi-126.

2023-11-03 Thread Maxim Cournoyer
This is not original work: it merely integrates and formats the work of Taylan Ulrich Bayırlı/Kammer into Guile, with a few adjustments to avoid warnings/fix missing imports. Thank you! * module/srfi/srfi-126.scm: New file. * test-suite/tests/srfi-126.test: New file. *

[PATCH 2/2] module: Add srfi-128.

2023-11-03 Thread Maxim Cournoyer
>From upstream commit 62504e3b5b01615297cf65c33ca76a474bd61dd3. * module/srfi/srfi-128.scm * module/srfi/srfi-128/128.body1.scm * module/srfi/srfi-128/128.body2.scm * test-suite/tests/srfi-128-test.scm * test-suite/tests/srfi-128.test: New files. * am/bootstrap.am (SOURCES): Register

[PATCH v2 1/3] module: Add srfi-126.

2023-11-04 Thread Maxim Cournoyer
This is not original work: it merely integrates and formats the work of Taylan Ulrich Bayırlı/Kammer into Guile, with a few adjustments to avoid warnings/fix missing imports. Thank you! * module/srfi/srfi-126.scm: New file. * test-suite/tests/srfi-126.test: New file. *

[PATCH v2 2/3] module: Add srfi-128.

2023-11-04 Thread Maxim Cournoyer
>From upstream commit 62504e3b5b01615297cf65c33ca76a474bd61dd3. * module/srfi/srfi-128.scm * module/srfi/srfi-128/128.body1.scm * module/srfi/srfi-128/128.body2.scm * test-suite/tests/srfi-128-test.scm * test-suite/tests/srfi-128.test: New files. * am/bootstrap.am (SOURCES): Register

[PATCH v2 3/3] module: Add srfi-125.

2023-11-04 Thread Maxim Cournoyer
* module/srfi/srfi-125.scm * module/srfi/srfi-125/hash-table.scm * test-suite/tests/srfi-125-test.scm * test-suite/tests/srfi-125.test: New files. * am/bootstrap.am (SOURCES): Register srfi-125.scm. (NOCOMP_SOURCES): Register hash-table.scm. * test-suite/Makefile.am (SCM_TESTS): Register

Re: Question: planning support for SRFI-125, SRFI-133?

2023-10-31 Thread Maxim Cournoyer
Hi, Ramin Honary writes: > Hello Guile developers: > > I have come to realize that there are several finalized SRFIs > published by John Cowan and others, for example, SRFI-133 (vector > library), SRFI-125 (intermediate hash tables), SRFI-126 (R6RS-based > hash tables) that were intended to

Re: Replacing Guile test-suite with SRFI-64?

2023-10-31 Thread Maxim Cournoyer
Hi, Bruno Victal writes: > Hi, > > Would a rewrite of the Guile tests using SRFI-64 be a welcome idea? > IMO the advantages of doing so are: > > * Less “specifics” that need to be learned solely for working with > Guile. It's easier for people already using SRFI-64 to “bring in” their >

[PATCH v5 4/4] load: Display modules depth in output when using %load-verbosely.

2023-11-06 Thread Maxim Cournoyer
tors since the last release: Rob Browning Tristan Colgate-McFarlane Aleix Conchillo Flaqué + Maxim Cournoyer Ludovic Courtès Jason Earl Paul Eggert diff --git a/doc/guile-api.alist b/doc/guile-api.alist index a1616149f..20c900

[PATCH v5 3/4] guix.scm: Update guile package native inputs.

2023-11-06 Thread Maxim Cournoyer
* guix.scm (guile) [native-inputs]: Replace texlive-base with texlive-scheme-basic. Add git:send-email. --- (no changes since v1) .guix/modules/guile-package.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.guix/modules/guile-package.scm

[PATCH v5 0/4] Add module depth information to %load-verbosely output

2023-11-06 Thread Maxim Cournoyer
ckward compatibility at the benefit of future stability and extensibility Changes in v4: - Remove with-output-to-port in %load-announce and adjust doc Changes in v3: - Replace PAD-COUNT with DEPTH in VISUAL-DEPTH guard. Changes in v2: - Guard against negative pad count when computing 'visual-depth'

[PATCH v5 1/4] (ice-9 boot-9): Fix typo.

2023-11-06 Thread Maxim Cournoyer
* module/ice-9/boot-9.scm (module-use-interfaces!): Fix typo in doc string. --- (no changes since v1) module/ice-9/boot-9.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index a5f2eea9b..897d8d01c 100644 ---

[PATCH v5 2/4] .dir-locals: Set c-basic-offset to 2 for c-mode.

2023-11-06 Thread Maxim Cournoyer
* .dir-locals.el (c-mode): Set c-basic-offset to 2. --- (no changes since v1) .dir-locals.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 908670479..f63bdc8a3 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ ((nil .

[PATCH v4 2/4] .dir-locals: Set c-basic-offset to 2 for c-mode.

2023-09-25 Thread Maxim Cournoyer
* .dir-locals.el (c-mode): Set c-basic-offset to 2. --- (no changes since v1) .dir-locals.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 908670479..f63bdc8a3 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ ((nil .

[PATCH v4 1/4] (ice-9 boot-9): Fix typo.

2023-09-25 Thread Maxim Cournoyer
* module/ice-9/boot-9.scm (module-use-interfaces!): Fix typo in doc string. --- (no changes since v1) module/ice-9/boot-9.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index a5f2eea9b..897d8d01c 100644 ---

[PATCH v4 4/4] load: Display modules depth in output when using %load-verbosely.

2023-09-25 Thread Maxim Cournoyer
b45 100644 --- a/THANKS +++ b/THANKS @@ -5,6 +5,7 @@ Contributors since the last release: Rob Browning Tristan Colgate-McFarlane Aleix Conchillo Flaqué + Maxim Cournoyer Ludovic Courtès Jason Earl Paul Eggert diff --git a/doc/guile-a

[PATCH v4 3/4] guix.scm: Update guile package native inputs.

2023-09-25 Thread Maxim Cournoyer
* guix.scm (guile) [native-inputs]: Replace texlive-base with texlive-scheme-basic. Add git:send-email. --- (no changes since v1) .guix/modules/guile-package.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.guix/modules/guile-package.scm

[PATCH v4 0/4] Add module depth information to %load-verbosely output

2023-09-25 Thread Maxim Cournoyer
hanges in v3: - Replace PAD-COUNT with DEPTH in VISUAL-DEPTH guard. Changes in v2: - Guard against negative pad count when computing 'visual-depth' Maxim Cournoyer (4): (ice-9 boot-9): Fix typo. .dir-locals: Set c-basic-offset to 2 for c-mode. guix.scm: Update guile package native inputs.

Re: [PATCH v4 4/4] load: Display modules depth in output when using %load-verbosely.

2023-10-03 Thread Maxim Cournoyer
Hello! Maxime Devos writes: > Op 02-10-2023 om 18:13 schreef Maxim Cournoyer: >>> Something I didn't notice previously: >>> >>> Op 25-09-2023 om 16:29 schreef Maxim Cournoyer: >>>> + if (scm_is_string (args)) { >>>> + /* C

Re: [PATCH v4 4/4] load: Display modules depth in output when using %load-verbosely.

2023-10-02 Thread Maxim Cournoyer
Hi Maxime, Maxime Devos writes: > Something I didn't notice previously: > > Op 25-09-2023 om 16:29 schreef Maxim Cournoyer: >> + if (scm_is_string (args)) { >> + /* C code written for 3.9 and earlier expects this function to >> + take a sin

Re: [PATCH v4 4/4] load: Display modules depth in output when using %load-verbosely.

2023-10-10 Thread Maxim Cournoyer
Hi Maxime, Maxime Devos writes: [...] > I now see: > >> + /* For compatibility with older load hooks procedures, fall-back to >> + calling it with a single argument if calling it with two fails. */ >> + scm_internal_catch (scm_from_latin1_symbol ("wrong-number-of-args"), >> +

[PATCH v5 2/4] .dir-locals: Set c-basic-offset to 2 for c-mode.

2023-10-21 Thread Maxim Cournoyer
* .dir-locals.el (c-mode): Set c-basic-offset to 2. --- (no changes since v1) .dir-locals.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 908670479..f63bdc8a3 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ ((nil .

[PATCH v5 1/4] (ice-9 boot-9): Fix typo.

2023-10-21 Thread Maxim Cournoyer
* module/ice-9/boot-9.scm (module-use-interfaces!): Fix typo in doc string. --- (no changes since v1) module/ice-9/boot-9.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index a5f2eea9b..897d8d01c 100644 ---

[PATCH v5 3/4] guix.scm: Update guile package native inputs.

2023-10-21 Thread Maxim Cournoyer
* guix.scm (guile) [native-inputs]: Replace texlive-base with texlive-scheme-basic. Add git:send-email. --- (no changes since v1) .guix/modules/guile-package.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.guix/modules/guile-package.scm

[PATCH v5 4/4] load: Display modules depth in output when using %load-verbosely.

2023-10-21 Thread Maxim Cournoyer
tors since the last release: Rob Browning Tristan Colgate-McFarlane Aleix Conchillo Flaqué + Maxim Cournoyer Ludovic Courtès Jason Earl Paul Eggert diff --git a/doc/guile-api.alist b/doc/guile-api.alist index a1616149f..20c900

[PATCH v5 0/4] Add module depth information to %load-verbosely output

2023-10-21 Thread Maxim Cournoyer
ckward compatibility at the benefit of future stability and extensibility Changes in v4: - Remove with-output-to-port in %load-announce and adjust doc Changes in v3: - Replace PAD-COUNT with DEPTH in VISUAL-DEPTH guard. Changes in v2: - Guard against negative pad count when computing 'visual-depth'

Re: [PATCH v4 4/4] load: Display modules depth in output when using %load-verbosely.

2023-10-21 Thread Maxim Cournoyer
file:2512: ice-9/boot-9.go] Aborted make[2]: Leaving directory '/home/maxim/src/guile/stage1' make[1]: *** [Makefile:2205: all-recursive] Error 1 make[1]: Leaving directory '/home/maxim/src/guile' make: *** [Makefile:2090 : all] Erreur 2 --8<---cut here---end---&g

[PATCH] module: Add some docstrings to (system base compile).

2023-11-09 Thread Maxim Cournoyer
* module/system/base/compile.scm (next-pass): Add doc. (compute-compiler, read-and-compile, compile): Likewise. --- module/system/base/compile.scm | 11 +++ 1 file changed, 11 insertions(+) diff --git a/module/system/base/compile.scm b/module/system/base/compile.scm index

[PATCH] scripts: scan-api: Make executable and add proper shebang.

2023-11-09 Thread Maxim Cournoyer
* module/scripts/scan-api.scm: Invoke 'main' from shebang. (main): Strip $0 from ARGS. --- module/scripts/scan-api.scm | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) mode change 100644 => 100755 module/scripts/scan-api.scm diff --git a/module/scripts/scan-api.scm

[PATCH 2/2] ice-9: Fix 'include' when used in compilation contexts.

2023-11-09 Thread Maxim Cournoyer
Fix bug #66046. Introduce a 'compilation-source-file-name' fluid that captures the pre-canonicalized file name used when compiling a file, before it gets modified in fport_canonicalize_filename. That reference that can then used directly by 'include', avoiding problems. *

[PATCH 1/2] tests: Add new compile-file tests.

2023-11-09 Thread Maxim Cournoyer
Add a test for bug #66046. To run just the compiler tests: ./meta/guile -L test-suite -L . test-suite/tests/compiler.test * test-suite/tests/compiler.test (with-temporary-directory): New syntax. (delete-file-recursively): New procedure. ("compile-file: relative include works") ("compile-file:

[PATCH] doc: Fix typo in PEG example.

2023-11-09 Thread Maxim Cournoyer
* doc/ref/api-peg.texi (PEG API Reference): Fix typo in PEG example. --- doc/ref/api-peg.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/api-peg.texi b/doc/ref/api-peg.texi index 82e2758b4..86eb02c28 100644 --- a/doc/ref/api-peg.texi +++ b/doc/ref/api-peg.texi @@

Re: [PATCH] scripts: scan-api: Make executable and add proper shebang.

2023-11-10 Thread Maxim Cournoyer
Hello, Maxim Cournoyer writes: > * module/scripts/scan-api.scm: Invoke 'main' from shebang. > (main): Strip $0 from ARGS. After reading module/scripts/README, this may have been misguided; it seems these 'commands' are intended to be used with the 'guild' launcher, e.g.

Re: bug#22608: Module system thread unsafety and .go compilation

2022-10-07 Thread Maxim Cournoyer
Hi, l...@gnu.org (Ludovic Courtès) writes: > Hello, > > taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis: > >> To speed up the compilation of the many Scheme files in Guix, we use a >> script that first loads all modules to be compiled into the Guile >> process (by calling

Re: A Guile debugger workgroup?

2023-03-01 Thread Maxim Cournoyer
Hi Neil, Neil Jerram writes: > I wrote something called GDS, back in 1.8 days, that combined some of > the Emacs interaction features that we now have with Geiser, with > step-by-step debugging and breakpoints. You can read about that here: >

Re: Resurrecting top-notch continuous integration for Guile

2023-02-06 Thread Maxim Cournoyer
Hi! Ludovic Courtès writes: > Hi! > > Ludovic Courtès skribis: > >> There’s still much tweaking we can do, but the basics are in place, and >> I find it pretty cool. :-) If there are no objections, I’ll merge this >> branch into “main”. It’s going to be nice to have a dashboard to look >>

[Guile-Lib PATCH v3 3/7] tests: guile-library.api: Re-generate.

2024-02-08 Thread Maxim Cournoyer
The file was regenerated by running 'make -C unit-tests guile-library.api.update'. * unit-tests/guile-library.api: Regenerate. --- (no changes since v1) unit-tests/guile-library.api | 239 +-- 1 file changed, 5 insertions(+), 234 deletions(-) diff --git

[Guile-Lib PATCH v3 0/7] Make log-msg accept source properties for displaying source location

2024-02-08 Thread Maxim Cournoyer
(ice-9 format) for the default-log-formatter - Use a keyword argument for the source-properties - Add proc-name argument to default-log-formatter Changes in v2: - Relax log-msg typing on source-properties, as it can also be #f Maxim Cournoyer (7): configure.ac: Fix typo in message. Use

[Guile-Lib PATCH v3 2/7] Use /bin/sh in update-api script shebang.

2024-02-08 Thread Maxim Cournoyer
* unit-tests/update-api: Replace /bin/bash with /bin/sh. --- (no changes since v1) unit-tests/update-api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit-tests/update-api b/unit-tests/update-api index 8824c3f..392ce8b 100755 --- a/unit-tests/update-api +++

[Guile-Lib PATCH v3 4/7] logging: Allow passing source properties to `log-msg'.

2024-02-08 Thread Maxim Cournoyer
logger.scm b/src/logging/logger.scm index 7ff4f43..7b32ffe 100644 --- a/src/logging/logger.scm +++ b/src/logging/logger.scm @@ -1,5 +1,6 @@ ;; (logging logger) -- write methods to log files -;; Copyright (C) 2003 Richard Todd +;; Copyright (C) 2003 Richard Todd +;; Copyright (C) 2024 Maxim

[Guile-Lib PATCH v3 6/7] logging: Make procedure name available to the log formatter.

2024-02-08 Thread Maxim Cournoyer
* src/logging/logger.scm (log-helper): Retrieve procedure name and pass it to `accept-log'. (default-log-formatter): Register new proc-name keyword argument, and include it in formatted message. (accept-log): New proc-name positional argument; pass it to log-formatter. *

[Guile-Lib PATCH v3 5/7] logging: Adjust default log-formatter output.

2024-02-08 Thread Maxim Cournoyer
The log level is always in uppercase, and its surrounding parentheses are dropped. * src/logging/logger.scm (default-log-formatter): Uppercase level and strip its surrounding parens. * unit-tests/logging.logger.scm: Adjust expected output accordingly. --- (no changes since v1)

[Guile-Lib PATCH v3 1/7] configure.ac: Fix typo in message.

2024-02-08 Thread Maxim Cournoyer
--- (no changes since v1) configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7171296..e8f1bba 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,7 @@ dnl distcheck' are aware it is a wip version. AC_INIT( [guile-lib],

[Guile-Lib PATCH v3 7/7] logging: Call flush-log at the end of accept-log.

2024-02-08 Thread Maxim Cournoyer
This is to avoid long block buffering of log messages, which would causes the log messages to be delayed, which is likely to confuse users attempting to follow the logs in real time (see: https://lists.gnu.org/archive/html/guile-devel/2024-01/msg0.html). * src/logging/logger.scm (accept-log):

Re: [PATCH] Fixes for custom-ports

2024-02-08 Thread Maxim Cournoyer
Hi Ludo, Ludovic Courtès writes: > Jonas Hahnfeld via "Developers list for Guile, the GNU extensibility > library" skribis: > >> From b5f1013ad969b6e4e35b36dc63798375ffbecda3 Mon Sep 17 00:00:00 2001 >> From: Jonas Hahnfeld >> Date: Tue, 24 Oct 2023 12:47:21 +0200 >> Subject: [PATCH 1/2] Fix

Re: [Guile-Lib PATCH v2 4/6] logging: Allow passing source properties to `log-msg'.

2024-02-06 Thread Maxim Cournoyer
Hi, Maxim Cournoyer writes: > Note: this changes the API of the `accept-log' method by adding a new > positional argument to it. `accept-log' is a "weak" public > interface (mostly intended for internal uses or logging handler > implementors), so this is deemed accepta

Re: [PATCH] Fixes for custom-ports

2024-02-11 Thread Maxim Cournoyer
Hi Ludo, Ludovic Courtès writes: > Hi, > > Maxim Cournoyer skribis: > >>> PS: As far as I’m concerned, patches sent to bug-gu...@gnu.org are less >>> likely to be lost because I see them in M-x debbugs. >>> >> >> The contributing docu

[PATCH v9 12/18] module: Add SRFI 125.

2023-12-12 Thread Maxim Cournoyer
* module/srfi/srfi-125.scm * module/srfi/srfi-125/hash-table.scm * test-suite/tests/srfi-125-test.scm * test-suite/tests/srfi-125.test: New files. * am/bootstrap.am (SOURCES): Register srfi-125.scm. (NOCOMP_SOURCES): Register hash-table.scm. * test-suite/Makefile.am (SCM_TESTS): Register

[PATCH v9 13/18] module: Add SRFI 151.

2023-12-12 Thread Maxim Cournoyer
* module/srfi/srfi-151.scm * module/srfi/srfi-151/bitwise-33.scm * module/srfi/srfi-151/bitwise-60.scm * module/srfi/srfi-151/bitwise-other.scm * test-suite/tests/srfi-151.test * test-suite/tests/srfi-151-test.scm: New files. * am/bootstrap.am (SOURCES): Register srfi-151.scm. (NOCOMP_SOURCES):

[PATCH v9 01/18] ice-9: Fix 'include' when used in compilation contexts.

2023-12-12 Thread Maxim Cournoyer
Fixes bug #66046. Introduce a '%file-port-stripped-prefixes' fluid that captures the pre-canonicalized file name used when compiling a file, before it gets modified in fport_canonicalize_filename. That reference that can then used by 'include' when searching for included files. *

[PATCH v9 02/18] Use R7RS 'rename' syntax for exports.

2023-12-12 Thread Maxim Cournoyer
From: Timothy Sample * module/ice-9/r7rs-libraries.scm (define-library): Convert R7RS exports to R6RS exports before passing them on to 'library'. * NEWS: Mention bug fix. Fixes: https://bugs.gnu.org/67255 Reported-by: Maxim Cournoyer . Modified-by: Maxim Cournoyer --- (no changes since v5

[PATCH v9 16/18] module: Add SRFI 209.

2023-12-12 Thread Maxim Cournoyer
Sources retrieved from commit 9d40aaff0b788f3fd611e04a5b6aef4dfd017e8d from https://github.com/scheme-requests-for-implementation/srfi-209/. * module/srfi/srfi-209.sld: New file. * module/srfi/srfi-209/209.scm: Likewise. * module/Makefile.am (SOURCES): Register srfi-209.sld. (NOCOMP_SOURCES):

[PATCH v9 17/18] module: Add SRFI 48.

2023-12-12 Thread Maxim Cournoyer
* module/srfi/srfi-48.sld: New file. * module/srfi/srfi-48/48.body.scm: Likewise. * am/bootstrap.am (srfi/srfi-48.go): New target. (SOURCES): Register srfi/srfi-48.sld. (NOCOMP_SOURCES): Register srfi/srfi-48/48.upstream.scm. * test-suite/tests/srfi-48.test: New test. * test-suite/Makefile.am

[PATCH v9 07/18] build: Register '.sld' as an alternative extension to '.scm'.

2023-12-12 Thread Maxim Cournoyer
This is useful when integrating R7RS SRFI libraries into Guile. * am/bootstrap.am (GOBJECTS_): New variable. (GOBJECTS): Compute from GOBJECTS_. : Register %.sld to vpath. (SUFFIXES): Register '.sld' extension. (.sld.go .scm.go): Add 'sld.go' target to automatic compilation rule. --- (no changes

[PATCH v9 06/18] Share features tested by cond-expand library declarations and expressions.

2023-12-12 Thread Maxim Cournoyer
This addresses a FIXME in r7rs-libraries.scm, which was about the cond-expand define-library declarations not using the same features as provided in (scheme base). * .gitignore: Register /module/ice-9/endianness.scm. * am/bootstrap.am (NOCOMP_SOURCES): Register ice-9/endianness.scm and

[PATCH v9 15/18] module: Add SRFI 178.

2023-12-12 Thread Maxim Cournoyer
* module/srfi/srfi-178.sld: New file. * am/bootstrap.am (SOURCES): Register it. * module/srfi/srfi-178/convert.scm * module/srfi/srfi-178/fields.scm * module/srfi/srfi-178/gen-acc.scm * module/srfi/srfi-178/logic-ops.scm * module/srfi/srfi-178/macros.scm * module/srfi/srfi-178/map2list.scm *

[PATCH v9 05/18] (scheme base): Support non-negative SRFI integer names in cond-expand.

2023-12-12 Thread Maxim Cournoyer
* module/scheme/base.scm (r7:cond-expand): Test for library using resolve-r6rs-interface instead of resolve-interface. Swallow any exception with false-if-exception. * test-suite/tests/r7rs-cond-expand.test: New test. * NEWS: Update news. * LICENSES/LGPL-3.0-or-later.txt: New file. --- (no

[PATCH v9 00/18] Add SRFI 209 and dependencies; improve support for R7RS libraries

2023-12-12 Thread Maxim Cournoyer
ename SRFI-69 to SRFI 69, SRFI-125 to SRFI 125 in text - Remove string-hash and symbol-hash from exports (they are already listed in #:rename) Maxim Cournoyer (17): ice-9: Fix 'include' when used in compilation contexts. r7rs-libraries: Add support for 'else' clause in cond-expand. r

[PATCH v9 18/18] module: Upgrade SRFI 64 to modern R7RS library implementation.

2023-12-12 Thread Maxim Cournoyer
This upgrades our SRFI 64 copy to use the alternative R7RS implementation from Taylan Kammer, which improves readability by leveraging modern Scheme features and fixes a few bugs such as bug#66776 (test-error doesn't match error types). * am/bootstrap.am (srfi/srfi-64.go): Update target.

[PATCH v9 08/18] module: Add SRFI 126.

2023-12-12 Thread Maxim Cournoyer
This is not original work: it merely integrates and formats the work of Taylan Ulrich Bayırlı/Kammer into Guile, with a few adjustments to avoid warnings/fix missing imports. Thank you! * module/srfi/srfi-126.sld: New file. * test-suite/tests/srfi-126.test: New file. *

[PATCH v9 11/18] module: Add (scheme sort).

2023-12-12 Thread Maxim Cournoyer
* module/scheme/sort.sld: New R7RS-large library shim for (rnrs sorting). * am/bootstrap.am (SOURCES): Register it. * NEWS: Update NEWS. --- (no changes since v5) Changes in v5: - Update NEWS NEWS | 1 + am/bootstrap.am| 1 + module/scheme/sort.sld | 9 + 3

[PATCH v9 09/18] module: Add SRFI 128.

2023-12-12 Thread Maxim Cournoyer
>From upstream commit 62504e3b5b01615297cf65c33ca76a474bd61dd3. * module/srfi/srfi-128.scm * module/srfi/srfi-128/128.body1.scm * module/srfi/srfi-128/128.body2.scm * test-suite/tests/srfi-128-test.scm * test-suite/tests/srfi-128.test: New files. * am/bootstrap.am (SOURCES): Register

[PATCH v9 04/18] r7rs-libraries: Better support R7RS SRFI library names.

2023-12-12 Thread Maxim Cournoyer
* module/ice-9/r6rs-libraries.scm (resolve-r6rs-interface : Relax symbol requirements. : Add a new syntax matching clause to avoid stripping the 3rd identifier in a R7RS SRFI module name. (library): Move R7RS specifics to... * module/ice-9/r7rs-libraries.scm (define-library): ... here.

[PATCH v9 03/18] r7rs-libraries: Add support for 'else' clause in cond-expand.

2023-12-12 Thread Maxim Cournoyer
* module/ice-9/r7rs-libraries.scm (define-library) : Add a pattern to match an 'else' clause. --- (no changes since v1) module/ice-9/r7rs-libraries.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/ice-9/r7rs-libraries.scm b/module/ice-9/r7rs-libraries.scm index

[PATCH v9 10/18] module: Add (scheme comparator).

2023-12-12 Thread Maxim Cournoyer
* module/scheme/comparator.sld: New R7RS-large library shim for SRFI 128. * am/bootstrap.am (SOURCES): Register it. * NEWS: Update NEWS. --- (no changes since v7) Changes in v7: - Register prerequisites for scheme/comparator.go in am/bootstrap.am Changes in v5: - Update NEWS NEWS

[PATCH v2 2/2] scripts: Add SRFI documentation HTML -> Texinfo snarfer.

2023-12-12 Thread Maxim Cournoyer
\ diff --git a/module/scripts/snarfi.scm b/module/scripts/snarfi.scm new file mode 100644 index 0..3f0f7978a --- /dev/null +++ b/module/scripts/snarfi.scm @@ -0,0 +1,752 @@ +;;; snarfi --- Snarf SRFI HTML specifications into Texinfo doc + +;;; SPDX-FileCopyrightText: 2023

[PATCH v2 0/2] Add 'snarfi' guild script to convert SRFI HTML specifications to Texinfo

2023-12-12 Thread Maxim Cournoyer
dependency on it. Changes in v2: - Add support for HTML table -> Texinfo @multitable - Only splice "Specification" section if necessary - Preserve spliced section leading text instead of discarding it - Various bug fixes - Use SPDX/REUSE for license/copyright notices Maxim Cournoye

[PATCH v2 1/2] .dir-locals: Add indentation rule for sxml-match syntax.

2023-12-12 Thread Maxim Cournoyer
* .dir-locals.el (scheme-mode) : Add indentation rule. --- (no changes since v1) .dir-locals.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 908670479..a96408dc1 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -48,7 +48,8 @@

[guile-lib] (logging logger) doesn't call flush-log after each log

2024-01-02 Thread Maxim Cournoyer
Hi, I've recently made use of guile-lib's logging library, and was surprised that by default the rotating-log logger, which logs to a file, would write to a file using block buffering, which would means logs would only be seen added to the file every now and then rather than in real time. That

[PATCH v5 15/15] module: Add SRFI 178.

2023-11-29 Thread Maxim Cournoyer
* module/srfi/srfi-178.sld: New file. * am/bootstrap.am (SOURCES): Register it. * module/srfi/srfi-178/convert.scm * module/srfi/srfi-178/fields.scm * module/srfi/srfi-178/gen-acc.scm * module/srfi/srfi-178/logic-ops.scm * module/srfi/srfi-178/macros.scm * module/srfi/srfi-178/map2list.scm *

[PATCH v5 08/15] module: Add SRFI 126.

2023-11-29 Thread Maxim Cournoyer
This is not original work: it merely integrates and formats the work of Taylan Ulrich Bayırlı/Kammer into Guile, with a few adjustments to avoid warnings/fix missing imports. Thank you! * module/srfi/srfi-126.scm: New file. * test-suite/tests/srfi-126.test: New file. *

[PATCH v5 13/15] module: Add SRFI 151.

2023-11-29 Thread Maxim Cournoyer
* module/srfi/srfi-151.scm * module/srfi/srfi-151/bitwise-33.scm * module/srfi/srfi-151/bitwise-60.scm * module/srfi/srfi-151/bitwise-other.scm * test-suite/tests/srfi-151.test * test-suite/tests/srfi-151-test.scm: New files. * am/bootstrap.am (SOURCES): Register srfi-151.scm. (NOCOMP_SOURCES):

[PATCH v5 12/15] module: Add SRFI 125.

2023-11-29 Thread Maxim Cournoyer
* module/srfi/srfi-125.scm * module/srfi/srfi-125/hash-table.scm * test-suite/tests/srfi-125-test.scm * test-suite/tests/srfi-125.test: New files. * am/bootstrap.am (SOURCES): Register srfi-125.scm. (NOCOMP_SOURCES): Register hash-table.scm. * test-suite/Makefile.am (SCM_TESTS): Register

  1   2   3   >