00:07 (nick) ChaozZBubi -> chaozzbubi 00:09 (part) eli: "*sigh*" 00:09 (join) eli 00:16 (quit) yoklov: Quit: bye! 00:17 neilv: is the users list being moderated, or on a much slower server than before? 00:18 neilv: or maybe just lots of addressee timeouts are slowing it down lately 00:44 (nick) abbe -> abbe|luncheon 00:44 (nick) abbe|luncheon -> abbe 01:01 (quit) veer: Read error: Connection reset by peer 01:24 (quit) realitygrill: Quit: realitygrill 01:25 (quit) karswell: Read error: Connection reset by peer 01:26 (join) realitygrill 01:31 (quit) jeapostrophe: Ping timeout: 240 seconds 01:50 (join) Daminvar 01:51 (quit) jonrafkind: Read error: Operation timed out 01:55 (quit) realitygrill: Quit: realitygrill 02:08 (quit) Daminvar: Quit: leaving 02:09 (join) Daminvar 02:56 (join) jeapostrophe 03:27 (quit) jeapostrophe: Ping timeout: 252 seconds 03:34 (quit) SHODAN: Remote host closed the connection 03:38 (quit) neilv: Quit: Leaving 03:48 (quit) Shviller: Ping timeout: 252 seconds 03:49 (join) Shviller 04:22 (join) ahinki 04:24 (join) SHODAN 04:34 (join) veer 04:47 (join) Blkt 05:15 (join) sindoc 05:22 (join) tim-brown 05:22 tim-brown: Happy New Year, one and all! 06:21 (join) MayDaniel 06:22 (quit) MayDaniel: Changing host 06:22 (join) MayDaniel 06:22 (quit) MayDaniel: Read error: Connection reset by peer 06:29 Blkt: tim-brown: :D 06:47 tim-brown: has anyone any opinions on using ? vs. the word lambda in racket code 07:09 bremner: did you mean λ ? 07:09 (join) masm 07:10 bremner: if so, I think you just argued in favour the word lambda 07:29 (join) snearch 07:55 tim-brown: or argued in favour of a standard character set over and above ascii! 07:55 tim-brown: bremner: good point 07:57 bremner: well, we have utf8, but I guess it isn't universal yet. 08:19 (join) kanak 08:20 (join) metadave 08:25 (part) metadave: "Leaving" 08:41 (quit) snearch: Quit: Verlassend 09:06 tim-brown: bremner: either you or I ain't using UTF-8 (and I'm not sure which :-) ) 09:06 bremner points at tim-brown 09:06 bremner: or some tool is breaking between us. 09:09 tim-brown: so, i can't be sure I can use it to invoke, say rudybot expressions 09:10 tim-brown: also, when opening the discussion, i needed to cut and paste the character in from an external app (vim) 09:11 tim-brown: and remember, when you point a finger at tim-brown, you're pointing three fingers back at yourself :-) 09:13 tim-brown: (i've just spent a week with a three year old, so i've got to get back into behaving like an adult) 09:52 (quit) veer: Ping timeout: 276 seconds 10:08 (join) jeapostrophe 10:10 (join) veer 10:25 (join) shadgregory 10:26 (quit) rsimoes: Quit: Leaving. 10:27 (join) rsimoes 10:46 (quit) veer: Quit: Leaving 10:50 (quit) ahinki: Quit: ChatZilla 0.9.88 [Firefox 10.0/20111228055358] 11:01 (nick) chaozzbubi -> ChaozZBubi 11:04 (join) karswell 11:05 (join) freakazoid 11:11 (quit) freakazoid: Quit: Computer has gone to sleep. 11:13 (quit) jeapostrophe: Ping timeout: 248 seconds 11:34 (quit) Daminvar: Quit: leaving 11:47 (join) anRch 11:51 (quit) anRch: Read error: Connection reset by peer 11:52 (join) anRch 12:04 (quit) anRch: Quit: anRch 12:11 (join) anRch 12:20 (join) jeapostrophe 12:33 (join) jonrafkind 12:38 (join) MayDaniel 12:39 (quit) anRch: Quit: anRch 12:41 (join) Qworkescence 12:49 (join) kudkudyak 12:52 (quit) MayDaniel: Read error: Connection reset by peer 13:01 (quit) rsimoes: Quit: Leaving. 13:01 (quit) masm: Ping timeout: 240 seconds 13:02 (join) rsimoes 13:06 (join) freakazoid 13:16 (quit) kudkudyak: Read error: Connection reset by peer 13:17 (join) kudkudyak 13:40 (quit) kudkudyak: Ping timeout: 252 seconds 13:44 (quit) Blkt: Read error: Connection reset by peer 13:49 (join) metadave 13:55 (join) anRch 13:59 (part) metadave: "Leaving" 14:00 (join) realitygrill 14:04 (quit) SeanTAllen: Remote host closed the connection 14:07 (join) kmc 14:12 kmc: in #lang racket, is there a standard library function to get n numbers evenly spaced between x and y? 14:16 jonrafkind: (for/list ([i n]) (+ x (* i (/ (- y x) n))))) maybe? 14:17 jonrafkind: [i (add1 n)] actually 14:19 chandler: why not (for/list ([i (in-range x y (/ (- y x) n))]) i) ? 14:25 (quit) realitygrill: Quit: realitygrill 14:31 (join) masm 14:33 (quit) anRch: Quit: anRch 14:37 (join) Oxryly 14:42 kmc: thanks 14:50 kmc: say i have a property (a boolean-valued function), and I'd like to check that it's true for a bunch of random inputs (numbers, in my case). is there any existing library for this? 14:50 kmc: it looks like rackunit and test-engine both want fixed test cases 14:51 jonrafkind: (map positive? '(1 -4 2 9 -5)) 14:51 jonrafkind: rudybot, (map positive? '(1 -4 2 9 -5)) 14:51 rudybot: jonrafkind: your sandbox is ready 14:51 rudybot: jonrafkind: ; Value: (#t #f #t #t #f) 14:51 kmc: i'm looking for something more like Haskell's QuickCheck, if any of you are familiar with it 14:51 jonrafkind: i thought you can write test cases that just return #t 14:52 jonrafkind: I think someone wrote a quickcheck thing for racket.. 14:53 (part) sindoc 14:55 (join) SeanTAllen 15:15 (quit) freakazoid: Quit: Computer has gone to sleep. 15:17 (join) freakazoid 15:29 kmc: is there any kind of style checker or static checker i should run over some racket code before i commit? 15:30 jonrafkind: btw heres that quickcheck thing: http://planet.racket-lang.org/display.ss?package=fasttest.plt&owner=cce 15:30 jonrafkind: although ive never used it 15:30 jonrafkind: here is a very simple static checker: http://planet.racket-lang.org/display.ss?package=no-brainer.plt&owner=clements 15:30 rudybot: http://tinyurl.com/72nbau5 15:44 (join) snearch 15:46 kmc: thanks 16:03 (quit) freakazoid: Ping timeout: 244 seconds 16:23 danking: rudybot: eval (let ((y 4)) (printf "y: ~a\n" y) (define y 2) y) 16:24 rudybot: danking: your sandbox is ready 16:24 rudybot: danking: ; Value: 2 16:24 rudybot: danking: ; stdout: "y: #\n" 16:24 danking: So. I understand that define is causing weirdness, but this was not at all what I expected to happen. 16:24 danking: Thoughts? 16:27 (join) gc329915 17:05 (join) freakazoid 17:06 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/mVObYw 17:06 RacketCommitBot: [racket/master] Fixing PR12443 - Jay McCarthy 17:06 RacketCommitBot: [racket/master] Improve formlet docs a little - Jay McCarthy 17:06 RacketCommitBot: [racket/master] Adding radio and checkbox groups to formlets - Jay McCarthy 17:13 (quit) kanak: Ping timeout: 252 seconds 17:16 (quit) karswell: Ping timeout: 252 seconds 17:23 (join) kanak 17:45 (join) realitygrill 17:56 (quit) snearch: Quit: Verlassend 18:00 (quit) realitygrill: Quit: realitygrill 18:12 (quit) gc329915: Quit: Leaving. 18:14 (quit) jeapostrophe: Ping timeout: 252 seconds 18:46 (join) Demosthenes 18:54 (join) jeapostrophe 19:03 (quit) jeapostrophe: Ping timeout: 248 seconds 19:51 (quit) jonrafkind: Ping timeout: 276 seconds 19:59 (nick) ChaozZBubi -> chaozzbubi 20:13 (join) RackN00b 20:14 RackN00b: Hello Racket-gurus! I was wondering if someone could offer some insight as to why this isn't working... I'll pastbin 20:15 RackN00b: http://pastebin.com/199uAZpr 20:16 RackN00b: The other two tests work but the test for checking the error fails... I guess I'm not comparing the error properly... any ideas? 20:26 offby1: yeah -- when you call "error", that doesn't simply return a value the way your lambda does. 20:26 offby1: Instead it "raises" an "exception" 20:26 offby1: (picture me wiggling my fingers in air quotes) 20:26 offby1: rudybot: eval (+ 1 2 3) 20:26 rudybot: *offby1: your sandbox is ready 20:26 rudybot: *offby1: ; Value: 6 20:26 offby1: rudybot: eval (+ 1 2 (error "What's this?") 3) 20:26 rudybot: *offby1: error: What's this? 20:26 RackN00b: Is there a way to test that I'm getting the correct error message? 20:27 RackN00b: I know that in the student language there's check-error, but I can't seem to figure it out for the full language 20:27 offby1: yes, although I suspect how you do it depends on which language you're using 20:27 offby1: ha 20:27 RackN00b: #lang racket 20:27 offby1: oh! 20:27 offby1: then it's reasonably easy 20:27 offby1: rudybot: eval (with-handlers ([exn?(lambda (e) 0)]) (+ 1 2 (error "What's this?") 3)) 20:27 rudybot: *offby1: ; Value: 0 20:28 offby1: RackN00b: firstly, you probably want to use the nice "rackunit" module for writing your tests. 20:28 offby1: rudybot: (check-equal? 2 (+ 1 1)) 20:28 rudybot: *offby1: error: reference to an identifier before its definition: check-equal? in module: 'program 20:28 offby1: heh 20:28 offby1: rudybot: (require rackunit) 20:28 rudybot: *offby1: Done. 20:28 offby1: rudybot: (check-equal? 2 (+ 1 1)) 20:28 rudybot: *offby1: Done. 20:28 offby1: rudybot: (check-equal? 2 (+ 1 1 1)) 20:28 rudybot: *offby1: ; stderr: "--------------------\nFAILURE\nname: check-equal?\nlocation: (# 1 0 1 26)\nexpression: (check-equal? 2 (+ 1 1 1))\nactual: 2\nexpected: 3\n\nCheck failure\n\n--------------------\n" 20:28 offby1: that basically does what you're already doing. 20:28 offby1: but it also handles errors nicely: 20:28 RackN00b: whoa.... brain just blew up.. I'm like three lines behind! 20:29 offby1: rudybot: (check-exception (thunk (error "This is an expected error"))) 20:29 rudybot: *offby1: error: reference to an identifier before its definition: check-exception in module: 'program 20:29 offby1: *sigh* 20:29 offby1: rudybot: (check-exn (thunk (error "This is an expected error"))) 20:29 rudybot: *offby1: error: #:1:0: check-exn: bad syntax in: (check-exn (thunk (error "This is an expected error"))) 20:29 offby1: rudybot: (check-exn exn? (thunk (error "This is an expected error"))) 20:29 rudybot: *offby1: Done. 20:29 offby1: *whew* 20:29 offby1: rudybot: (check-exn exn:fail? (thunk (error "This is an expected error"))) 20:29 rudybot: *offby1: Done. 20:29 offby1: rudybot: (check-exn exn:fail:contract? (thunk (error "This is an expected error"))) 20:29 rudybot: *offby1: ; stderr: "--------------------\nFAILURE\nmessage: \"Wrong exception raised\"\nexn-message:\"This is an expected error\"\nexn: #(struct:exn:fail \"This is an expected error\" #)\nname: check-exn\nlocation: (# 1 0 1 74)\nexpression: (check-exn exn:fail:contract? (thunk (error \"This is an expected error\")))\nparams: (# #