> Le 23 sept. 2023 à 06:38, ahmad khizir a écrit :
>
>
> Not working for me, i can share the screenshot.
Please do.
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
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" #\/)
> (("."
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
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
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 =
> 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
> 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.
> 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
> 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
(Closing since this has been fixed.)
OpenPGP_signature
Description: OpenPGP digital signature
This seems to have been fixed, probably in
eb5ecf4944cd646341f7e47dda5396cf96a4b8a3.
OpenPGP_signature
Description: OpenPGP digital signature
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
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
> 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?
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
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
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
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
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 '()))
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
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.
Le 29/08/2022 à 18:10, lloda a écrit :
Applied in 61d8dab8eafd498306ce618582aab37497df77b4. Thank you!
Thanks, Iloda!
Ping? Could this patch be considered please?
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
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
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
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
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
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
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
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
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
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
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:
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)
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
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
Note that this does not happens with Guile 2.2
message does not look
expected. This is Guile 3.0.5.130-5a1e7.
Best regards,
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
41 matches
Mail list logo