IRC channel logs

2020-01-26.log

back to list of logs

<jcowan>I blazon my favorite two logos thus: Argent, in fess dexter the word "Guile" sable, sinister a lower-case lambda gules; and Sable, in fess dexter the word "Guile argent, sinister a Greek lower-case lambda Or.
<mwette>b
<dsmith>sneek strace?
<dsmith>sneek bugs?
<sneek>I've heard bugs is send reports to bug-guile@gnu.org, and see bug reports at http://bugs.gnu.org/guile
<apteryx>Why isn't the source expression matching the pattern here?: (let-syntax ((mtest (syntax-rules () ((_ (n s) ..1) (list n ..1))))) (mtest (1 2) (3 4)))
<apteryx>changing ..1 to ... makes it work, but I thought ..1 was same except it ensured at least one argument were present rather than potentially none
<terpri>apteryx, ..1 is just a regular pattern variable in syntax-rules/syntax-case
***sneek_ is now known as sneek
<apteryx>ah right. I was reading the doc of Pattern Matching (ice-9 match) and somehow thought it applied here.
<apteryx>thank you!
<gnufr33d0m>I can't seem to get rid of this message guile: warning: failed to install locale
<gnufr33d0m>I'm trying to build the haunt example
<gnufr33d0m> https://paste.gnome.org/p3kxdgul5
<gnufr33d0m>how do I set the locale? I'm running PureOS and GUIX package manager
<Blackbeard[m]>gnufr33d0m: hey
<Blackbeard[m]>That's more of a #guix channel question, but give me a second. I'll send you the solution
<Blackbeard[m]>gnufr33d0m: here https://guix.gnu.org/manual/en/guix.html#Application-Setup
<Blackbeard[m]>Make sure to do that from your user after you instal Guix
<lispmacs>hi, I trying to pass a scheme complex number to a function which takes a "_Complex float"
<gnufr33d0m>thanks, I just tried that
<lispmacs>there doesn't seem to be a scm_to_complex_float procedure
<Blackbeard[m]>gnufr33d0m: hope it helps :) but the warning may not go away. Just ignore it
<lispmacs>I could extract the floating point numbers from the complex and then build a _Complex float
<gnufr33d0m>I still can't build the haunt sample it errors out
<Blackbeard[m]>lispmacs: I can't help with that :(
<spk121>gnufr33d0m: what if you try 'LANG=C haunt build'?
<lispmacs>but I can't figure out how to build a _Complex float from a pair of floats
<lispmacs>does anybody know
<gnufr33d0m>yes, that worked?
<spk121>lispmacs: do you mean in Scheme? or in C
<lispmacs>spk121: I'm trying to pass a value to a C function that requires a "_Complex float" value
<lispmacs>but I don't know how to convert from a SCM complex number object to a "_Complex float" value
<spk121>gnufr33d0m: OK. what do you get when you type 'env | grep LANG' from the command line?
<gnufr33d0m>LANG=C.UTF-8
<gnufr33d0m>GDM_LANG=C.UTF-8
<lispmacs>oh wait, I just found a "CMPLXF(x, y)" macro in the complex.h header
<lispmacs>I'll try that
<spk121>lispmacs: that's a macro. If you need a real function for FFI, go with __builtin_complex
<spk121>gnufr33d0m: could you be missing some sort of basic locale information package for guix?
<lispmacs>spk121: okay, I'm not using FFI, but thanks. Embedded guile
<spk121>lispmacs: ok then, CMPLXF is definitely what you need
<lispmacs>ack, keep forgetting those stupid C semicolons
<gnufr33d0m>thanks for the help, any ideas where to look to fix
<spk121>gnufr33d0m: sorry, dunno
<str1ngs>sneek: later tell gnufr33d0m if you are on foreign distro. you also have to install the glibc-locales into root's current-guix profile. like so guix install -p .config/guix/profile glibc-locales . then you need to restart guix-daemon. assuming you are using systemd . sudo systemctl restart guix-daemon .
<sneek>Will do.
<str1ngs>sneek: later tell gnufr33d0m ~root/.config/guix/profile to be more precise
<sneek>Okay.
***dddddd_ is now known as dddddd
<rlb>Anyone know if this supposed to be an error in 3.0 (was "fine" in 2.2):
<rlb> (use-modules (oop goops))
<rlb> (define (foo x) #t)
<rlb> (define-method (foo) #t)
<rlb>
<rlb>In 3.0 we have "#<procedure foo (x)> is not a valid generic function"
<rlb>Hmm, maybe something else is going on -- nevermind for now...
*mwette has made a little progress w/ SElinux
*mwette posted to wrong channel