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
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)
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
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
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
as documented in [1],
n'est-ce pas?
What would guix best-practice guidance say about that?
[1] info guile ffi
--
Regards,
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
->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
"=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
(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
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
11 matches
Mail list logo