bug#51276: Problems with format and scaling floats

2021-10-19 Thread Bengt Richter
Guile since 1999. > > Anyway, that’s more than anyone cares to know Here’s a patch with > tests! :) > 1999 until now (2021), /and/ reliably reproduced all that time! :) -- Regards, Bengt Richter

bug#40744: guile-2.2.4 (integer-length 0) erroneously returns 0, not 1

2021-07-24 Thread Bengt Richter
play with the scheme program included in [1] (after you inspect it -- no warranties :). -- Regards, Bengt Richter PS. Shouldn't euclidean-quotient always produce an exact integer? (Inexactness if any can be carried by the remainder)

bug#49452: Confusing behavior with (include) used in file in GUILE_LOAD_PATH

2021-07-07 Thread Bengt Richter
gt; * When some part of the documentation is not clear and does not make > sense to you even after re-reading the section, it is a bug. > > I believe this is a bug, but I may be wrong, so emailing to clarify. > Thank you! > > Vijay Marupudi > PhD Student in Human Centered-Computing > Georgia Institute of Technology > > > > -- Regards, Bengt Richter

bug#48150: breaking gmp

2021-05-02 Thread Bengt Richter
process 22900] will be killed. Quit anyway? (y or n) y --8<---cut here-------end--->8--- No time to pursue it further, but it was there in another terminal window, so I thought I'd copy-paste it as another data point. -- Regards, Bengt Richter

bug#44186: Recursive mkdir

2020-10-24 Thread Bengt Richter
Hi divoplade, On +2020-10-24 08:17:47 +0200, divoplade wrote: > Hello, > > Le samedi 24 octobre 2020 à 01:32 +0200, Bengt Richter a écrit : > > An alternate solution could be programmed using ffi, as documented in > > [1], n'est-ce pas? > To be clear, you would rather hav

bug#44186: Recursive mkdir

2020-10-23 Thread Bengt Richter
as documented in [1], n'est-ce pas? What would guix best-practice guidance say about that? [1] info guile ffi -- Regards, Bengt Richter

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-28 Thread Bengt Richter
Hi Maxim, Ricardo, On +2020-06-28 00:25:28 -0400, Maxim Cournoyer wrote: > Hello Bengt, > > Bengt Richter writes: > > > [...] > > > What do you think of using (ice-9 match) to make a universal > > throwage-formatter, > > with the idea of making rea

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-25 Thread Bengt Richter
->8--- (main-defaults sets up missing args and calls main with fixed args plus opt rest) I'm wondering if some of the obscure error messages I've encountered might be secondary, and could be clarified by wrapping the primary exception formatting similarly, (adding apropriate hint). WDYT? And is (ice-9 match) too massive to use for memory-limited platforms? BTW, does guile have a Content-type X-...-like standard for naming throw keys?, e.g. 'X-longjump-result-delivery if someone should want to use throw for non-"standard (?? :)" purposes? -- Regards, Bengt Richter

bug#42012: Reference Manual and Docstring on number->string

2020-06-23 Thread Bengt Richter
"=35036 "|}"=37038 "\x7f\x80"=40041 "\x80\x7f"=#f "聾"=39 I'll leave it to others to explore further :) Note, though, that the inverse -- number->string -- will not accept a radix outide of 2-36: scheme@(guile-user) [10]> (number->string (+ (* 34 36) 35) 36) $18 = "yz" scheme@(guile-user) [10]> (number->string (+ (* 34 36) 35) 40) ERROR: In procedure number->string: Value out of range 2 to 36: 40 Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [11]> (number->string (+ (* 34 36) 35) 37) ERROR: In procedure number->string: Value out of range 2 to 36: 37 --8<---cut here---end--->8--- -- Regards, Bengt Richter

bug#41956: [PATCH] ice-9: exceptions: Properly format the error message.

2020-06-20 Thread Bengt Richter
(make-exception-with-irritants margs))) >(_ (make-exception-with-irritants args))) > args)) > --8<---cut here---end--->8--- > > To the same effect. > > Maxim > > > HTH -- Regards, Bengt Richter

bug#40855: integer-length 0 should be 1

2020-04-25 Thread Bengt Richter
uot; "") coeffs) (format #t " ~s~a\n" coeffv (if verbose " -- corresponding coefficient values" "")) (format #t "~a ~s\n" (if verbose " Number as polynomial expression:\n" "") terms) (format #t " ~s~a\n" termv (if verbose " -- corresponding term values" "")) (format #t " ~s~a\n" polyv (if verbose " -- sum of term values" "")) (if verbose (if (and (= radix 2) (string=? sgnstr "")) (format #t " The following should be equal to guile's (integer-length ~s):\n" absnum) (format #t " Tip: for guile integer-length, enter unsigned value with output radix 2\n"))) (format #t " ~s integer-digit~a (radix ~a)\n" ncoeff (if (> ncoeff 1) "s" "") radix)) ))) --8<---cut here---end--->8--- -- Regards, Bengt Richter