00:17 (join) jonrafkind 00:55 (quit) veer: Read error: Connection reset by peer 01:05 (quit) kudkudyak: Ping timeout: 245 seconds 01:26 (quit) jao: Ping timeout: 240 seconds 01:36 (quit) jonrafkind: Ping timeout: 240 seconds 01:44 (quit) freakazoid: Quit: Computer has gone to sleep. 02:03 (quit) EmmanuelOga: Ping timeout: 244 seconds 02:51 (quit) realitygrill: Quit: realitygrill 02:51 (join) realitygrill 02:55 (quit) mithos28: Quit: mithos28 03:40 (join) Shvillr_ 03:40 (quit) Shviller: Disconnected by services 03:40 (nick) Shvillr_ -> Shviller 04:24 (quit) realitygrill: Read error: Connection reset by peer 04:24 (join) realitygrill 04:47 (quit) realitygrill: Read error: Connection reset by peer 04:47 (join) realitygrill 05:06 (join) karswell 05:21 (join) veer 05:25 (quit) realitygrill: Read error: Connection reset by peer 05:25 (join) realitygrill 05:31 (quit) karswell: Ping timeout: 240 seconds 05:33 (join) karswell 05:38 (join) MayDaniel 05:44 (quit) realitygrill: Read error: Connection reset by peer 05:44 (join) realitygrill 05:49 (quit) realitygrill: Read error: Connection reset by peer 05:49 (join) realitygrill 05:50 (nick) Phallib- -> GalactorTheAlmig 05:51 (nick) GalactorTheAlmig -> TurboIslaam 06:04 (quit) karswell: Ping timeout: 240 seconds 06:15 (join) masm 06:17 (quit) realitygrill: Read error: Connection reset by peer 06:17 (join) realitygrill 06:23 (quit) realitygrill: Read error: Connection reset by peer 06:23 (join) realitygrill 06:32 (join) karswell 06:39 (quit) masm: Quit: Leaving. 06:44 (join) masm 06:56 (quit) realitygrill: Read error: Connection reset by peer 06:57 (join) realitygrill 07:34 (join) Fulax 07:58 (join) jao 08:09 (join) SeanTAllen 08:11 (quit) realitygrill: Read error: Connection reset by peer 08:11 (join) realitygrill 08:17 (quit) realitygrill: Read error: Connection reset by peer 08:17 (join) realitygrill 08:28 (quit) karswell: Ping timeout: 245 seconds 08:34 (quit) realitygrill: Read error: Connection reset by peer 08:35 (join) realitygrill 08:47 (quit) realitygrill: Read error: Connection reset by peer 08:47 (join) realitygrill 09:04 (join) karswell 09:15 (join) superjudge 09:27 (join) yoklov1 09:29 (nick) chaozzbubi -> ChaozZBubi 09:38 (quit) eMBee: Remote host closed the connection 09:38 (join) eMBee 09:39 (quit) veer: Quit: Leaving 09:39 (quit) realitygrill: Read error: Connection reset by peer 09:40 (join) realitygrill 09:51 (quit) realitygrill: Read error: Connection reset by peer 09:52 (join) realitygrill 10:00 (quit) realitygrill: Read error: Connection reset by peer 10:01 (join) realitygrill 10:09 (quit) SeanTAllen: Quit: SeanTAllen 10:18 (quit) realitygrill: Read error: Connection reset by peer 10:18 (join) realitygrill 10:48 (quit) realitygrill: Read error: Connection reset by peer 10:49 (join) realitygrill 10:55 (quit) realitygrill: Read error: Connection reset by peer 10:56 (join) realitygrill 11:22 (quit) yoklov1: Quit: Leaving. 11:37 (join) freakazoid 11:47 (join) rsimoes 11:51 (join) EmmanuelOga 11:58 (join) yoklov1 12:02 (nick) samth_away -> samth 12:08 (join) zdod 12:10 zdod: macro newbie question: after requiring racket/syntax, I still can't use with-syntax* in syntax-case. Help? 12:11 samth: zdod: you probably need to do (require (for-syntax racket/syntax)) 12:11 samth: assuming that your use of `syntax-case' is in a macro transformer 12:11 samth: ie, on the right-hand-side of a define-syntax 12:13 zdod: Thanks, it worked! 12:13 zdod: (...maybe) 12:15 samth: zdod: great 12:30 (join) stamourv` 12:30 (quit) stamourv`: Remote host closed the connection 12:43 (quit) yoklov1: Quit: Leaving. 12:44 (quit) karswell: Read error: Operation timed out 12:45 zdod: Next newbie question: is there an equivalent of let-values for with-syntax (or with-syntax*)? 12:55 (quit) zdod: Quit: leaving 13:00 (join) realitygrill_ 13:01 (join) mithos28 13:03 (join) SeanTAllen 13:05 (quit) realitygrill: Ping timeout: 276 seconds 13:05 (nick) realitygrill_ -> realitygrill 13:05 (quit) loz`: Remote host closed the connection 13:05 (join) loz` 13:22 (quit) realitygrill: Read error: Connection reset by peer 13:22 (join) realitygrill 13:24 (quit) realitygrill: Read error: Connection reset by peer 13:24 (join) realitygrill_ 13:32 (quit) superjudge: Quit: Leaving. 13:46 (join) jrslepak 14:04 (quit) masm: Quit: Leaving. 14:25 (join) dsantiago 14:26 (quit) realitygrill_: Read error: Connection reset by peer 14:26 (join) realitygrill 14:45 (quit) freakazoid: Quit: Computer has gone to sleep. 14:49 (quit) EmmanuelOga: Quit: WeeChat 0.3.7-dev 15:14 (join) mithos28_ 15:17 (quit) mithos28: Ping timeout: 240 seconds 15:17 (nick) mithos28_ -> mithos28 15:40 (join) WarWeasle 15:40 WarWeasle: Hello, are there any examples of getting joystick events from a window? 15:40 (join) dyoo 15:43 (quit) WarWeasle: Remote host closed the connection 15:44 dyoo: Warweasle, i have an example of handling a keyboard event, but not a joystick event yet. http://stackoverflow.com/questions/8402218/how-to-make-a-gui-using-lisp-drscheme-or-common-lisp/8468211#8468211 15:44 rudybot: http://tinyurl.com/cndt3wo 16:01 (quit) dyoo: Quit: dyoo 16:13 (join) yoklov1 16:40 (join) masm 16:42 (join) malkomalko 16:51 (quit) malkomalko: Remote host closed the connection 17:12 (quit) masm: Quit: Leaving. 17:14 rsimoes: Is it possible to define macros with typed racket? 17:15 mithos28: rsimoes: Yes 17:15 rsimoes: Do any limitations get introduced? 17:15 mithos28: rsimoes: There are a few tricks though. Have you tried and are running into problems? 17:16 mithos28: depends on if you want the macro to work in an untyped context and a typed context 17:18 rsimoes: Okay; I'm still messing around; mind if I ping you later when I have some less open-ended questions? 17:19 mithos28: I should be on for another hour or two 17:19 rsimoes: groovy 17:49 (quit) MayDaniel: Read error: Connection reset by peer 17:52 (join) anRch 17:56 (join) dyoo 18:23 (join) sindoc 18:44 (quit) dyoo: Ping timeout: 258 seconds 18:55 (quit) anRch: Quit: anRch 19:24 (join) sindoc1 19:24 (quit) sindoc: Read error: Connection reset by peer 19:30 (join) freakazoid 19:36 (quit) sindoc1: Ping timeout: 240 seconds 19:50 (nick) samth -> samth_away 20:31 (join) EmmanuelOga 21:38 (quit) freakazoid: Quit: Computer has gone to sleep. 21:52 (join) freakazoid 22:11 (nick) elliottcable -> xxx 22:12 (nick) xxx -> elliottcable 22:13 (join) jonrafkind 22:28 (nick) ChaozZBubi -> chaozzbubi 22:30 tauntaun: eli, your blog on syntax-case (4 Apr 2011) is nice, but I'm finding it hard to decipher your explanation of 'it' bindings, which I presume is intended to demonstrate of hygiene-breaking. 22:31 tauntaun: Could you add an example of unhygienic usage of 'it'? 22:31 tauntaun: (Actually two examples would be better.) 22:31 tauntaun: Or maybe write them here on IRC? 22:32 tauntaun: (...I meant unhygienic binding of 'it' when using 'while'.) 22:44 asumu: tauntaun: (let ([x 5] [it (lambda (x) x)]) (while (> x 0) (begin (it 5) (set! x (- x 1))))) 22:44 asumu: You expect the application of "it" here to work, but while magically rebinds them and you get an error. 22:45 asumu: Is that the kind of example you wanted? 22:59 tauntaun: asumu, yes, but I'd like to understand in detail how it breaks. Let's assume that while is implemented as follows: 22:59 tauntaun: (define-syntax (while stx) 22:59 tauntaun: (syntax-case stx () 22:59 tauntaun: [(_ test body ...) 22:59 tauntaun: (with-syntax ([it (datum->syntax stx 'it)]) 22:59 tauntaun: #'(let loop () 22:59 tauntaun: (let ([it test]) 22:59 tauntaun: (when it 22:59 tauntaun: body ... 22:59 tauntaun: (loop)))))])) 23:05 tauntaun: Does the outer binding of 'it' to (lambda (x) x) get clobbered during the 'while'? 23:05 tauntaun: (clobbered -> shadowed) 23:09 asumu: tauntaun: It gets clobbered in the let expression. 23:09 asumu: (that the while macro expands to) 23:10 tauntaun: Is there any recommended reading on how to break hygiene to perform variable capture? 23:10 tauntaun: asumu, ^ 23:11 (quit) freakazoid: Quit: Computer has gone to sleep. 23:14 asumu: tauntaun: Do you mean that you specifically want to break hygiene? Or are you trying to understand the variable capture problem? 23:15 tauntaun: asumu: I want to break hygiene in order to capture variables. 23:15 asumu: I don't know of any good reading for that off the top of my head, mainly because Racketeers/Schemers tend to avoid doing that. 23:16 tauntaun: asumu: Yes, I know it's not idiomatic in Racket, but I had hoped that it could nevertheless be done, with syntax-case. 23:22 tauntaun: Btw, asumu, is there a typo in that blog, in the code listing just before "Note that since 'it' is a pattern variable..."? 23:24 tauntaun: FWIW, here's a simple macro that does seem to capture the variable x, then squares it: 23:24 tauntaun: (define-syntax (sqr-x stx) 23:24 tauntaun: (syntax-case (datum->syntax stx 'x) () 23:24 tauntaun: [id #'(* id id)])) 23:26 (join) karswell 23:30 (quit) em: Ping timeout: 240 seconds 23:42 asumu: tauntaun: Why do you think there's a typo? 23:42 asumu: (I mean, there might be one, I just don't know where you're referring to) 23:43 tauntaun: The pattern of the syntax case is 'id', whereas its template uses 'it'. 23:43 tauntaun: asumu, ^ 23:45 asumu: tauntaun: I don't see an id... 23:46 tauntaun: asumu: It's the code listing right *before* the line of text I quoted. 23:46 asumu: This one? 23:47 asumu: (define-syntax (while stx) 23:47 asumu: (syntax-case stx () 23:47 asumu: [(_ test body ...) 23:47 asumu: (syntax-case (datum->syntax stx 'it) () 23:47 asumu: [it (syntax (let loop () 23:47 asumu: (let ([it test]) 23:47 asumu: (when it 23:47 asumu: body ... 23:47 asumu: (sorry for the paste spam) 23:48 asumu: You're looking at http://blog.racket-lang.org/2011/04/writing-syntax-case-macros.html right? 23:48 asumu: I did a ctrl+f for "id" but couldn't find it. I may be overlooking something obvious though. 23:49 tauntaun: asumu: please disregard. I was viewing a copy of the blog that I saved to disk; must be an old one, before the typo was fixed. In any case, thanks for verifying the correction. 23:52 (quit) EmmanuelOga: Ping timeout: 244 seconds 23:58 (join) freakazoid