00:25 (join) jonrafkind 00:37 (join) nilyaK1 00:39 (quit) nilyaK: Ping timeout: 260 seconds 01:29 (part) mithos28 01:29 (join) mithos28 01:44 (quit) stchang: Read error: Operation timed out 01:46 (join) stchang 01:49 (quit) jeapostrophe: Ping timeout: 255 seconds 01:54 (quit) mye: Ping timeout: 245 seconds 02:02 (quit) DraX: Quit: Disconnecting from stoned server. 02:02 (join) DraX 02:02 (quit) DraX: Changing host 02:02 (join) DraX 02:43 (join) mye 02:53 jonrafkind: whats the differenc between "cpu" time and "real" time from (time ...)? 02:53 jonrafkind: real is how much time elapsed but cpu is how long the program ran on the cpu..? 02:58 mye: that's what the docs seem to say 02:59 mye: (time (sleep 2)) 02:59 mye: cpu time: 99 real time: 2006 gc time: 0 02:59 mye: rudybot: (time (sleep 2)) 02:59 rudybot: mye: your sandbox is ready 02:59 rudybot: mye: ; stdout: "cpu time: 0 real time: 2001 gc time: 0\n" 03:00 jonrafkind: ok 03:01 mye: the cpu time in my sleep is probably drracket 03:05 (quit) mithos28: Quit: mithos28 03:09 (quit) stchang: *.net *.split 03:11 (join) stchang 03:19 (join) RacketCommitBot 03:19 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/KAECLg 03:19 RacketCommitBot: racket/master c39ad69 Mike Sperber: Synch German string constants with latest. 03:19 RacketCommitBot: racket/master 114f47f Mike Sperber: Merge branch 'master' of git.racket-lang.org:plt 03:19 RacketCommitBot: racket/master 59d378c Mike Sperber: Synch German string constants with latest. 03:19 (part) RacketCommitBot 03:25 (quit) nilyaK1: Quit: Leaving. 03:38 (join) sambario 03:44 sambario: does anybody have a problem with new DrRacket 5.3.1, (version for Windows, 64-bit)? 03:45 sambario: DrRacket crashed when i do this 03:45 sambario: 1) I open DrRacket and type this: #lang web-server/insta (define (start request) (response/xexpr '(html (head (title "My Blog")) (body (h1 "Under construction"))))) 03:45 sambario: 2) I click "Run" and Internet Explorer appear and everithing's fine. But when i close Internet Explorer, in the REPL pane i get this error: . . ..\..\Program Files\Racket\collects\racket\port.rkt:1135:4: tcp-read: error reading systen error: Unknown error; errno=10054 03:45 sambario: 3) I then click "Stop" and get "Web Server stopped". But then, Racket crashes (sometimes immediately, sometimes after clicking "Start"). 03:45 sambario: Does anybody here can reproduce the sampe problem??? 03:45 asumu: sambario: I haven't had any problems, but I'm on Linux. Does it give you a message when it crashes? 03:46 sambario: unfortunately no 03:46 sambario: i'm on windows 7 03:47 asumu: I have a laptop with windows, so I can try it there... 03:47 asumu: sambario: in any case, if you can send a bug report that' 03:47 asumu: d be great. 03:47 asumu: You can submit bug reports through DrRacket. 03:47 sambario: really? 03:48 asumu: Yeah, go to Help->Submit bug report 03:50 sambario: ok, i just submitted the bug 03:51 asumu: Thanks. 03:52 sambario: but I don't hope too much because it seems that this only occurs to me 03:52 sambario: :( 03:54 asumu: Oh, I got it too. 03:54 (quit) jonrafkind: Read error: Operation timed out 03:54 asumu: But only if I set my default browser to IE. 03:56 sambario: oh god! 03:56 sambario: yes, my default browser is IE 04:01 (join) ewemoa 04:03 (quit) blubberdiblub: Quit: Santa Maria, den Schnitzelwagen, Santa Maria 04:06 (quit) sambario: Ping timeout: 245 seconds 04:31 (join) bitonic 04:50 (join) bartbes 05:06 (join) blubberdiblub 05:18 (quit) ewemoa: Ping timeout: 265 seconds 05:20 (join) epsil 05:22 (join) shriphani 05:22 epsil: how do I define transparent structs in lazy racket? 05:22 epsil: if I do #lang lazy (define-struct posn (x y) #:transparent), I get the error: "expected argument of type ; given '#:transparent" 05:22 epsil: it works fine in standard racket, though 05:23 shriphani: hi everyone. I have a question about the plot module. I see that plot/dc is the way to update an existing plot. Is there a simpler way to do it from the plot function itself (instead of spawning a new window i.e.) 06:11 (join) MayDaniel 06:13 (quit) shriphani: Ping timeout: 248 seconds 06:41 (join) masm 06:44 (join) sunwukong 07:43 (join) nathanpc 07:57 (join) cdidd 08:45 mye: GRML, I have a test with check-equal? that fails although the expected and actual value are printed exactly the same! It's a structure with nested hash-table though, so somewhere there must be something not comparing 08:47 mye: the structure is transparent and the tables compare equal in my tests 08:59 (quit) cdidd: Read error: Connection reset by peer 09:01 mye: I got it, I tried to compare an immutable hash-table created by #hash() with one created by (make-hash) 09:03 mye: it's certainly confusing when mutable hash tables are printed as mutables 09:03 mye: *immuatbles 09:17 (join) jeapostrophe 09:17 (quit) jeapostrophe: Changing host 09:17 (join) jeapostrophe 09:18 (join) cdidd 09:41 (join) greghendershott 09:49 (join) ambrosebs 09:56 (join) RacketCommitBot 09:56 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/7efzig 09:56 RacketCommitBot: racket/master 867f2d3 Robby Findler: use the real rectangles-intersect? predicate, not a broken one 09:56 RacketCommitBot: racket/master 4421e22 Robby Findler: when changing the error arrows, only invalidate the editor... 09:56 (part) RacketCommitBot 09:59 (quit) noam_: Ping timeout: 244 seconds 10:15 (quit) ambrosebs: Ping timeout: 246 seconds 10:17 (join) noam 10:17 (join) mizu_no_oto 10:33 (join) ubuntu-nathan 10:35 (quit) nathanpc: Ping timeout: 246 seconds 10:59 asumu: epsil: does using `struct` work instead? 10:59 asumu: (it seems to work for me) 11:00 asumu: Actually both work for me, so I'm not sure what's going on. 11:03 (quit) jrslepak: Quit: What happened to Systems A through E? 11:06 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 11:06 (join) ambrosebs 11:08 (quit) snorble_: Ping timeout: 252 seconds 11:08 mye: just wanted to say how much I love (for*/list) *heart* :P 11:09 asumu: mye: yeah, it's pretty great. 11:31 asumu: My home machine takes so much longer to render the docs than my work machine. Sigh. 11:40 (quit) dented42: Quit: Computer has gone to sleep. 11:47 mye: I always wondered if it only rebuilds the scribble files that actually changed 11:53 (join) jrslepak 11:54 (join) dented42 12:02 (quit) dented42: Quit: Computer has gone to sleep. 12:03 (join) RacketCommitBot 12:03 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/XJrEjA 12:03 RacketCommitBot: racket/master d22532d Asumu Takikawa: Fix Custodian type 12:03 (part) RacketCommitBot 12:04 (join) RacketCommitBot 12:04 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/6HbKxA 12:04 RacketCommitBot: racket/master b4a98af Asumu Takikawa: Fix whitespace in test 12:04 (part) RacketCommitBot 12:04 (join) dented42 12:14 (join) mithos28 12:16 (quit) dented42: Quit: Computer has gone to sleep. 12:18 (quit) acarrico: Ping timeout: 264 seconds 12:19 stamourv: jonrafkind: You're writing your dissertation in Scribble? 12:20 (join) mye_ 12:22 (quit) bitonic: Remote host closed the connection 12:23 (quit) mye: Ping timeout: 240 seconds 12:23 (join) bitonic 12:23 (nick) mye_ -> mye 12:27 bartbes: just 5 minutes ago I was wondering whether racket had pattern matching 12:27 bartbes: I now realize I've missed so much opportunities 12:30 asumu: bartbes: if you're running a pre-release, also check out `define/match` :) 12:31 bartbes: I'm not, but I'm extremely interested in this 12:31 bartbes: are there pre-release docs online? 12:31 asumu: bartbes: http://pre.racket-lang.org/docs/html/reference/match.html?q=define/match#(form._((lib._racket/match..rkt)._define/match)) 12:33 (quit) ubuntu-nathan: Remote host closed the connection 12:33 (join) nathanpc 12:34 bartbes: that is pretty damned awesome 12:34 stamourv: bartbes: `match' is awesome! Being able to define your own match expanders makes it really powerful. 12:35 stamourv: Now, whenever I have to use other pattern matchers, they feel primitive. 12:38 bartbes: those examples pointed me towards the curried function shorthand 12:39 bartbes: I never cease to be amazed by racket 12:42 bartbes: (or scheme in general) 12:47 (join) dented42 12:48 (quit) dented42: Client Quit 12:52 epsil: bartbes: what other pattern matchers are you comparing `match' with? :) 12:53 bartbes: epsil: you mean stamourv, I assume 12:58 epsil: bartbes: yeah, sorry 13:07 (quit) greghendershott: Quit: Leaving. 13:12 mithos28: epsil: haskell, scala, ml are more primitive than racket's 13:13 mithos28: They only have normal struct matching 13:14 mithos28: one simple thing you can do in racket, is have one pattern match match multiple structs 13:14 mithos28: this is done in the internals of TR for result types 13:15 mithos28: the actual value can be a single result or a list of results, but the matcher for a single result also matches multiple results when there is exactly one result 13:16 (join) dented42 13:18 (quit) dented42: Client Quit 13:24 (join) dented42 13:29 (quit) jrslepak: Quit: What happened to Systems A through E? 13:45 (join) nilyaK 13:48 (quit) nilyaK: Read error: Connection reset by peer 13:50 stamourv: epsil: What mithos28 said. 13:51 stamourv: + selective matching of fields, `app' patterns, etc. 13:51 mithos28: app patterns are in haskell as view patterns 13:52 stamourv: Are view patterns as general? 13:53 mithos28: apply function to value in the hole, and match against resulting value 13:53 mithos28: do app patterns get you anything else? 13:54 stamourv: I don't think so. You're probably right. 13:55 mithos28: why cannot TR do types on nested pattern matching 13:55 mithos28: is match's expansion that hard to understand 13:59 mithos28: Is it unreasonable to expect this to typecheck, https://gist.github.com/4052137 13:59 (join) neilv 13:59 (join) dnolen 14:01 (join) RacketCommitBot 14:01 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/WjljeQ 14:01 RacketCommitBot: racket/master c533019 Robby Findler: improve drracket's response to an unhappy aspell program... 14:01 (part) RacketCommitBot 14:05 (join) mizu_no_oto 14:06 (quit) mizu_no_oto: Client Quit 14:08 (quit) Nisstyre-laptop: Quit: Leaving 14:11 (join) jonrafkind 14:14 (join) jaimef 14:16 (join) mizu_no_oto 14:18 (quit) bitonic: Ping timeout: 245 seconds 14:19 (quit) mizu_no_oto: Client Quit 14:20 (quit) dented42: Ping timeout: 256 seconds 14:38 (join) anRch 14:41 (join) bitonic 14:43 (join) scott_ 14:43 (quit) scott_: Changing host 14:43 (join) scott_ 14:44 (join) mye_ 14:48 (nick) mye_ -> mye 14:49 (quit) bitonic: Remote host closed the connection 14:50 (quit) mithos28: Quit: mithos28 14:51 (join) bitonic 14:53 (join) nilyaK 14:54 (quit) ambrosebs: Remote host closed the connection 15:00 stamourv: mithos28: My guess is that `match' with `...' may expand into something tricky. 15:03 (quit) scott_: Quit: Leaving 15:09 (join) mithos28 15:11 (quit) ivan\: Quit: ERC Version 5.3 (IRC client for Emacs) 15:11 (quit) sunwukong: Quit: ERC Version 5.3 (IRC client for Emacs) 15:20 (join) jrslepak 15:25 (quit) mithos28: Quit: mithos28 15:26 (join) mithos28 15:47 (join) mithos28_ 15:50 (quit) mithos28_: Read error: Connection reset by peer 15:50 (join) mithos28_ 15:51 (quit) mithos28: Ping timeout: 265 seconds 15:51 (nick) mithos28_ -> mithos28 15:52 (quit) anRch: Quit: anRch 15:55 (quit) nilyaK: Quit: Leaving. 16:02 (quit) jeapostrophe: Ping timeout: 276 seconds 16:14 (join) Nisstyre-laptop 16:30 (join) greghendershott 16:31 (quit) greghendershott: Client Quit 16:31 (join) greghendershott 16:31 (quit) jonrafkind: Ping timeout: 255 seconds 16:32 (join) dented42 16:37 (quit) DT`: Read error: Connection reset by peer 16:37 (join) DT` 16:44 (join) walter|r 16:52 (quit) Nisstyre-laptop: Quit: Leaving 17:00 (join) shriphani 17:00 Twey: Is there a function that performs an n-ary Cartesian product? 17:00 shriphani: hi everyone. I am trying to use racket on an ubuntu installation and it can't find plot-new-window? (which I need to see a plot). Does anyone have any ideas ? 17:00 mithos28: rudybot: (map list '(1 2 3) '(4 5 6) '(7 8 9)) 17:00 rudybot: mithos28: your sandbox is ready 17:00 rudybot: mithos28: ; Value: ((1 4 7) (2 5 8) (3 6 9)) 17:01 mithos28: Twey: is that what you want? 17:01 Twey: mithos28: No 17:02 Twey: (f '(a b c) '(1 2 3)) → '((a 1) (a 2) (a 3) (b 1) (b 2) (b 3) (c 1) (c 2) (c 3)) 17:02 mithos28: ah, let me think. I'll be afk for like 10 17:02 Twey: I've written one, but it seems like something that ought to be built in 17:03 stamourv: rudybot: (for*/list ([i (in-range 5)] [j (in-range 11 15)]) (list i j)) 17:03 rudybot: stamourv: ; Value: ((0 11) (0 12) (0 13) (0 14) (1 11) (1 12) (1 13) (1 14) (2 11) (2 12) (2 13) (2 14) (3 11) (3 12) (3 13) (3 14) (4 11) (4 12) (4 13) (4 14)) 17:03 stamourv: Twey: ^ 17:03 stamourv: shriphani: Which version of Racket are you using? 17:04 stamourv: It's included in the new 5.3.1, I don't know about older versions. 17:04 (join) anRch 17:05 stamourv: You can also view plots in DrRacket. 17:06 Twey: stamourv: Hmm, but can I apply that to arbitrary lists? 17:06 Twey: If I have a list of two dozen lists of which I want the Cartesian product, for example 17:08 stamourv: You'd need a macro for that, so you may be better off rolling your own. 17:08 stamourv: But I agree that it would be a nice addition to racket/list. 17:09 Twey: Okay, I'll stick with mine, then. Thanks. 17:09 Twey: I'm translating a Haskell program, & Haskell has ‘sequence’ for arbitrary monads 17:09 stamourv: If you want, you can submit a pull request that adds it. :) 17:10 Twey: Hm, good idea. 17:10 stamourv: (it = cartesian product, not sure `sequence' would make sense in Racket) 17:11 Twey: http://paste.lisp.org/display/133643 — how's this definition? 17:12 Twey: (huh, the CAPTCHA for paste.lisp.org is no longer ‘lisp’) 17:13 stamourv: You can use `append-map' instead of `apply' + `append' + `map'. 17:13 (join) acarrico 17:14 stamourv: Also, `compose'd functions can be inefficient, so you may want to use an explicit lambda there. 17:15 Twey: Ooh, point — thanks. 17:15 Twey: They can? Why's that? 17:17 stamourv: `compose' works on functions of any arity, so it has to do more than just wrap a lambda. 17:17 stamourv: It came up on the mailing list a couple of days ago. 17:18 (join) walter|r_ 17:18 Twey: Ah, right 17:20 (quit) anRch: Read error: Connection reset by peer 17:20 (join) anRch 17:21 (quit) walter|r: Ping timeout: 240 seconds 17:27 asumu: shriphani: BTW, you can plot more than one thing by just providing a list of renderers. 17:28 (join) ivan\ 17:32 (quit) dented42: Quit: Computer has gone to sleep. 17:33 (join) dented42 17:42 (quit) greghendershott: Quit: Leaving. 17:44 (quit) pavelpenev: Remote host closed the connection 17:52 (join) dyoo 17:54 (join) mithos28 18:05 asumu: Wow, I rather like the topsl logo: 18:06 asumu: http://topsl.sourceforge.net/ 18:06 asumu: (cygwin paste is annoying) 18:07 (quit) SamB_MacG5: Ping timeout: 246 seconds 18:09 (join) SamB_MacG5 18:16 (quit) anRch: Quit: anRch 18:17 (quit) dented42: Quit: Computer has gone to sleep. 18:21 (join) dented42 18:26 (join) scott_ 18:26 (quit) scott_: Changing host 18:26 (join) scott_ 18:32 (quit) dented42: Quit: Computer has gone to sleep. 18:34 (join) dented42 18:35 (join) Shvillr_ 18:35 (quit) Shviller: Disconnected by services 18:35 (nick) Shvillr_ -> Shviller 18:46 (quit) dented42: Quit: Computer has gone to sleep. 18:50 (quit) dyoo: Quit: dyoo 18:58 (quit) walter|r_: Remote host closed the connection 18:59 (join) walter|r 19:01 (join) dented42 19:06 (join) jeapostrophe 19:06 (quit) jeapostrophe: Changing host 19:06 (join) jeapostrophe 19:10 (quit) scott_: Ping timeout: 260 seconds 19:23 (quit) masm: Quit: Leaving. 19:28 (quit) dented42: Quit: Computer has gone to sleep. 19:31 (join) jao 19:32 (quit) jao: Changing host 19:32 (join) jao 19:36 (join) jonrafkind 19:38 (quit) MayDaniel: Read error: Connection reset by peer 19:38 (join) RacketCommitBot 19:38 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/i_jTzA 19:38 RacketCommitBot: racket/master 7c5db43 Asumu Takikawa: Add typed version of collatz benchmark 19:38 RacketCommitBot: racket/master 90f6f1b Asumu Takikawa: Adjust benchmark test driver for TR 19:38 (part) RacketCommitBot 19:55 (join) Nisstyre-laptop 20:00 (join) Kaylin 20:15 (quit) walter|r: Remote host closed the connection 20:17 (join) walter|r 20:18 (quit) walter|r: Client Quit 20:19 (join) walter|r 20:21 (quit) bitonic: Ping timeout: 268 seconds 20:25 (quit) DT`: Read error: Connection reset by peer 20:25 (join) DT` 20:35 (quit) walter|r: Quit: Leaving 20:35 (join) walter|r 20:37 (quit) walter|r: Client Quit 20:37 (join) walter|r 21:02 (join) scott_ 21:02 (quit) scott_: Changing host 21:02 (join) scott_ 21:04 (quit) jonrafkind: Ping timeout: 240 seconds 21:17 (join) jonrafkind 21:17 (quit) jonrafkind: Changing host 21:17 (join) jonrafkind 21:35 (quit) mithos28: Remote host closed the connection 21:36 (quit) jeapostrophe: Ping timeout: 248 seconds 21:36 (join) mithos28 21:38 (join) walter|rtn 21:41 (quit) walter|r: Ping timeout: 240 seconds 21:46 (quit) scott_: Ping timeout: 252 seconds 21:58 (join) sizz 22:02 Twey: How about this one: (f 'x 5) → '(x x x x x) 22:03 (quit) neilv: Ping timeout: 246 seconds 22:04 (quit) mithos28: Quit: mithos28 22:04 jonrafkind: rudybot: (for/list ([i 5]) 'x) 22:04 rudybot: jonrafkind: your sandbox is ready 22:04 rudybot: jonrafkind: ; Value: (x x x x x) 22:06 Twey: Hm, right, thanks 22:08 (join) scott_ 22:10 (quit) jao: Ping timeout: 240 seconds 22:50 (join) Enoria 23:14 (quit) nathanpc: Quit: Computer has gone to sleep. 23:24 (quit) Nisstyre-laptop: Read error: Connection reset by peer 23:25 (join) Nisstyre-laptop 23:27 (quit) scott_: Ping timeout: 255 seconds 23:32 (quit) Nisstyre-laptop: Quit: Leaving 23:34 (join) Nisstyre-laptop 23:34 (join) maxwellhansen 23:34 maxwellhansen: Is there a function in Racket to check if a number is prime? 23:36 (join) mithos28 23:37 jonrafkind: http://dave.dkjones.org/posts/2012/2012-01-25-sieve-in-racket.html 23:38 offby1: maxwellhansen: actually there's a nice library called "math" that has prime-checking and tons of other stuff 23:38 maxwellhansen: offby1: Awesome, thanks! 23:39 jonrafkind: offby1, wheres that 23:39 offby1: I'm trying to find it :) 23:41 offby1: http://planet.racket-lang.org/display.ss?package=math.plt&owner=soegaard 23:44 (join) ambrosebs