IRC channel logs

2014-10-08.log

back to list of logs

***mario-go` is now known as mario-goulart
<taylanub>I can't believe that Kastrup is seriously arguing that a UTF-8 API should be allowed to produce invalid UTF-8 by default. (context: emacs-devel) just wanted to say this somewhere, though I don't intend to join the "discussion" on the ML...
***_zxq9_ is now known as zxq9
<cluck>taylanub: i've read that and suspect it's just a miscomunication problem (fwiw s.j.t. seems to be clearing it up)
<cluck>taylanub: i may be wrong but as i understand it he may be afraid guile will just stop accepting invalid/non-conformant input
<cluck>taylanub: i suspect the python example and rms's proposed solution (of conforming by default but allow explicit override and non-conformance by request) will end the discussion
<nalaginrut>morning guilers~
<nalaginrut>yesterday I rm what I've worked for a whole day with an accident, today I have to config my emacs to leave backups...so bloody...
<davexunit>commit stuff more frequently!
<nalaginrut>well...it's so hurt...a whole new module
***Sgeo is now known as NSSgeo
<adhoc>nalaginrut: today you get to design it better, with the benifit of hindsight
<adhoc>=)
<nalaginrut>yes, I'm rewriting it with better mind
<civodul>Hello Guilers!
<nalaginrut>it's terrible to use `match' in a function full of side-effect
<nalaginrut>nothing to do with `match' , just because the bindings don't change according to side-effect
<nalaginrut>maybe I should post to blog...
<davexunit>is sneek written in guile?
<ft>Wasn't it some C++ bot?
<davexunit>:(
<ft>There was a keyword...
<ft>!code
<ft>I can't remember.
<richi235>!help
<richi235>jep, this gives some info
<davexunit>!help
<nalaginrut>since we have guile-irc, it could be pure Scheme
<davexunit>oh I had forgotten about guile-irc
<nalaginrut>and I wrote one for my community ;-)
<nalaginrut>and we have guile-dbi, so~
<davexunit>I might be able to convince the FSF sysadmin to write a bot in guile
<davexunit>for #fsf
<nalaginrut>yeah~
<davexunit>nalaginrut: have you used guile-irc?
<davexunit>I don't want to recommend it if it doesn't work well
<nalaginrut>yes I use guile-irc, it's cool
<nalaginrut>and support https, with gnutls
<davexunit>cool
<nalaginrut>it's easy to use, here's mine naive version https://github.com/szdiy/eliug
<nalaginrut>I don't update it frequently, since I realized people just love message function
<nalaginrut>leaving message is most important function in IRC, IMO ;-)
<mark_weaver>davexunit: sneek is a Guile program that uses a C++ irc bot library, iirc.
<mark_weaver>sneek: version
<sneek>Sneeky bot running on Guile version 2.0.11 using bobot++ 2.3.0-darcs
<mark_weaver>I agree that pure scheme would be better
<davexunit>ah I see.
<davexunit>thanks mark_weaver
<janneke>i'm looking for an assoc-ref that finds VALUE and return KEY
*janneke was sure to read about that somewhere...
<janneke>now wrote
<janneke>(define (assoc-xref alist value)
<janneke> (define (cdr-equal? x) (equal? (cdr x) value))
<janneke> (and=> (find cdr-equal? alist) car))
<janneke>
<janneke>what am i missing?
<mark_weaver>janneke: I'm not sure we have anything like that, but as you've noticed, it's trivial to write.
<ahills>mark_weaver: is it possible to trick guile's configure into building against a static libgc?
<mark_weaver>ahills: you could try setting BDW_GC_LIBS and BDW_GC_CFLAGS environment variables before running ./configure
<mark_weaver>however, that's traditionally been used to deal with a lack of a bdwgc.pc (pkg-config) file. If pkg-config succeeds to find bdwgc, it might still add what it finds in addition to the values of the BDW_GC_* environment variables.
<ahills>well, pkg-config will probably not find it
<ahills>I've copied it from another system where I built it against libc
<ahills>mark_weaver: there's no way to get a --with-bdwgc-prefix option easily?
<mark_weaver>bdwgc creates a .pc file, so we rely on that.
<mark_weaver>we don't support a separate --with-bdwgc-prefix option, sorry.
<mark_weaver>can you try setting those environment variables?
<ahills>yeah, but I'm not sure exactly what to set them *to*...
<mark_weaver>BDW_GC_CFLAGS="-I/foo/include" BDW_GC_LIBS="-L/foo/lib -lgc"
<mark_weaver>where /foo is the prefix used to install libgc
<ahills>ok, thanks
<mark_weaver>np!
<_zacts_>mark_weaver: hey are you around by chance?
<_zacts_>if not I'll try to catch you tomorrow
<_zacts_>I have these procedure definitions from my Scheme book ready.
<_zacts_>this time I'll add them to my blog and back them up with git so I'll remember them
<_zacts_> http://nopaste.info/114fed3e55_nl.html
<_zacts_>^ I need a non-standard (reset) procedure
<_zacts_>it exits any procedures it is currently in, and then it returns you to the REPL
<_zacts_>CHICKEN scheme implements the reset procedure exactly as my book has it, but I don't think guile2 does it
<_zacts_>also, I need a (writeln 'apple 'orange 'kiwi) => apple orange kiwi <- it prints apple orange kiwi separated by a single space on a single line, and then a newline at the end of it
<_zacts_>and that is all I need help with for now
<_zacts_>mark_weaver: I may have to leave soon, but I'll check the channel logs.
<_zacts_>mark_weaver: http://api.call-cc.org/doc/library/reset
<_zacts_>^ I found this, perhaps guile has a reset-handler also