00:06 (quit) jrslepak: Quit: Leaving 00:10 (join) samth 00:44 (join) jeapostrophe 00:48 (quit) jeapostrophe: Ping timeout: 252 seconds 00:49 (quit) neilv: Quit: Leaving 00:50 (quit) EmmanuelOga: Ping timeout: 244 seconds 00:59 (join) tewk 00:59 (quit) tewk_: Read error: Connection reset by peer 00:59 (quit) petey: Read error: Connection reset by peer 01:00 (join) petey 01:08 (join) jeapostrophe 01:16 (quit) platinuum: Remote host closed the connection 01:25 (quit) samth: Ping timeout: 244 seconds 01:41 (quit) jeapostrophe: Ping timeout: 240 seconds 02:23 (quit) jonrafkind: Ping timeout: 260 seconds 02:26 (join) dnolen 02:33 (quit) dnolen: Quit: dnolen 02:34 (quit) bluezenix: Quit: Leaving. 02:35 (quit) petey: Read error: Operation timed out 02:35 (join) petey 02:38 (quit) tewk: Ping timeout: 244 seconds 02:39 (quit) petey: Ping timeout: 240 seconds 02:43 (join) petey 02:45 (join) tewk 02:49 (quit) petey: Ping timeout: 248 seconds 02:49 (quit) tewk: Ping timeout: 252 seconds 02:51 (join) tewk 02:52 (join) Shvillr_ 02:53 (quit) Shviller: Disconnected by services 02:53 (nick) Shvillr_ -> Shviller 02:54 (join) petey 03:07 (join) tewk_ 03:07 (quit) petey: Read error: Connection reset by peer 03:07 (quit) tewk: Read error: Connection reset by peer 03:08 (join) petey 03:17 (join) platinuum 03:17 (quit) petey: Ping timeout: 244 seconds 03:18 (quit) tewk_: Ping timeout: 252 seconds 03:19 (join) tewk 03:23 (join) bluezenix 03:23 (join) petey 03:24 (quit) tewk: Ping timeout: 244 seconds 03:26 (join) tewk 03:26 (quit) realitygrill: Quit: realitygrill 03:30 (quit) petey: Ping timeout: 260 seconds 03:31 (quit) tewk: Ping timeout: 260 seconds 03:35 (join) petey 03:39 (join) tewk 03:47 (quit) tewk: Read error: Operation timed out 03:49 (quit) petey: Ping timeout: 248 seconds 03:53 (join) petey 03:56 (join) tewk 04:09 (join) ahinki 04:24 (join) noelw 05:08 (join) masm 05:20 Shvillr: Hello guys. It's me again with my sequence-map multiple values problem. I finally took the time to pay attention to what I'm doing, and uncovered that the problem is only with streams. sequence-map delegates to stream-map, and it uses stream-cons. No prize for guessing how well it works with multiple values. So, I wrote my own function that handles streams just like sequence-map handles sequences,, and then wraps the result in s 05:20 Shvillr: equence->stream. And here is my question: how many different kinds of wrong can you find in it? 05:32 (quit) mithos28: Quit: mithos28 05:50 (join) keenbug 06:00 (join) Lajla 06:10 (quit) platinuum: Remote host closed the connection 06:19 (quit) bluezenix: Quit: Leaving. 06:58 (quit) petey: Ping timeout: 240 seconds 06:58 (quit) tewk: Ping timeout: 244 seconds 06:58 (quit) keenbug: Ping timeout: 258 seconds 07:00 (join) tewk 07:03 (join) petey 07:09 (join) bluezenix 07:10 (join) veer 07:30 (quit) masm: Ping timeout: 276 seconds 07:50 (join) vu3rdd 07:50 (quit) vu3rdd: Changing host 07:50 (join) vu3rdd 07:58 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/CL-niw 07:58 RacketCommitBot: [racket/master] try to get a little more stack for the intermittent module-lang-test failure - Robby Findler 08:15 (quit) tim-brown: Ping timeout: 240 seconds 08:15 (join) tim-brown 08:25 (join) keenbug 08:32 (join) metadave 08:34 (join) mq_ 08:35 (quit) metadave: Quit: Leaving 08:36 (join) EmmanuelOga 08:38 mq_: Hi all, has any body got error when using mysql-connect to connect a remote host? 08:39 (join) metadave 08:49 (quit) ahinki: Read error: Connection reset by peer 08:49 (join) ahinki 09:03 (join) jeapostrophe 09:21 (quit) mq_: Ping timeout: 265 seconds 09:47 (quit) jeapostrophe: Ping timeout: 252 seconds 10:01 (join) masm 10:32 (join) anRch 10:33 (join) realitygrill 10:48 (quit) veer: Quit: Leaving 10:50 (join) jeapostrophe 10:58 (quit) keenbug: Ping timeout: 252 seconds 10:58 (quit) realitygrill: Quit: realitygrill 11:00 (join) tyson2 11:05 (join) wirew0rm 11:07 wirew0rm: hey everyone, does anyone know why drracket locks the whole definitions window when opening a read-only file 11:08 (quit) ahinki: Quit: ChatZilla 0.9.87 [Firefox 9.0/20111109112850] 11:09 stamourv: As opposed to letting you edit but not save? 11:09 wirew0rm: yes 11:10 stamourv: I assume it's to avoid having people edit and only later realize they shouldn't have done it. 11:10 wirew0rm: as opposed to just greying out save, leaving you with save-as 11:11 stamourv: That would work too. I don't know why the current behavior was chosen. 11:12 stamourv: You may want to bring it up on the mailing list, Robby, the author of DrRacket, reads it, but he's not on IRC. 11:14 wirew0rm: ok i was thinking of creating a github issue but if the mailinglist's the preferred way it'l do to 11:15 stamourv: For bugs, bugs.racket-lang.org is the preferred place to go. But this is more of a design question than a bug, so the mailing list is probably best. 11:16 stamourv: And I don't think we use github issues much. We have our own bug tracker that predates it. 11:18 wirew0rm: yes i already assumed that as there is almost no activity 11:18 (join) mithos28 11:39 (join) jrslepak 11:48 (quit) anRch: Quit: anRch 11:51 (join) jonrafkind 11:53 (join) anRch 12:01 (quit) bluezenix: Read error: Connection reset by peer 12:05 (part) tim-brown: "Leaving" 12:06 (join) keenbug 12:07 (quit) vu3rdd: Remote host closed the connection 12:20 (join) MayDaniel 12:20 (quit) MayDaniel: Changing host 12:20 (join) MayDaniel 12:22 (quit) anRch: Quit: anRch 12:33 jonrafkind: I want to local-expand an expression past `letrec-values+syntaxes' but i don't want to pass #f because that goes too far. is there a way to do that? 12:40 jonrafkind: hm maybe i can work around it 12:42 mithos28: you want to expand the body of letrec-values+syntaxes or the argument expressions? 12:42 jonrafkind: the body 12:43 jonrafkind: actually (local-expand #'(some-macro foo)) just returns #'(#%app some-macro foo) wtf.. 12:43 jonrafkind: isn't it supposed to actually invoke the macro? 12:43 mithos28: pass the empty list as the third argument 12:43 jonrafkind: oh crap i didnt provide some-macro 12:43 mithos28: or non-empty I forget 12:44 jonrafkind: yea '() 12:44 jonrafkind: do you know if I should be using 'expression or 'module or whatever? 12:44 mithos28: for local-expand I think you will have to implement your own internal definition context 12:44 jonrafkind: well in this case I actually dont need an internal definition context 12:45 mithos28: depends on your current context / macro, for the correct contetx 12:45 mithos28: 12:45 mithos28: why do you need to expand it then? 12:46 jonrafkind: to force honu parsing 12:46 mithos28: what if the letrec-s+v contains macro definitions? 12:47 jonrafkind: I think I dont actually need let-syntax, #'(force-parse blah ...) works 12:48 (join) bluezenix 12:49 mithos28: ok, good that you found a solution. Racket needs better support for processing internal definition contexts 12:49 jonrafkind: yea that too 12:49 jonrafkind: arg I keep writing (syntax-parse stx () ...) 12:50 mithos28: well isn't it better then having to use syntax-case 12:50 mithos28: even if your hands don't know it yet 12:51 jonrafkind: yea its just annoying to get the 'empty #%app' error 12:52 shofetim: Does anyone have some examples of formlets? http://docs.racket-lang.org/web-server/formlets.html?q=formletts 12:52 shofetim: The docs are nice but some more examples would be handy 12:53 (quit) mithos28: Quit: mithos28 13:01 (quit) tyson2: Quit: Leaving. 13:16 (quit) bluezenix: Quit: Leaving. 13:17 (join) dnolen 13:27 (quit) metadave: Read error: Connection reset by peer 13:27 (join) metadave 13:27 (quit) jrslepak: Quit: This computer has gone to sleep 13:32 (quit) wirew0rm: Remote host closed the connection 13:36 (join) samth 13:40 (join) anRch 13:41 (quit) Lajla: Ping timeout: 244 seconds 14:08 (quit) MayDaniel: Read error: Connection reset by peer 14:09 (quit) tewk: Ping timeout: 240 seconds 14:11 (join) tewk 14:13 (quit) shachaf: *.net *.split 14:13 (quit) bremner: *.net *.split 14:13 (quit) sethalves: *.net *.split 14:13 (join) shachaf 14:13 jonrafkind: hm will (datum->syntax original #'x original) put the #%app from original onto #' x? 14:13 (join) sethalves 14:14 (join) bremner 14:15 (quit) keenbug: Ping timeout: 258 seconds 14:39 (quit) anRch: Quit: anRch 14:50 (join) avarus 14:53 (join) keenbug 14:56 (quit) samth: Ping timeout: 240 seconds 15:13 (join) DanBurton 15:40 (join) samth 15:48 (join) MayDaniel 15:52 shofetim: what does (function . => . symbol) mean? its in web-server/formlets the only thing I see about => is that it can be used the same as else in a cond clause... 15:57 jonrafkind: it means (=> function symbol) 15:57 jonrafkind: when you put . x . its infix syntax 15:58 (join) platinuum 16:14 shofetim: jonrafkind: what does (=> function symbol) mean? I cant find much on => 16:17 jonrafkind: http://docs.racket-lang.org/web-server/formlets.html?q=%3D%3E&q=contract#(form._((lib._web-server/formlets/dyn-syntax..rkt)._~3d~3e*)) 16:17 jonrafkind: I can only find =>* 16:17 jonrafkind: i have no idea what it does 16:19 shofetim: Thanks : ) Neither do I 16:19 shofetim: there is also http://docs.racket-lang.org/reference/if.html?q=%3D%3E&q=%3D%3E&q=contract#(form._((lib._racket/private/letstx-scheme..rkt)._~3d~3e)) 16:19 rudybot: http://tinyurl.com/7ytuduz 16:19 shofetim: But that seems to be something else 16:19 jonrafkind: ask on the mailing list 16:20 shofetim: : ) willdo 16:23 (join) MaxRebo 16:24 MaxRebo: Hi :) Can someone tell me, why DrRacket would tell me that foldl only accepts 3 arguments? (http://codepad.org/F04eXDEH) 16:24 (quit) keenbug: Ping timeout: 258 seconds 16:25 stamourv: MaxRebo: Are you in a student language? 16:26 MaxRebo: stamourv: Yes 16:26 stamourv: IIRC, `foldl' is the student languages is restricted to 3 arguments. 16:26 stamourv: Racket's `foldl' is generalized. 16:26 MaxRebo: hm...damn :/ thanks 16:28 (join) bluezenix 16:35 (quit) MayDaniel: Read error: Connection reset by peer 16:46 (quit) MaxRebo: Quit: leaving 16:47 jonrafkind: shofetim, 0 for 2 so far \o/ 16:48 Shviller: Hello guys. 16:48 Shviller: rudybot: (sequence-length (sequence-filter (thunk* #f) empty-sequence)) 16:48 rudybot: Shviller: your sandbox is ready 16:48 rudybot: Shviller: error: apply: expects type as 2nd argument, given: #f; other arguments were: #:1:34> 16:48 Shviller: Is it supposed to do that? 16:52 (quit) metadave: Read error: Connection reset by peer 16:53 (join) metadave 16:53 (quit) metadave: Client Quit 17:16 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/6w8Jzg 17:16 RacketCommitBot: [racket/master] Fixing an error in quoting found by a student this year - Jay McCarthy 17:18 (quit) DanBurton: Quit: ChatZilla 0.9.87 [Firefox 6.0/20110811165603] 18:00 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/UqM13g 18:00 RacketCommitBot: [racket/master] Fixes define-relation's handling of ellipses across clauses - Robby Findler 18:14 (quit) dnolen: Quit: Page closed 18:23 (quit) bluezenix: Quit: Leaving. 18:25 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/zlahdA 18:25 RacketCommitBot: [racket/master] fix xform problems related to epoll() change - Matthew Flatt 18:46 (quit) avarus: Remote host closed the connection 18:51 (quit) jeapostrophe: Ping timeout: 240 seconds 18:57 (join) Lajla 18:58 (quit) acarrico: Ping timeout: 245 seconds 19:01 masm: I have just updated to Racket 5.2 and I'm getting an error on some use of begin-for-syntax use in a #lang s-exp module. 19:02 masm: I've read the release notes and it mentions some changes in begin-for-syntax. 19:02 jonrafkind: whats the use 19:03 masm: It's just a simple (define-for-syntax (xxx a b) ...). 19:04 jonrafkind: whats the error 19:04 masm: The error I get is "begin-for-syntax: bad syntax in: (begin-for-syntax (define-values ...)) 19:04 jonrafkind: paste code 19:11 masm: Paste is here: http://paste.lisp.org/+2P69 19:11 masm: It fails on the first begin-for-syntax. 19:11 jonrafkind: I forget, what does '#lang s-exp' do? 19:11 jonrafkind: maybe your bootstrap-lang.rkt is not providing the right stuff 19:12 masm: It does. 19:12 masm: It's the default parser for racket language, but not binding. Those come from the bootstrap-lang.rkt 19:13 masm: This was working on the previous versions... 19:13 jonrafkind: I mean if you just take out the (define-for-syntax ...) and put it into a new file with #lang racket it works 19:13 jonrafkind: #lang s-exp racket, works too 19:13 jonrafkind: so I guess the only remaining culprit is "bootstrap.rkt" 19:14 jonrafkind: can you paste bootstrap-lang.rkt? 19:14 masm: Yeah, but then it does not use the bindings from bootstrap. 19:14 jonrafkind: well yes you should use bootstrap-lang.rkt but maybe that file is doing something incorrectly 19:15 masm: It provides racket/base bindings with three or four modifications... 19:16 masm: Namely to define and lambda. 19:16 masm: But the bindings for begin-for-syntax and the phase 1 bindings are from racket/base 19:17 jonrafkind: are you gonna paste it or what 19:18 masm: http://paste.lisp.org/+2P6B 19:20 masm: I'm sorry that it is not that small... the essential is the provide at the bottom. 19:22 masm: Oh! 19:22 masm: I think I know what the problem is... 19:22 jonrafkind: I hacked the files enough to run (commented out all backend stuff) and it didn't have the issue 19:39 masm: Thanks jonrafkind. I figured what the problem was. 19:40 jonrafkind: what was it? 19:40 masm: begin-for-syntax used to macro expanded to define-values-for-syntaxes. 19:40 masm: Not its core syntax. 19:40 masm: *Now 19:40 jonrafkind: oh ok 19:53 (quit) samth: Ping timeout: 240 seconds 19:58 (join) acarrico 20:00 (join) jrslepak 20:11 (join) realitygrill 20:13 (join) Nanakhiel 20:16 (quit) Lajla: Ping timeout: 258 seconds 20:21 (quit) acarrico: Ping timeout: 244 seconds 20:22 (join) SwashBuckla 20:23 SwashBuckla: hey - I am using Racket to interpret this function: (define (negate polynomial) (map (lambda (term) (make-term (* -1 (coef term)) (vars term))) polynomial) 20:23 SwashBuckla: Racket complains with "negate: expected argument of type ; given '((-8 (())) (4 ((x 1))) (3 ((y 1) (x 2))))" 20:23 SwashBuckla: but I don't see what is wrong here 20:23 SwashBuckla: Guile interprets this just fine, as well as Bigloo 20:24 SwashBuckla: why is it expecting me to pass in a procedure? Or any type for that matter? 20:26 jonrafkind: other than leaving off a ) from the end of that define your code should be fine I guess 20:26 asumu: SwashBuckla: Is that quoted expression the polynomial? 20:27 jonrafkind: how are you applying negate? 20:27 asumu: Oh wait, nevermind. 20:27 SwashBuckla: asumu: yea 20:27 SwashBuckla: it's some polynomial I'm trying to negate 20:27 SwashBuckla: crazy representation 20:27 SwashBuckla: I know 20:28 asumu: SwashBuckla: Are you sure that's from your negate? 20:28 SwashBuckla: jonrafkind: like (negate ) 20:28 asumu: And you're not somehow using the built-in negate? 20:28 SwashBuckla: asumu: oh.. maybe 20:28 jonrafkind: oh yea thats probably the issue 20:28 SwashBuckla: I didn't know there was one 20:28 asumu: Yeah, it's in racket/function. 20:29 SwashBuckla: ah it's a name issue then, phew :) 20:31 SwashBuckla: it's annoying that racket silently permits me to redefine negate 20:31 SwashBuckla: but I guess it looks in it's own functions first, before mine? 20:33 (quit) jonrafkind: Ping timeout: 244 seconds 20:36 (join) acarrico 20:41 asumu: SwashBuckla: Racket will let you redefine bindings from the language. 20:41 asumu: But not required modules. 20:41 SwashBuckla: ah ok 20:42 SwashBuckla: asumu: thanks for pointing that out 20:42 (quit) masm: Quit: Leaving. 20:42 (join) jeapostrophe 20:59 (quit) shofetim: Ping timeout: 240 seconds 21:17 (quit) jeapostrophe: Ping timeout: 240 seconds 21:25 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/x3Nknw 21:25 RacketCommitBot: [racket/master] UI fixes and improvements to Check Syntax - Neil Toronto 21:28 (quit) SwashBuckla: Quit: leaving 21:31 (join) jeapostrophe 21:35 (quit) jeapostrophe: Read error: Operation timed out 21:55 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/ym6ppQ 21:55 RacketCommitBot: [racket/master] compile the left-hand sides of define-judgment only once, not during each time we try to check a judgment - Robby Findler 21:59 (join) havvy 22:00 havvy: Hello. I'm new to Racket, but not to lisps. I've used Clojure and seen Sussman's lectures online. What is Racket's equivalent to Clojure's (partial)? 22:04 offby1: havvy: probably curry 22:04 offby1: rudybot: ((curry cons 'a) 'b) 22:04 rudybot: *offby1: your sandbox is ready 22:04 rudybot: *offby1: ; Value: (a . b) 22:05 offby1: rudybot: ((curryr cons 'a) 'b) 22:05 rudybot: *offby1: ; Value: (b . a) 22:05 offby1: mmm ... curry 22:05 (quit) acarrico: Ping timeout: 240 seconds 22:06 havvy: Yep, that'd be it. :) 22:09 offby1: I only discovered "curry" recently, and I love using it -- saves me from having to type "lambda" a lot. 22:10 (quit) Shviller: Ping timeout: 240 seconds 22:10 (quit) eMBee: Ping timeout: 240 seconds 22:11 (join) Shviller 22:14 (join) eMBee 22:15 (quit) jrslepak: Read error: Connection reset by peer 22:16 (join) jrslepak 22:20 (join) acarrico 22:21 havvy: Is there a length property that works on both vectors and lists? 22:21 havvy: **function not property 22:21 offby1: don't think so. 22:22 offby1: the only functions I can think of that take a couple of different datatypes are the "dict" family -- they work on hashes, alists, and perhaps any struct that has some property or other. 22:22 (quit) EmmanuelOga: Ping timeout: 244 seconds 22:23 havvy: So no awesome sequence library like Clojure's. :( 22:58 (join) jonrafkind 23:14 (quit) havvy: Remote host closed the connection 23:17 (join) veer 23:28 (quit) acarrico: Read error: Operation timed out 23:31 (join) samth 23:38 (quit) samth: Ping timeout: 240 seconds 23:43 (join) acarrico 23:51 (quit) acarrico: Read error: Operation timed out 23:53 asumu: FYI: sequence-length works on vectors and lists. 23:53 asumu: I see that havvy is gone now though. Ah well. 23:54 (quit) jrslepak: Quit: Leaving 23:54 (join) mithos28