bug#20645: sxml xpath exports "filter"

2016-02-09 Thread Thompson, David
On Mon, Feb 8, 2016 at 11:03 PM, Matt Wette wrote: > This is a very annoying "bug". The (sxml xpath) “filter” procedure overrides > the builtin guile “filter”. > > I believe the fix can be implemented with the following changes to (sxml > xpath): > 1) (define node-filter filter) > 2) In the #:e

bug#24955: defining a record type does not also define a GOOPS class in Guile 2.1

2016-11-16 Thread Thompson, David
Hello, It used to be, in Guile 2.0, that defining a record type would also, in an unhygienic manner, define the GOOPS class <> for use with generic methods. However, in Guile 2.1, this does not happen. Example: (use-modules (srfi srfi-9) (oop goops)) (define-record-ty

bug#30020: floating point unboxing regression in 2.2.3

2018-01-07 Thread Thompson, David
Hello, Guile 2.2.3 seems to have lost some of the abilities that Guile 2.2.2 had wrt unboxing floats. Here's a simple procedure to show the problem. It simply adds the first two elements of an f32vector: (define (add-two-floats bv) (+ (f32vector-ref bv 0) (f32vector-ref bv 1))) Here's

bug#30020: floating point unboxing regression in 2.2.3

2018-05-02 Thread Thompson, David
Hello, On Sun, Jan 7, 2018 at 10:16 PM, Thompson, David wrote: > Guile 2.2.3 seems to have lost some of the abilities that Guile 2.2.2 > had wrt unboxing floats. Ping. This regression is a bummer. :( - Dave

bug#30020: floating point unboxing regression in 2.2.3

2018-05-28 Thread Thompson, David
Hi Mark, On Mon, May 28, 2018 at 2:21 AM, Mark H Weaver wrote: > Hi David, > > Sorry for the long delay. No worries! > I did the moral equivalent of a git bisect, and found the culprit: > > commit d4883307ca64a7028b9a6cd072974437306c19d3 > Author: Andy Wingo > Date: Thu Nov 30 10:41:45

bug#36691: GOOPS: accessor breaks inherited slots with getters

2019-07-16 Thread Thompson, David
Hi, When a subclass inherits a slot with a getter, but a previously defined class creates an accessor with the same name, the inherited getter is seemingly ignored and an error is thrown when attempting to use the getter on an instance of the subclass. It's hard to explain in a clear way, so here

bug#36601: Patch series for guile-2.9.2 on mingw-w64

2019-07-25 Thread Thompson, David
Hi Hannes, On Thu, Jul 11, 2019 at 12:33 PM Hannes Müller wrote: > > Hi, > I propose the following patch series for current guile 3 development. > With these patches applied, on i686 and x86_64 I got until > > CCLD guile.exe > GEN guile-procedures.texi > Backtrace: >0 (pr

bug#46175: Redefinable classes clobber custom slot options

2021-01-29 Thread Thompson, David
The compute-slots method for does a transformation of #:allocation #:instance slots to #:allocation #:virtual slots, but in doing so it discards all slot options besides the standard ones. This means that a metaclass that inherits from won't work as expected if it relies upon custom slot options.

bug#58297: GOOPS slot accessor specialization and inheritance do not compose

2022-10-04 Thread Thompson, David
In Guile, slot accessor specialization and inheritance do not compose. For example, you can't specialize an accessor's setter for a parent class and have it apply to a child class. Every child class defines new slot accessor methods. which means that the specialized parent methods will not be call

bug#63279: Segfault when printing a call-with-values stack frame in backtrace

2023-05-04 Thread Thompson, David
Hello there, Guile seems to segfault when trying to print certain backtraces with a 'call-with-values' stack frame. Here's a minimal reproducer program: (symbol? (call-with-values (lambda () (error 'oh-no)) list)) If you eval this at the REPL and enter ,bt in the debugger, Guile should segfault

bug#63279: Segfault when printing a call-with-values stack frame in backtrace

2023-05-08 Thread Thompson, David
Andy fixed this in commit 6efc0b8159f0fc74c0eafec988fe5434fb4d9f51. Thank you, Andy! Closing. - Dave

bug#67797: non-free license listed in module/ice-9/psyntax.scm

2023-12-12 Thread Thompson, David
Hey Maxim, On Tue, Dec 12, 2023 at 10:53 AM Maxim Cournoyer wrote: > > Hello, > > In our syntax-case implementation, module/ice-9/psyntax.scm, the > following license text can be found: > > --8<---cut here---start->8--- > ;;; Portable implementation of syntax-c

bug#20272: Support reproducible builds

2024-04-08 Thread Thompson, David
On Fri, Nov 17, 2023 at 3:29 PM Bernhard M. Wiedemann wrote: > > Parallel builds with guile-3.0.9 still introduce non-determinism I recently learned that the cross-module inlining optimization pass is a source of nondeterminism. If module A imports module B, inlining of procedures from B into A m

bug#73984: Compiler/interpreter doesn't handle the macro defined after it's used

2024-10-24 Thread Thompson, David
Hi Artyom, On Thu, Oct 24, 2024 at 8:47 AM Artyom Bologov wrote: > > Hello y'all, > > So I'm working on a project with a moderate amount of macros and some > tangled code paths. Which often means I have non-linear and > hard-to-figure-out inter-dependencies between pieces of code. One of > them b

bug#73334: [critical bug] The set! doesn't work in indirect reference

2024-09-18 Thread Thompson, David
On Wed, Sep 18, 2024 at 10:38 AM Nala Ginrut wrote: > > The result is: > ;;; (before #f) > ;;; (after #f) > > The expected result should be: > ;; (before #f) > ;; (after 123) I don't think this is a bug. Both modules are declarative (the default). 'global' from module (aaa) is presumably being in

bug#75216: Miscompilation of code with numeric predicates

2024-12-30 Thread Thompson, David
Consider this contrived procedure: (define (foo x) (cond ((integer? x) 42) ((and (number? x) (inexact? x)) 69) (else 138))) This procedure is kind of silly but it resembles some real world code I was debugging today. A call of (foo 8.2) should return 69 and indeed it does so on Guile

bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Thompson, David
Attached is a patch that adds a new (web json) module. Some may remember that I submitted a patch back in 2015 (time flies, eh?) for an (ice-9 json) module that never made it in. Well, 10 years is a long time and Guile still doesn't have a built-in JSON module. Third party libraries like guile-json

bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Thompson, David
On Sat, Apr 12, 2025 at 12:01 PM Tomas Volf <~@wolfsden.cz> wrote: > > > - null is the symbol 'null > > Out of curiosity, what are your thoughts about using #nil instead? My original patch from 10 years ago did this. Mark Weaver then explained to me that #nil was added specifically for the purpose

bug#77762: [PATCH] web: Add JSON module.

2025-04-14 Thread Thompson, David
Hi Maxim, Thanks for the review! On Mon, Apr 14, 2025 at 2:31 AM Maxim Cournoyer wrote: > > > +@example > > +@verbatim > > +{ > > + "name": "Eva Luator", > > + "age": 24, > > + "schemer": true, > > + "hobbies": [ > > +"hacking", > > +"cycling", > > +"surfing" > > + ] > > +} > >

bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Thompson, David
Hi Arun, On Sat, Apr 12, 2025 at 9:39 PM Arun Isaac wrote: > > Thanks for the patch. I'm just trying to understand: Why do we need a > JSON module in guile itself? Isn't guile-json, the way it is as an > external library, good enough? I mean, Guile doesn't *need* to include anything, but JSON is