<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. <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. <gnufr33d0m>I can't seem to get rid of this message guile: warning: failed to install locale <gnufr33d0m>how do I set the locale? I'm running PureOS and GUIX package manager <Blackbeard[m]>That's more of a #guix channel question, but give me a second. I'll send you the solution <lispmacs>hi, I trying to pass a scheme complex number to a function which takes a "_Complex float" <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 <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 <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? <lispmacs>oh wait, I just found a "CMPLXF(x, y)" macro in the complex.h header <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 <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 . <str1ngs>sneek: later tell gnufr33d0m ~root/.config/guix/profile to be more precise ***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>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