bug#66135: Unable to download Guile tar file

2023-09-23 Thread Jean Abou Samra
> Le 23 sept. 2023 à 06:38, ahmad khizir a écrit : > >  > Not working for me, i can share the screenshot. Please do.

bug#66057: (ice-9 match) allows invalid usages of ... or ..1

2023-09-18 Thread Jean Abou Samra
Le dimanche 17 septembre 2023 à 20:59 -0400, Maxim Cournoyer a écrit : > It's mentioned in the Guile Reference manual; see info "(guile) Pattern > Matching": > > > > So your example is just binding the string "Printer" to the variable "..1": > > since "..1" doesn't have any special meaning, it's

bug#66057: (ice-9 match) allows invalid usages of ... or ..1

2023-09-17 Thread Jean Abou Samra
Le dimanche 17 septembre 2023 à 14:17 -0400, Maxim Cournoyer a écrit : > Hi, > > After attempting the following: > > --8<---cut here---start->8--- > (match (string-split "./Bootloaders/Printer/Documentation/html" #\/) > (("."

bug#58066: pretty-print will make data modified by set-cdr! to random value

2023-07-19 Thread Jean Abou Samra
Closing this as a duplicate of https://debbugs.gnu.org/cgi/bugreport.cgi?bug=16060 signature.asc Description: This is a digitally signed message part

bug#16060: Attempt to mutate a literal pair results in segfault (master)

2023-07-19 Thread Jean Abou Samra
This is still happening with Guile 3.0, but only at -O2, not at -O1. $ cat x.scm (set-car! '(1 . 2) 3) $ guild3.0 compile -O1 x.scm wrote `/home/jean/.cache/guile/ccache/3.0-LE-8-4.5/home/jean/tmp/x.scm.go' $ guile3.0 x.scm Backtrace: In ice-9/boot-9.scm: 1752:10 6 (with-exception-handler

bug#64508: Optimization of "-" function is incorrect in presence of GOOPS overloading

2023-07-07 Thread Jean Abou Samra
The following code demonstrates that when byte-compiling (but not when interpreting), the call (- x) is transformed into (- 0 x). This results in failure of custom - methods defined via GOOPS. I think this says it all: $ guile3.0 GNU Guile 3.0.7 [...] scheme@(guile-user)> ,optimize (- x) $1 =

bug#62583: Guile 3.0.9 crashes when calling set-car! on the last node of '(...)

2023-04-01 Thread Jean Abou Samra
> Le 1 avr. 2023 à 08:22, Rui Zhang a écrit : > > Reproduction: > >(let ((xs '(1))) > (set-car! xs 0)) > > or > >(let ((xs '(1 2))) > (set-car! (cdr xs) 0)) > > Guile will segfault executing this code, and only when set-car! is called on > the last node. I believe the

bug#61598: guile 3.0.9 missing module ice-9/readline.scm

2023-02-18 Thread Jean Abou Samra
> Le 18 févr. 2023 à 09:25, p...@posteo.net a écrit : > > The Guile 3.0 manual mentions "(use-modules (ice-9 readline))", but the > module appears to be missing from the Guile 3.0.9 source code tarball. I > noticed the issue was brought up for version 3.0.9 RC1, but the bug was > closed.

bug#61599: regarding "guile 3.0.9 missing module ice-9/readline.scm"

2023-02-18 Thread Jean Abou Samra
> Le 18 févr. 2023 à 09:25, p...@posteo.net a écrit : > > Please disregard my previous bug report: "guile 3.0.9 missing module > ice-9/readline.scm". I realized what the problem was afterwards. The module > readline.scm is in a separate location in the source tarball and wasn't > included

bug#60488: string-ref segfaults with n < 0 on Guile 3.0.8

2023-01-02 Thread Jean Abou Samra
> Le 2 janv. 2023 à 09:54, fester...@posteo.net a écrit : > > On 02.01.2023 05:12, fester...@posteo.net wrote: >> The following code results in a segmentation fault on Guile >> 3.0.8-deb+3.0.8-2 (obtained from the Debian repositories): >>(string-ref "my string" -3) >> gdb's backtrace is

bug#59874: Segfault from string-ref with negative 'k'

2022-12-11 Thread Jean Abou Samra
(Closing since this has been fixed.) OpenPGP_signature Description: OpenPGP digital signature

bug#49686: Confusing presence of #f in error message

2022-12-07 Thread Jean Abou Samra
This seems to have been fixed, probably in eb5ecf4944cd646341f7e47dda5396cf96a4b8a3. OpenPGP_signature Description: OpenPGP digital signature

bug#57507: Regular expression matching depends on locale encoding

2022-11-17 Thread Jean Abou Samra
to operate under, with an API similar to that of (ice-9 i18n) and its first-class locale objects. Sorry that it took me forever to send this. From c666ca4f72dc0a00d28b8d7ef1221ebfc9741551 Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Thu, 17 Nov 2022 21:26:07 +0100 Subject: [PATCH] Doc

bug#59221: (file-exists? #f) raises an exception

2022-11-13 Thread Jean Abou Samra
Le 13/11/2022 à 07:44, to...@tuxteam.de a écrit : You both have a point. Checking for existing predicates with a longer tradition, though: scheme@(guile-user)> (exact? "mumble") ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure exact?: Wrong type argument in position

bug#59221: (file-exists? #f) raises an exception

2022-11-12 Thread Jean Abou Samra
> Le 12 nov. 2022 à 18:50, Joshua Branson via Bug reports for GUILE, GNU's > Ubiquitous Extension Language a écrit : > >  > Hello you lovely guile people! > > This bug is so simple the subject line says it all! > > file-exists? is a predicate, but > > #+BEGIN_SRC scheme > (file-exists?

bug#58646: [PATCH] doc: Fix eval-when example

2022-10-19 Thread Jean Abou Samra
From 0e35d0494b7c6f05819e3386d404776a64a2e5c9 Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Wed, 19 Oct 2022 23:01:06 +0200 Subject: [PATCH] doc: Fix eval-when example * doc/ref/api-macros.texi: make the macro expand to the literal   date, not to a call to the date function.  The example

bug#58109: simple-format vs (ice-9 format) bug in 3.0.7?

2022-10-01 Thread Jean Abou Samra
Le 01/10/2022 à 15:40, Ludovic Courtès a écrit : Hi, Jean Abou Samra skribis: Uh, at the end of module/ice-9/format.scm, there is ;; Thanks to Shuji Narazaki (module-set! the-root-module 'format format) which dates back to commit 14469b7c69feb0f2c5b8a093f19fe2a548b31c5b Author: Greg J

bug#58109: simple-format vs (ice-9 format) bug in 3.0.7?

2022-09-27 Thread Jean Abou Samra
Le 27/09/2022 à 12:35, Jean Abou Samra a écrit : Le 27/09/2022 à 12:23, Christopher Lam a écrit : Hi guilers, here's a short bash session. Why would the first bash call to "guile s.scm" work, but not the second one? guile-3.0.7 on ubuntu. This is a duplicat

bug#58109: simple-format vs (ice-9 format) bug in 3.0.7?

2022-09-27 Thread Jean Abou Samra
Le 27/09/2022 à 12:23, Christopher Lam a écrit : Hi guilers, here's a short bash session. Why would the first bash call to "guile s.scm" work, but not the second one? guile-3.0.7 on ubuntu. This is a duplicate of https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50059

bug#58066: pretty-print will make data modified by set-cdr! to random value

2022-09-25 Thread Jean Abou Samra
Le 24/09/2022 à 12:01, slbtty a écrit : GNU Guile 3.0.8 Using `guile3 < file.scm` to run the code below will makes the result of tp unpredictable (pointing to very random things) (use-modules (ice-9 pretty-print)) (define tl '(1 2)) (define tp (cdr tl)) (set-cdr! tp (cons 3 '()))

bug#57507: Regular expression matching depends on locale encoding

2022-09-05 Thread Jean Abou Samra
Le 05/09/2022 à 09:48, Ludovic Courtès a écrit : Hi Jean, Jean Abou Samra skribis: Regular expressions do funky things with Unicode if a non-Unicode-aware locale is set. Yet, they're purely string operations, so I don't think it's expected that they depend on the locale encoding

bug#57507: Regular expression matching depends on locale encoding

2022-08-31 Thread Jean Abou Samra
Regular expressions do funky things with Unicode if a non-Unicode-aware locale is set. Yet, they're purely string operations, so I don't think it's expected that they depend on the locale encoding. $ LC_ALL=C guile3.0 GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc.

bug#50068: [PATCH] In curried definitions, move docstrings to outermost lambdas

2022-08-29 Thread Jean Abou Samra
Le 29/08/2022 à 18:10, lloda a écrit : Applied in 61d8dab8eafd498306ce618582aab37497df77b4. Thank you! Thanks, Iloda!

bug#50068: [PATCH] In curried definitions, move docstrings to outermost lambdas

2022-08-26 Thread Jean Abou Samra
Ping? Could this patch be considered please?

bug#57393: The Guile manuall has no entry for use-typelibs in the Procedures Index

2022-08-24 Thread Jean Abou Samra
Le 25/08/2022 à 00:10, Lee Thomas a écrit : Hi. I am trying to run some examples for guile GUI toolkits, and they have use-typelibs in their code. It is failing for me, so I wanted to learn more about the procedure - but the Procedures Index has no entry for it. I would expect there would be

bug#57123: compile discards multiple values

2022-08-10 Thread Jean Abou Samra
Example: scheme@(guile-user)> (eval '(values 1 2) (current-module)) $1 = 1 $2 = 2 scheme@(guile-user)> (use-modules (system base compile)) scheme@(guile-user)> (compile '(values 1 2) #:env (current-module)) $3 = 1 scheme@(guile-user)> Tested with Guile 3.0.7. A workaround can be found at

bug#57119: Warning level 0 still yields warnings

2022-08-10 Thread Jean Abou Samra
For example: $ cat cased.scm (case 5   ((5 5) 5)) $ guild3.0 compile -W0 cased.scm cased.scm:2:3: warning: duplicate datum 5 in clause ((5 5) 5) of case expression (case 5 ((5 5) 5)) wrote `/[...]/cased.scm.go' The documentation says that passing -W0 suppresses all warnings. The above shows

bug#56675: UTF16 encoding adds BOM before every single character

2022-07-20 Thread Jean Abou Samra
With this code: (let ((p (open-output-file "x.txt")))   (set-port-encoding! p "UTF16")   (display "ABC" p)   (close-port p)) the sequence of bytes in the output file x.txt is ['FF', 'FE', '41', '0', 'FF', 'FE', '42', '0', 'FF', 'FE', '43', '0'] As you can see, a BOM is being added before

bug#56493: Source locations are broken when byte-compiling

2022-07-11 Thread Jean Abou Samra
In Guile 3.0.8, compilation warnings when byte-compiling print . $ ./libguile/guile test.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;;   or pass the --no-auto-compile argument to disable. ;;; compiling /.../test.scm ;;; : warning: possibly unbound variable

bug#50068: [PATCH] In curried definitions, move docstrings to outermost lambda

2022-03-28 Thread Jean Abou Samra
Hi, Please consider the following patch, fixing bug #50068. Best regards, Jean From 79552d2974e9cbcfcf01960aab68cb6824c88972 Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Tue, 29 Mar 2022 00:14:45 +0200 Subject: [PATCH] In curried definitions, move docstrings to outermost lambda

bug#52230: 'guild compile' and C(++) extensions (in the context of LilyPond)

2022-02-21 Thread Jean Abou Samra
Le 19/02/2022 à 22:25, Olivier Dion a écrit : On Sat, 19 Feb 2022, Jean Abou Samra wrote: I had similar problem with Jami. I added C++ primitives to Guile, but these were not load using the foreign function interface. Note, I'm using Guile 3.0.8, but I think the same could be done

bug#52230: 'guild compile' and C(++) extensions (in the context of LilyPond)

2022-02-19 Thread Jean Abou Samra
Hi, (Cross-posted to guile-user, guile-devel and the debbugs issue, I'm unsure where this should go.) In LilyPond, we have now made a development release with binaries using Guile 2.2. However, a major problem is that we don't ship Guile bytecode yet. Notably, one problem to get the bytecode in

bug#52230: Variable not visible to compiler causes compilation failure when importing module

2021-12-01 Thread Jean Abou Samra
In experiments with using guild for byte compilation in LilyPond, I am hitting what seems like a bug. When a variable is not defined declaratively in a way that makes the compiler aware of it, the module it is defined in can compile, but modules using it cannot. Here is an example. fail.scm

bug#52112: Compilation of macro returning record type fails

2021-11-26 Thread Jean Abou Samra
Thanks for your reply. Le 26/11/2021 à 19:54, Taylan Kammer a écrit : I don't think that's supposed to work. I find it surprising that record-type objects are self-evaluating, and in any case they can't be turned into bytecode. Your macro could return code that evaluates to a record

bug#52112: Compilation of macro returning record type fails

2021-11-25 Thread Jean Abou Samra
Record types are self-evaluating: scheme@(guile-user)> (eval (make-record-type 'my-record '()) (current-module)) $1 = # Yet, when a macro returns a record type, Guile fails to byte-compile the code, even though the execution (via the evaluator) works fine. Here is a simple example:

bug#50068: Curried definitions lose docstrings

2021-08-15 Thread Jean Abou Samra
When a docstring is used in the body of a curried definition, it ends up on the result of the application of the resulting curried function, not on the function itself. Example: (use-modules (ice-9 curried-definitions)) (define ((curried a) b)   "Docstring of curried"   'whatever)

bug#50060: The REPL does not honor --no-auto-compile

2021-08-14 Thread Jean Abou Samra
Even when guile is run with --no-auto-compile, the REPL still seems to be compiling the source. $ guile --no-auto-compile GNU Guile 3.0.5.130-5a1e7 [Legalese…] scheme@(guile-user)> unbound-variable ;;; :1:0: warning: possibly unbound variable `unbound-variable' [Backtrace…] This "possibly

bug#50059: (ice-9 format) undesirably loaded when compiling

2021-08-14 Thread Jean Abou Samra
ested once will no longer work the next time (thus possibly escaping an automated testing system). This is with Guile 3.0.5.130-5a1e7. Thanks for your attention, Jean Abou Samra

bug#49686: Confusing presence of #f in error message

2021-08-14 Thread Jean Abou Samra
Note that this does not happens with Guile 2.2

bug#49686: Confusing presence of #f in error message

2021-07-21 Thread Jean Abou Samra
message does not look expected. This is Guile 3.0.5.130-5a1e7. Best regards, Jean Abou Samra

bug#49111: (ice-9 session) is undocumented

2021-06-19 Thread Jean Abou Samra
Hello, As the title says: the functions found in (ice-9 session) are not described anywhere in the Guile documentation, except in the Changelog. Some of them are very useful, like procedure-arguments. Thanks, Jean Abou Samra