[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 @@

[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 v5 4/4] load: Display modules depth in output when using %load-verbosely.

2023-11-06 Thread Maxim Cournoyer
* NEWS: Update news. * THANKS: Add myself. * doc/guile-api.alist (%load-announce, %load-hook): Add DEPTH argument. * doc/ref/api-evaluation.texi (Loading): Document new DEPTH argument for the primitive-load, primitive-load-path and %load-hook procedures. Update %load-hook example. Document

[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 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 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 v5 0/4] Add module depth information to %load-verbosely output

2023-11-06 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: . Changes in v5: - Introduce the usage of keywords for %load-hooks, breaking backward

[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

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

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-03 Thread Vivien Kraus
Le vendredi 03 novembre 2023 à 13:49 -0400, Nathan a écrit : > > This pushes the limits of my understanding of URIs, as I did not > > know > > we had to consider '%2E%2E' the same as '..'. However, the RFC is > > not > > very clear: > > I wasn't able to find anything that MANDATED any

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-03 Thread Developers list for Guile, the GNU extensibility library
Hi Vivien, > This pushes the limits of my understanding of URIs, as I did not know > we had to consider '%2E%2E' the same as '..'. However, the RFC is not > very clear: I wasn't able to find anything that MANDATED any normalization at all, either before or after Relative Resolution. It is

[PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-02 Thread Developers list for Guile, the GNU extensibility library
for '='. resolve-relative-reference: I rewrote this procedure so it is shorter. I also added #:strict? to toggle "strict parser" as mentioned in the RFC. - Nathan >From 655d3e61fa99bb5ddf5388c0843f498d0bf6f789 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 2 Nov 2023 15:42:3

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-02 Thread Vivien Kraus
Hello Natan! Le jeudi 02 novembre 2023 à 16:00 -0400, Nathan a écrit : > There is a problem and I fixed it by rewriting a bunch of code myself > because I need similar code. Thank you! > remove-dot-segments: > You cannot split-and-decode-uri-path and then encode-and-join-uri- > path. > Those

[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] Fixes for custom-ports

2023-10-29 Thread Developers list for Guile, the GNU extensibility library
: Tue, 24 Oct 2023 12:47:21 +0200 Subject: [PATCH 1/2] Fix loading of custom-ports extension * module/ice-9/custom-ports.scm: Load extension also in expand and eval. --- module/ice-9/custom-ports.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/custom-ports.scm b

[PATCH v2 0/4] Add the HTTP Link header (fixed)

2023-10-28 Thread Vivien Kraus
Sorry for the noise. This is the correct version. Best regards, Vivien Vivien Kraus (4): Add resolve-relative-reference in (web uri), as in RFC 3986 5.2. Update section comment in (web http). Check that key/value parameters in HTTP headers are quoted in needed. Parse the HTTP Link

[PATCH v2 3/4] Check that key/value parameters in HTTP headers are quoted in needed.

2023-10-28 Thread Vivien Kraus
If the value has a space, it should be quoted. In headers with a simple list of strings, the parser would not stop for space, but “key=value and value;” parameters must be quoted, otherwise the parser will expect “and” to be a new token. * test-suite/tests/web-http.test ("general headers"): Test

[PATCH v2 2/4] Update section comment in (web http).

2023-10-28 Thread Vivien Kraus
The “REPonse headers“ section should be named “RESPonse headers“ (emphasis mine). * module/web/http.scm: Update comment. --- module/web/http.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/web/http.scm b/module/web/http.scm index 24a4312b5..b34159aab 100644 ---

[PATCH v2 4/4] Parse the HTTP Link header.

2023-10-28 Thread Vivien Kraus
The Link header [1] is used to add arbitrary metadata to resources. [1]: https://httpwg.org/specs/rfc8288.html#header * module/web/http.scm (parse-link-value): New function. (parse-link-list): New function. (validate-link-list): New function. (write-link-list): New function.

[PATCH v2 1/4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-28 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. * doc/ref/web.texi (URIs): Document it here. (Subtypes

[PATCH 3/3] Parse the HTTP Link header.

2023-10-28 Thread Vivien Kraus
The Link header [1] is used to add arbitrary metadata to resources. [1]: https://httpwg.org/specs/rfc8288.html#header * module/web/http.scm (parse-link-value): New function. (parse-link-list): New function. (validate-link-list): New function. (write-link-list): New function.

[PATCH 0/3] Parse the Link header

2023-10-28 Thread Vivien Kraus
Dear Guile developers, I think Guile should parse the HTTP Link header. I included the patch for resolve-relative-reference that I submitted earlier, because there are otherwise conflicts in AUTHORS and NEWS. What do you think? Best regards, Vivien Vivien Kraus (3): Add resolve-relative

[PATCH 1/3] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-28 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. * doc/ref/web.texi (URIs): Document it here. (Subtypes

[PATCH 2/3] Update section comment in (web http).

2023-10-28 Thread Vivien Kraus
The “REPonse headers“ section should be named “RESPonse headers“ (emphasis mine). * module/web/http.scm: Update comment. --- module/web/http.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/web/http.scm b/module/web/http.scm index 24a4312b5..b34159aab 100644 ---

Re: [PATCH] add SRFI-119 / language/wisp to Guile? (new patch, squashed)

2023-10-27 Thread Dr. Arne Babenhauserheide
ArneBab writes: > ArneBab writes: >> I now assigned my copyright in GNU Guile to FSF > Is the patch now good to go? Clarification: I don’t actually need someone to push this (I can push). I just need the go to actually do it (rebase the branch then merge it), because I don’t want to

[PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-26 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. * doc/ref/web.texi (URIs): Document it here. (Subtypes

[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 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 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 0/4] Add module depth information to %load-verbosely output

2023-10-21 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: . Changes in v5: - Introduce the usage of keywords for %load-hooks, breaking backward

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

2023-10-21 Thread Maxim Cournoyer
* NEWS: Update news. * THANKS: Add myself. * doc/guile-api.alist (%load-announce, %load-hook): Add DEPTH argument. * doc/ref/api-evaluation.texi (Loading): Document new DEPTH argument for the primitive-load, primitive-load-path and %load-hook procedures. Update %load-hook example. Document

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

2023-10-21 Thread Maxim Cournoyer
xim/src/guile/stage1/ice-9/boot-9.go ;;; found fresh compiled file at /home/maxim/src/guile/stage0/ice-9/boot-9.go guile: uncaught exception: In procedure private-lookup: Module named (system vm program) does not exist Cannot exit gracefully when init is in progress; aborting. make[2]: *** [Make

[PATCH] Remove and ignore generated files

2023-10-18 Thread Developers list for Guile, the GNU extensibility library
Hahnfeld Date: Wed, 18 Oct 2023 21:00:58 +0200 Subject: [PATCH 1/3] Delete two config.rpath scripts config.rpath in the top-level was heavily outdated and unused. The version of the script in build-aux/ was overwritten by autogen.sh; commit 7f18b659b9 already tried to remove it two years ago, but did

Re: [PATCH] doc: Extend documentation for (ice-9 match)

2023-10-17 Thread Maxime Devos
Op 15-10-2023 om 19:40 schreef Tomas Volf: I am not aware of any bugs here, but I wanted to adhere to the style of the original examples: (let ((l '(hello (world (match l ;; <- the input object (('hello (who)) ;; <- the pattern who))) ;; <-

[PATCH v2] doc: Extend documentation for (ice-9 match)

2023-10-15 Thread Tomas Volf
Extend the documentation for (ice-9 match) module with explanations of some of the patterns and also provide more examples for them. That should make it more useful for people trying to use the module for the first time just based on the documentation. * doc/ref/match.texi (Pattern Matching):

Re: [PATCH] doc: Extend documentation for (ice-9 match)

2023-10-15 Thread Tomas Volf
ed me in the > > first place. > > > > I think even more additions would be useful, but I still do not > > understand the pattern matching fully, so they are not a part of this > > patch. Examples would be: How and when I should use quasi-patterns? > > What does

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

2023-10-11 Thread Maxime Devos
Op 11-10-2023 om 04:36 schreef Maxim Cournoyer: Onderwerp: Re: [PATCH v4 4/4] load: Display modules depth in output when using %load-verbosely. Van: Maxim Cournoyer Datum: 11-10-2023 04:36 Aan: Maxime Devos CC: guile-devel@gnu.org Hi Maxime, Maxime Devos writes: [...] I now see

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"), >> +

Re: [PATCH] add SRFI-119 / language/wisp to Guile? (new patch, squashed)

2023-10-10 Thread Dr. Arne Babenhauserheide
goes. >> I now sent a request to be sent the papers to sign to ass...@gnu.org > I now assigned my copyright in GNU Guile to FSF Is the patch now good to go? Best wishes, Arne signature.asc Description: PGP signature

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-10 Thread Maxime Devos
Op 04-10-2023 om 07:29 schreef Vivien Kraus: Le mercredi 04 octobre 2023 à 00:30 +0200, Maxime Devos a écrit :       The best prevention is not allowing redirects at all or only       allowing redirections that keep the hostname intact -- while an       option for much software, it isn't

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

2023-10-10 Thread Maxime Devos
Op 04-10-2023 om 03:42 schreef Maxim Cournoyer: %load-hook is carefully crafted as to accept both one or two arguments (for backward compatibility). I didn't pay attention to %load-announce and I'm surprised it's a public API, as its sole function seems to be the default %load-hook value.

[PATCH v3] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-06 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. * doc/ref/web.texi (URIs): Document it here. (Subtypes

Re: [PATCH] add SRFI-119 / language/wisp to Guile? (new patch, squashed)

2023-10-05 Thread Dr. Arne Babenhauserheide
"Dr. Arne Babenhauserheide" writes: > "Dr. Arne Babenhauserheide" writes: >>> OK. I assumed you already emailed ass...@gnu.org the relevant form, >>> right? Let us know how it goes. > I now sent a request to be sent the papers to sign to ass...@gnu.org > using a template I also got for

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Vivien Kraus
Le mercredi 04 octobre 2023 à 00:30 +0200, Maxime Devos a écrit : > > >       The best prevention is not allowing redirects at all or only > >       allowing redirections that keep the hostname intact -- while > > an > >       option for much software, it isn't an option for web > > browsers. >

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 code written for 3.9 and earlier expects this function to +

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Maxime Devos
    The best prevention is not allowing redirects at all or only     allowing redirections that keep the hostname intact -- while an     option for much software, it isn't an option for web browsers. Partially scratch that -- restricting to ‘keeping hostname intact’ is insufficient,

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Vivien Kraus
Hello! Le lundi 25 septembre 2023 à 22:46 +0200, Maxime Devos a écrit : > However, there are also some dangers on doing this > thing -- the ‘external’ page https://example.com/data.json could > redirect to > http://localhost/unsecured-secret-but-its-localhost-only-so-it-is-safe > . Since you

Re: [PATCH v2] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Maxime Devos
Op 03-10-2023 om 20:56 schreef Dale Mellor: On Tue, 2023-10-03 at 20:49 +0200, Maxime Devos wrote: subtle spelling error: subtleties -> subtleties That's pretty subtle! Oops, I corrected the spelling error too early: subtelties -> subtleties OpenPGP_0x49E3EE22191725EE.asc

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

2023-10-03 Thread Maxime Devos
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 code written for 3.9 and earlier expects this function to + take a single argument (the file name). */ +

Re: [PATCH v2] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Dale Mellor
On Tue, 2023-10-03 at 20:49 +0200, Maxime Devos wrote: > > subtle spelling error: subtleties -> subtleties That's pretty subtle!

Re: [PATCH v2] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Maxime Devos
Op 02-10-2023 om 18:32 schreef Vivien Kraus: Hi! Are there other things to fix? You forgot to include the warning of potential security issues in the documentation -- I don't mean that Guile should fix the issues (it can't), but rather that its documentation should inform the user that

guile support for multiple languages [was: [PATCH] add language/wisp to Guile?]

2023-10-02 Thread Matt Wette
On 10/2/23 7:59 AM, Christine Lemmer-Webber wrote: "Philip McGrath" writes: I've sort of alluded above to my pipe dream of a grand unified future for Racket-and-Guile-on-Chez, Guile-and-Racket-on-the-Guile-VM, and endless other possibilities. I wrote about it in more detail on the

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 single argument (the file name). */ >> +

Re: [PATCH] add language/wisp to Guile?

2023-10-02 Thread Christine Lemmer-Webber
"Philip McGrath" writes: > I've sort of alluded above to my pipe dream of a grand unified future > for Racket-and-Guile-on-Chez, Guile-and-Racket-on-the-Guile-VM, and > endless other possibilities. I wrote about it in more detail on the > guix-devel list at [10]. (These thoughts were inspired by

Re: [PATCH] add language/wisp to Guile?

2023-10-02 Thread Christine Lemmer-Webber
Maxime Devos writes: > [[PGP Signed Part:Undecided]] > Op 30-09-2023 om 15:17 schreef Christine Lemmer-Webber: >> Haven't fully caught up on this thread, but as a side note I have a >> mostly-finished implementation of a Wisp parser which takes a very >> different approach than Arne's, and was

Re: [PATCH] add language/wisp to Guile?

2023-09-30 Thread Maxime Devos
Op 30-09-2023 om 15:17 schreef Christine Lemmer-Webber: Haven't fully caught up on this thread, but as a side note I have a mostly-finished implementation of a Wisp parser which takes a very different approach than Arne's, and was more understandable to me personally, a bit more functional and

Re: [PATCH] add language/wisp to Guile?

2023-09-30 Thread Christine Lemmer-Webber
and the > Tsukundere game engines, I thought it coud be a good time to merge Wisp > into Guile itself. > > So I prepared a patch that adds language/wisp, some texinfo for > SRFI-119, and some tests. > > > Why add Wisp? > > For Wisp: it is then available directly wherever

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

2023-09-28 Thread Maxime Devos
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 single argument (the file name). */ + filename = args; + depth =

[PATCH v2] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-09-25 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. * doc/ref/web.texi (URIs): Document it here. (Subtypes

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-09-25 Thread Maxime Devos
Op 25-09-2023 om 18:48 schreef Vivien Kraus: * module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. ---

[PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-09-25 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. --- Dear Guile developers, When you request

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

2023-09-25 Thread Maxim Cournoyer
* NEWS: Update news. * THANKS: Add myself. * doc/guile-api.alist (%load-announce, %load-hook): Add DEPTH argument. * doc/ref/api-evaluation.texi (Loading): Document new DEPTH argument for the primitive-load, primitive-load-path and %load-hook procedures. Update %load-hook example. Document

[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 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 0/4] Add module depth information to %load-verbosely output

2023-09-25 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: . Changes in v4: - Remove with-output-to-port in %load-announce and adjust doc Changes in

[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

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

2023-09-25 Thread Maxime Devos
Op 10-09-2023 om 16:46 schreef Maxim Cournoyer: - (force-output) +(define (%load-announce file depth) + (when %load-verbosely +(with-output-to-port (current-warning-port) + (lambda () +(let* ((pad-count (- 3 (string-length (number->string depth +

[PATCH v4] Add atomic-box-update! function to (ice-9 atomic)

2023-09-20 Thread Andrew Tropin
* module/ice-9/atomic.scm (atomic-box-update!): New variable. --- Oops, v3 was incomplete, sending a new version. Changes since v3: Removed stale proc-args. module/ice-9/atomic.scm | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/module/ice-9/atomic.scm

Re: [PATCH] doc: Extend documentation for (ice-9 match)

2023-09-19 Thread Maxime Devos
nt to the IRC. I got help, but I was also asked to try to > contribute to the docs with examples that would have helped me in the > first place. > > I think even more additions would be useful, but I still do not > understand the pattern matching fully, so they are not a part of

Re: [PATCH 0/7] Allow tests to run in parallel

2023-09-17 Thread Rob Browning
Rob Browning writes: > This series switches Guile to the Automake parallel test harness so > that commands like "make -j4 check" can run tests concurrently: > https://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html. > > Here it cuts the check time in half. > > Right now

Re: [PATCH] Make HTTP header symbols case-insensitive

2023-09-10 Thread Skyler
Hello, I just wanted to add some more context beyond what seemed appropriate to include in a commit message. Also, I don't think I've emailed the Guile list before but I'm not really sure what to do as an introduction. I'm just enjoy using guile, this seems like a problem, and I have a patch

[PATCH] Make HTTP header symbols case-insensitive

2023-09-10 Thread Skyler
The web modules contain logic for operating on headers, including logic to convert Scheme data to header values, validate the values of well-known headers, and automatically add missing headers. When working with headers internally, they are stored as lowercase symbols as is idiomatic for Scheme

[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 4/4] load: Display modules depth in output when using %load-verbosely.

2023-09-10 Thread Maxim Cournoyer
* NEWS: Update news. * THANKS: Add myself. * doc/guile-api.alist (%load-announce, %load-hook): Add DEPTH argument. * doc/ref/api-evaluation.texi (Loading): Document new DEPTH argument for the primitive-load, primitive-load-path and %load-hook procedures. Update %load-hook example. Document

[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 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: . Changes in v3: - Replace PAD-COUNT with DEPTH in VISUAL-DEPTH guard. Changes in v2: -

[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 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: . Changes in v2: - Guard against negative pad count when computing 'visual-depth' Maxim

[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 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 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 4/4] load: Display modules depth in output when using %load-verbosely.

2023-09-10 Thread Maxim Cournoyer
* NEWS: Update news. * THANKS: Add myself. * doc/guile-api.alist (%load-announce, %load-hook): Add DEPTH argument. * doc/ref/api-evaluation.texi (Loading): Document new DEPTH argument for the primitive-load, primitive-load-path and %load-hook procedures. Update %load-hook example. Document

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

2023-09-09 Thread Maxim Cournoyer
* NEWS: Update news. * THANKS: Add myself. * doc/guile-api.alist (%load-announce, %load-hook): Add DEPTH argument. * doc/ref/api-evaluation.texi (Loading): Document new DEPTH argument for the primitive-load, primitive-load-path and %load-hook procedures. Update %load-hook example. Document

[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: . Maxim Cournoyer (4): (ice-9 boot-9): Fix typo. .dir-locals: Set c-basic-offset to 2

[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 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 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 +++

Re: [PATCH] add SRFI-119 / language/wisp to Guile? (new patch, squashed)

2023-09-08 Thread Dr. Arne Babenhauserheide
"Dr. Arne Babenhauserheide" writes: >> OK. I assumed you already emailed ass...@gnu.org the relevant form, >> right? Let us know how it goes. > > If I read it right, the docs > https://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html > say that I need to ask someone to get the papers

[PATCH] doc: Extend documentation for (ice-9 match)

2023-09-06 Thread Tomas Volf
that would have helped me in the first place. I think even more additions would be useful, but I still do not understand the pattern matching fully, so they are not a part of this patch. Examples would be: How and when I should use quasi-patterns? What does `ooo' stand for? Does `box' refer to SRFI-111

Re: [PATCH] getopt-long permits numbers for short options.

2023-09-05 Thread Dale Mellor
On Tue, 2023-09-05 at 08:25 +0200, Janneke Nieuwenhuizen wrote: > Marius Bakke writes: > > > * module/ice-9/getopt-long.scm (short-opt-rx): Add 0-9. > > Hehe, reminds me of > >     > https://lists.gnu.org/archive/html/bug-guile/2018-07/msg9.html > > Also note

Re: [PATCH] getopt-long permits numbers for short options.

2023-09-05 Thread Marius Bakke
Janneke Nieuwenhuizen skriver: > Marius Bakke writes: > >> * module/ice-9/getopt-long.scm (short-opt-rx): Add 0-9. > > Hehe, reminds me of > > https://lists.gnu.org/archive/html/bug-guile/2018-07/msg9.html Hey, time flies... There is now:

Re: [PATCH] getopt-long permits numbers for short options.

2023-09-05 Thread Janneke Nieuwenhuizen
Marius Bakke writes: > * module/ice-9/getopt-long.scm (short-opt-rx): Add 0-9. Hehe, reminds me of https://lists.gnu.org/archive/html/bug-guile/2018-07/msg9.html > diff --git a/module/ice-9/getopt-long.scm b/module/ice-9/getopt-long.scm > index 18b235390..0077183da 100644 > ---

[PATCH] web: Treat 'application/json' and similar as text.

2023-09-05 Thread Marius Bakke
* module/web/response.scm (text-content-type?): Add check for /json and +json. --- module/web/response.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/web/response.scm b/module/web/response.scm index 4ac4d74ca..394aac83c 100644 --- a/module/web/response.scm +++

[PATCH] getopt-long permits numbers for short options.

2023-09-05 Thread Marius Bakke
* module/ice-9/getopt-long.scm (short-opt-rx): Add 0-9. --- module/ice-9/getopt-long.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ice-9/getopt-long.scm b/module/ice-9/getopt-long.scm index 18b235390..0077183da 100644 --- a/module/ice-9/getopt-long.scm +++

<    1   2   3   4   5   6   7   8   9   10   >