IRC channel logs

2023-08-31.log

back to list of logs

<haugh>,apropos seems to know
<RhodiumToad>my guess is that ,apropos works by scanning the current module and its interfaces
<RhodiumToad>yeah, it iterates over the list of modules from module-uses (prepending the current module), finds matching names, and then tests whether the visible binding in the current module is the same variable
<haugh>where are you looking? I'm just grepping my way around
<RhodiumToad>ice-9/session.scm
<haugh>tx
<lloda>would be cool to have bigfloat support
<lloda>or even just float128
<apteryx>would someone know how to fix: "./src/utils.h:129:40: error: call of overloaded ‘to_guile(long int&)’ is ambiguous" ?
<apteryx>full build log: https://bordeaux.guix.gnu.org/build/1b4804ec-87df-4a7c-bd37-aab493e3bca7/log
<lloda>add an overload for long int?
<lloda>i remember having to do something like that on apple
<lloda>normally one of the intxx_t should have you covered, but for some reason longs didn't match
<lloda>i had to put that in #ifdef ofc bc if they do match, then you can't repeat it
<lloda>guile has dedicated scm_to_long / scm_to_ulong that you can use
<apteryx>ACTION now realizes this question is purely C++
<apteryx>I thought to_guile must be provided by libguile, but it's homegrown to that project (jami)
<apteryx>old: by you ^^
<mirai>would srfi-64 based tests be welcome within guiles testsuite? (and within the same vein, converting the existing tests into srfi-64 ones?)
<apteryx>I'd hope so :-) dog food and all
<old>apteryx: right I did some C++ template stuff for wrapping Jami API to Guile
<old>Because C++ does not have an ABI like C
<old>did you fix your issue?
<old>I think the problem is that I did some template for `intxx_t` and `uintxx_t` which some are aliases to `long int`
<old>depending on the architecture
<apteryx>I haven't found what to change yet to fix it, no
<old>hmm I think the problem is that I've never added to_guile with reference as input
<old>pack_to_guile(Args ...args) creates a vector of SCM values. That ought to work with for example: x = 1; pack_to_guile(x); but not work with: pack_to_guile(&x);
<old>try the follwing:
<old>static inline SCM to_guile(long int *x) { return to_guile(*x); }
<old>not sure how to handle the reference case tho
<old>if it works, you can make it a template: template<typename T> static inline SCM to_guile(T *x) { return to_guile(*x); }
<rlb>mirai: possibly related (though more on the "driver" level): https://lists.gnu.org/archive/html/guile-devel/2023-08/msg00023.html
<mirai>rlb: nice seeing work done on this direction
<mirai>it does take a while
<wingo>good evening
<dthompson>heyo
<count3rmeasure>does anyone know of any guile code thats invovled in web accessibility? either generating html or auditing pages/code?