00:02 (quit) noelw: Ping timeout: 258 seconds 00:07 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/y5wf0w 00:07 RacketCommitBot: [racket/master] Fixed x/y mixup in 'axes' - Neil Toronto 00:13 (quit) karswell: Remote host closed the connection 00:15 (join) karswell 01:27 (quit) wishbone4: Remote host closed the connection 01:54 (quit) jonrafkind: Ping timeout: 260 seconds 02:21 (quit) realitygrill: Quit: realitygrill 03:01 (quit) dnolen: Quit: dnolen 03:14 (quit) karswell: Remote host closed the connection 03:15 (join) karswell 03:53 (quit) karswell: Remote host closed the connection 03:53 (join) karswell 04:16 (quit) karswell: Remote host closed the connection 04:16 (join) karswell 04:27 (quit) cipher: Ping timeout: 255 seconds 04:28 (join) cipher 04:28 (nick) cipher -> Guest87623 04:32 (quit) mithos28: Quit: mithos28 04:57 (join) MayDaniel 05:35 (join) masm 05:55 (quit) karswell: Remote host closed the connection 05:56 (join) karswell 06:17 (join) mceier 08:29 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/YHcjVw 08:29 RacketCommitBot: [racket/master] Synch German string constants with latest. - Mike Sperber 08:45 Gertm: what's the best way to do interthread communication? 08:56 (join) The 09:00 (quit) niarch: Ping timeout: 260 seconds 09:21 (join) Lajla 09:57 (quit) The: Ping timeout: 248 seconds 10:34 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/IorlIQ 10:34 RacketCommitBot: [racket/master] reader doc fixes - Matthew Flatt 10:34 RacketCommitBot: [racket/master] add cross-ref from reference to guide on places - Matthew Flatt 10:34 RacketCommitBot: [racket/master] fix docs on reading characters - Matthew Flatt 10:35 (join) The 10:58 (join) mithos28 11:39 (quit) The: Ping timeout: 248 seconds 11:42 (join) dnolen 11:50 (join) realitygrill 12:17 (nick) samth_away -> samth 12:19 samth: Gertm: channels and sync 12:19 samth: rudybot: doc channel-put 12:19 rudybot: samth: your racket/init sandbox is ready 12:19 rudybot: samth: http://docs.racket-lang.org/reference/channel.html#(def._((lib._racket%2Fprivate%2Fmisc..rkt)._channel-put)) 12:19 samth: rudybot: doc sync 12:19 rudybot: samth: http://docs.racket-lang.org/reference/sync.html#(def._((quote._~23~25kernel)._sync)) 12:27 (quit) dnolen: Quit: dnolen 12:35 (quit) snorble: Remote host closed the connection 12:37 (join) snorble 12:39 (join) jao 13:15 Gertm: samth: thanks 13:47 (join) dnolen 14:04 (quit) karswell: Excess Flood 14:05 (join) karswell 14:28 (join) anRch 14:45 (join) blkt 14:47 (quit) anRch: Ping timeout: 252 seconds 14:48 (join) anRch 14:49 (quit) haruki_zaemon: Ping timeout: 252 seconds 14:49 (join) haruki_zaemon 15:00 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/_3Jv8g 15:00 RacketCommitBot: [racket/master] fix the error check - Robby Findler 15:12 (quit) jao: Ping timeout: 248 seconds 15:12 (quit) anRch: Quit: anRch 15:19 (quit) francisl_: Quit: francisl_ 15:28 (join) jonrafkind 16:01 (quit) blkt: Quit: cya tomorrow! 16:12 (quit) MayDaniel: Read error: Connection reset by peer 16:13 (quit) xharkonnen: Quit: Leaving 16:15 (nick) Guest87623 -> cipher 16:15 (quit) cipher: Changing host 16:15 (join) cipher 16:23 rapacity: is there a concise way of expressing "for (x = 1; x < n; x = x * 2) { body ... }" in racket? 16:24 mithos28: rudybot: eval (for* ((i 3) (x (in-value (* i 2)))) (displayln x)) 16:24 rudybot: mithos28: your sandbox is ready 16:24 rudybot: mithos28: ; stdout: "0\n2\n4\n" 16:25 mithos28: rudybot: eval (for*/list ((i (in-range 1 3)) (x (in-value (* i 2)))) x) 16:25 rudybot: mithos28: ; Value: (2 4) 16:25 rapacity: the condition is x < n 16:26 mithos28: oh, I misread it 16:27 mithos28: how about a generator which generates 1,2,4,8,… and a when clause 16:28 mithos28: (define gen (generator (lambda () (let loop ((x 1)) (yield x) (loop (* 2 x)))))) 16:28 mithos28: rudybot: eval (define gen (generator (lambda () (let loop ((x 1)) (yield x) (loop (* 2 x)))))) 16:28 rudybot: mithos28: error: reference to an identifier before its definition: generator in module: 'program 16:28 rapacity: naa, it's fine, I was hoping for a built-in concise way :p 16:29 rapacity: I already coded a simple for-loop macro that mimics C's for loop 16:30 cipher: rapacity: how about for/fold? 16:30 rapacity: how would that work? 16:31 mithos28: rudybot: eval (for*/list ((i 3) (x (in-value (expt 2 i)))) x) 16:31 rudybot: mithos28: ; Value: (1 2 4) 16:32 mithos28: rudybot: eval (for*/list ((i in-naturals) (x (in-value (* i 2))) #:when (< x 100)) x) 16:32 rudybot: mithos28: error: for: expected a sequence for i, got something else: # 16:33 mithos28: rudybot: eval (for*/list ((i (in-naturals)) (x (in-value (* i 2))) #:when (< x 100)) x) 16:33 rapacity: it won't terminate 16:33 rudybot: mithos28: error: with-limit: out of time 16:33 rapacity: since you have (in-naturals) at the top and that will keep outputting the next natural :p 16:34 mithos28: even with the when? 16:34 rapacity: when just acts like a filter 16:34 mithos28: right 16:35 mithos28: rudybot: eval (for*/list ((i (in-range (sqrt 101))) (x (in-value (* i 2)))) x) 16:35 rudybot: mithos28: ; Value: (0 2 4 6 8 10 12 14 16 18 20) 16:36 mithos28: rudybot: eval (for*/list ((i (in-range (/ (log 101) (log 2))) (x (in-value (expt 2 i)))) x) 16:36 rudybot: mithos28: error: eval:1:0: read: expected a `)' to close `(' 16:36 mithos28: rudybot: eval (for*/list ((i (in-range (/ (log 101) (log 2)))) (x (in-value (expt 2 i)))) x) 16:36 rudybot: mithos28: ; Value: (1 2 4 8 16 32 64) 16:37 mithos28: but that is different because the loop index is different 16:39 offby1: rudybot: (sort (for*/list ([a (in-range 1 7)][b (in-range 1 7)]) (cons (+ a b) (format "~a, ~a" a b))) < #:key car) 16:39 rudybot: *offby1: what if A and B contains the same x with different y? 16:39 offby1: rudybot: eval (sort (for*/list ([a (in-range 1 7)][b (in-range 1 7)]) (cons (+ a b) (format "~a, ~a" a b))) < #:key car) 16:39 rudybot: *offby1: your sandbox is ready 16:39 rudybot: *offby1: ; Value: ((2 . "1, 1") (3 . "1, 2") (3 . "2, 1") (4 . "1, 3") (4 . "2, 2") (4 . "3, 1") (5 . "1, 4") (5 . "2, 3") (5 . "3, 2") (5 . "4, 1") (6 . "1, 5") (6 . "2, 4") (6 . "3, 3") (6 . "4, 2") (6 . "5, 1") (7 . "1, 6") (7 . "2, 5") (7 . "3, 4") (7 . "4, 3") (7 . "5, 2") (7 . "6, 1") (8 . "2, 6") (8 . "3, 5") (8 . "4, 4") (8 . "5, 3") (8 . "6, 2") (9 . "3, 6") (9 . "4, 5") (9 . "5, 4") (9 . "6, 3") (10 . "4, 6") (1 16:39 offby1: rudybot: moar, plz 16:39 rudybot: *offby1: I find it a litle disturbing that fsbot responds to "moar" 16:40 offby1: rudybot: oh, and you don't? 16:40 rudybot: *offby1: and then it produces something like a lambda: (lambda () (+ 3 )), which is your current continuation, and it hands that lambda to the thing you call/cc'd (so in this case, 'k' is '(lambda () (+ 3 ))' 16:40 (quit) dnolen: Quit: dnolen 16:41 mithos28: does rudybot just read the channel for its sayings or do you have to tell it in particular to remember something? 16:44 offby1: it's a mixture. The more interesting quips come from reading the channel :) 16:57 (join) dnolen 16:58 (quit) dnolen: Client Quit 17:08 (quit) haruki_zaemon: Ping timeout: 240 seconds 17:08 (join) haruki_zaemon 17:14 (quit) haruki_zaemon: Quit: Zzzzz 17:26 (join) jao 18:02 (quit) masm: Quit: Leaving. 18:15 offby1: is there a built-in that does more or less (lambda (seq) (ormap values seq))? 18:15 offby1: it'd probably be named "some", I guess 18:15 mithos28: so taking the first true value from a sequence? 18:16 mithos28: rudybot: eval (for/first ((v (list #f 2))) v) 18:16 rudybot: mithos28: ; Value: #f 18:17 offby1: yeah, that'd probably work too 18:17 mithos28: rudybot: eval (for/first ((v (list #f 2))) #:when v v) 18:17 rudybot: mithos28: error: eval:1:29: #%datum: keyword used as an expression in: #:when 18:17 mithos28: rudybot: eval (for/first ((v (list #f 2)) #:when v) v) 18:17 rudybot: mithos28: ; Value: 2 18:17 offby1: (not (empty?(filter values ...))) 18:17 offby1: etc etc 18:18 mithos28: that only works on lists 18:18 offby1: that's OK 18:20 mithos28: oh and you want something shorter than (lambda (seq) (ormap values seq))? I thought you wanted that on sequences by the seq argument. 18:21 mithos28: i don't know of anything like that 18:22 mithos28: on a side note, there is now identity in addition to values, which is restricted to one value 18:24 rapacity: (curry ormap values) is shorter 18:25 samth: (ormap values _) if you install https://github.com/samth/fancy-app 18:50 (quit) rsimoes: Read error: Connection reset by peer 18:56 (join) The 19:01 (quit) mceier: Quit: leaving 19:14 (join) dnolen 19:26 (nick) samth -> samth_away 19:26 rapacity: I have a function, when I benchmarked it in the same module, it timed at ~1.4s when I imported it into another module and timed it, it timed at ~2s 19:27 rapacity: is this normal?, is there a way to avoid this slowdown? 19:27 jonrafkind: maybe it was inlined in the first module 19:43 (join) arto 19:43 arto: hello... 19:43 arto: anybody there? 19:43 mithos28: yep 19:43 mithos28: If you have a question just ask 19:44 arto: thanks, i've got a problem with drRacket. maybe you can help me. 19:44 mithos28: just ask 19:44 mithos28: no need to ask if you can ask 19:45 rapacity: thanks 19:46 arto: i just installed Gnome 3, and now every time i open Dr.racket the buttons "run", "macros", etc. are missing 19:47 mithos28: what version of DrRacket are you running? 19:47 arto: i mean, they're there, but they are invisible 19:47 arto: let me check 19:47 mithos28: it should say in the interactions window 19:48 (quit) The: Ping timeout: 248 seconds 19:49 arto: damn i just can't find it, since all buttons are missing in the interactions window 19:49 mithos28: try control-t 19:50 mithos28: that is the key binding by default 19:50 mithos28: to run the module and bring up the interactions window 19:50 arto: it does nothing :( 19:51 arto: at least in the readme file it says it's version 5.1.3 19:51 mithos28: ok that is the latest 19:51 mithos28: but there is a release coming soon 19:52 mithos28: I have no idea why you are getting this, it doesn't sound like any bugs people have brought up on the mailing list 19:53 mithos28: I would submit a bug report, Normally you can do this through DrRacket but in your case you can go to bugs.racket-lang.org 19:53 mithos28: http://bugs.racket-lang.org 19:53 mithos28: And describe your system as well, since that will be important in your case 19:54 arto: ok, i'll do that 19:54 arto: just one more question 19:56 arto: is it better to install Racket in "unix standard" mode, or just in a folder? 19:57 mithos28: I run OS X, but I believe on linux the installations I have used have just been a folder 19:57 mithos28: what linux are you running? 19:57 arto: what distribution? Ubuntu 19:58 mithos28: sorry yes. There is a ppa for racket. 19:58 mithos28: https://launchpad.net/~plt/+archive/racket 19:59 mithos28: I assume from your second question you were using the shell installer, if you are worried about miss installing it, the ppa should automate that. 20:00 arto: ok, i'll check it out 20:00 ozzloy: is there a gnu info version of "how to design programs"? 20:00 arto: thank you very much 20:00 jonrafkind: wait.. someone actualy uses gnu info? 20:00 ozzloy: heh 20:01 ozzloy: i've started using emacs, so i've started trying other stuff too, like info 20:01 jonrafkind: emacs is a gateway drug 20:01 ozzloy: that's almost exactly what i was typing out 20:01 mithos28: why not use the embedded browser in emacs to look at the html version 20:01 (quit) arto: Quit: Page closed 20:01 jonrafkind: if you ever start experimenting with solaris seek out professional help 20:01 ozzloy: actually it was lisp that led me to emacs 20:01 ozzloy: so lisp was the gateway 20:02 ozzloy: every tutorial assumed the reader was using emacs 20:03 ozzloy: so ... i'll take that as a "no". which leads me to my next question: is www.htdp.org the latest version of this? it references drscheme, so i thought maybe there's a more recent version 20:04 mithos28: there is htdp2e but that is not finished 20:04 mithos28: http://www.ccs.neu.edu/home/matthias/HtDP2e/ 20:04 ozzloy: ic 20:05 mithos28: I think the website is supposed to match the printed book, so that is why it hasn't changed 20:07 ozzloy: can i just s/drscheme/drracket/ in my head as i read or are there more significant changes? 20:08 mithos28: That should be all that is required 20:08 ozzloy: good enough assurance for me to invest some time 20:09 ozzloy: i'll let you know if i find something 20:09 mithos28: People are always willing to help if you have questions, and they are usually around 20:10 ozzloy: rad 20:10 ozzloy: jonrafkind, are you actually jon rafkind? 20:10 jonrafkind: yea 20:10 jonrafkind: am i famous? 20:10 ozzloy: neat. i have heard of you on the internets 20:11 jonrafkind: oh yea, in what context 20:11 jonrafkind: i didnt start that church fire! 20:11 ozzloy: heh 20:11 ozzloy: um... programming something context. i don't remember exactly 20:11 ozzloy: i do remmember the name jon rafkind 20:14 (join) realitygrill_ 20:16 (quit) realitygrill: Ping timeout: 248 seconds 20:16 (nick) realitygrill_ -> realitygrill 20:58 (join) civil 20:58 civil: I got a question regarding 2htdp images 20:58 civil: anyone here? 21:00 (quit) civil: Client Quit 21:51 mithos28: Any one around that uses OS X? 21:55 zerokarmaleft: mithos28: yea 21:56 zerokarmaleft: i'm on 10.7.2 21:56 mithos28: https://github.com/shekari/racket-webkit 21:56 mithos28: I just made of proof of concept putting webkit in racket 21:56 mithos28: and wanted to see if it worked for people other than me 21:57 zerokarmaleft: sure, i can check it out after eating my delicious meatball sub 21:57 mithos28: thanks 22:11 zerokarmaleft: mithos28: everything works as advertised 22:11 mithos28: awesome thanks 22:12 mithos28: I want to make something that will complement check-syntax by auto looking up the documentation 22:12 rapacity: have you seen https://bitbucket.org/chust/racket-webkit/wiki/Home ? 22:13 mithos28: rapacity: No I hadn't 22:13 mithos28: thanks 22:20 (quit) jao: Ping timeout: 252 seconds