00:20 (join) rudybot 01:06 (quit) offby1: Remote host closed the connection 01:08 (join) offby1 01:09 (quit) offby1: Changing host 01:09 (join) offby1 01:11 (quit) ckrailo: Remote host closed the connection 01:23 (join) acon 01:52 (quit) dnolen: Quit: dnolen 02:25 (quit) misterm: Ping timeout: 252 seconds 02:27 (join) misterm 02:39 (quit) acon: Quit: acon 03:25 (quit) samth: Ping timeout: 260 seconds 04:29 (join) RaceCondition 05:13 (topic) -: Racket -- http://racket-lang.org -- Come to Racket Days: July 23-24 -- logs @ http://racket-lang.org/irc-logs 05:13 (names) -: gabot RaceCondition misterm offby1 rudybot DT`` qha saint_cypher lucian martinhex em askhader tildedave eli friscosam evhan mario-goulart bremner_ _p4bl0 stamourv cpach tewk zakwilson petey-away shachaf mattmight cow-orker abbe lisppaste clklein @ChanServ fmu samth_away jackhill_ hyko danking cky jeapostrophe 05:13 eli: gabot: fart 05:14 eli: gabot: fart 05:15 eli: gabot: flood 05:15 eli: gabot: flood 05:16 eli: gabot: flood 05:17 (topic) -: Racket -- http://racket-lang.org -- Come to Racket Days: July 23-24 -- logs @ http://racket-lang.org/irc-logs 05:17 (names) -: gabot RaceCondition misterm offby1 rudybot DT`` qha saint_cypher lucian martinhex em askhader tildedave eli friscosam evhan mario-goulart bremner_ _p4bl0 stamourv cpach tewk zakwilson petey-away shachaf mattmight cow-orker abbe lisppaste clklein jeapostrophe fmu @ChanServ samth_away jackhill_ hyko danking cky 05:17 eli: gabot: flood 05:20 (topic) -: Racket -- http://racket-lang.org -- Come to Racket Days: July 23-24 -- logs @ http://racket-lang.org/irc-logs 05:20 (names) -: gabot RaceCondition misterm offby1 rudybot DT`` qha saint_cypher lucian martinhex em askhader tildedave eli friscosam evhan mario-goulart bremner_ _p4bl0 stamourv cpach tewk zakwilson petey-away shachaf mattmight cow-orker abbe lisppaste clklein fmu @ChanServ samth_away jackhill_ hyko danking cky jeapostrophe 05:46 (join) tfb 06:35 (quit) tfb: Ping timeout: 240 seconds 06:36 (topic) -: Racket -- http://racket-lang.org -- Come to Racket Days: July 23-24 -- logs @ http://racket-lang.org/irc-logs 06:36 (names) -: gabot RaceCondition misterm offby1 rudybot DT`` qha saint_cypher lucian martinhex em askhader tildedave eli friscosam evhan mario-goulart bremner_ _p4bl0 stamourv cpach tewk zakwilson petey-away shachaf mattmight cow-orker abbe lisppaste clklein fmu @ChanServ samth_away jackhill_ hyko danking cky jeapostrophe 06:44 (topic) -: Racket -- http://racket-lang.org -- Come to Racket Days: July 23-24 -- logs @ http://racket-lang.org/irc-logs 06:44 (names) -: gabot RaceCondition misterm offby1 rudybot DT`` qha saint_cypher lucian martinhex em askhader tildedave eli friscosam evhan mario-goulart bremner_ _p4bl0 stamourv cpach tewk zakwilson petey-away shachaf mattmight cow-orker abbe lisppaste clklein jeapostrophe fmu @ChanServ samth_away jackhill_ hyko danking cky 07:34 (join) masm 07:42 (quit) lucian: Disconnected by services 07:43 (join) lucian_ 09:25 (join) tauntaun 09:26 (join) MayDaniel 09:32 (quit) MayDaniel: Read error: Connection reset by peer 09:46 (quit) tauntaun: Quit: Ex-Chat 10:02 (join) tauntaun 10:23 (join) dnolen 11:30 (join) carleastlund 11:34 (join) ckrailo 11:35 (join) samth 11:41 offby1: gabot: what have you got to say for yourself? 11:42 offby1: we're out of chicken; the Health Department recalled it. 11:42 (quit) dnolen: Quit: dnolen 11:43 DT``: gabot, flood 11:54 (join) mceier 12:03 offby1: gabot: boils 12:03 offby1: gabot: locusts 12:05 (quit) samth: Ping timeout: 248 seconds 12:37 (quit) martinhex: Read error: Connection reset by peer 12:39 (join) martinhex 12:48 (quit) tauntaun: Quit: Ex-Chat 12:58 (join) anRch 13:22 (quit) martinhex: Read error: Connection reset by peer 13:25 (quit) anRch: Quit: anRch 13:25 (join) martinhex 13:28 (join) samth 13:36 (nick) lucian_ -> lucian 13:36 (join) tfb 13:39 (join) acon 13:41 (join) anRch 13:41 (join) sstrickl 13:44 (join) MayDaniel 14:01 (quit) MayDaniel: Read error: Connection reset by peer 14:07 (quit) stamourv: Quit: ERC Version 5.3 (IRC client for Emacs) 14:10 (quit) martinhex: Read error: Connection reset by peer 14:11 (join) martinhex 14:15 (quit) acon: Ping timeout: 246 seconds 14:25 (join) PLT_Notify 14:25 PLT_Notify: racket: master Kevin Tew * 7dc22bc (1 files in 1 dirs): added scheme_place_check_for_killed prototype - http://bit.ly/eFweUl 14:25 (part) PLT_Notify 15:14 (quit) anRch: Quit: anRch 15:42 (quit) ckrailo: Remote host closed the connection 15:43 (join) MayDaniel 15:50 (join) tauntaun 15:59 (join) PLT_Notify 15:59 PLT_Notify: racket: master Casey Klein * 3214861 (2 files in 2 dirs): Fixes rendering of (hole t ...+) ... 15:59 PLT_Notify: racket: master Casey Klein * faef39c (1 files in 1 dirs): Fixes the docs for non-terminal styles 15:59 PLT_Notify: racket: master commits 7dc22bc...faef39c - http://bit.ly/fsCeN9 15:59 (part) PLT_Notify 16:03 (quit) MayDaniel: Read error: Connection reset by peer 16:06 (quit) tfb: Ping timeout: 276 seconds 16:06 (join) ckrailo 16:18 (quit) sstrickl: Quit: sstrickl 17:08 tauntaun: Question about runtime error reporting... 17:08 tauntaun: Suppose I have (define (a) (+ 3 'hi))... 17:08 tauntaun: and I have (define (b) (a)) 17:09 tauntaun: The top of the stack trace is 'a', quite naturally. 17:09 tauntaun: (i.e., the top of the stack trace when the error is thrown.) 17:09 tauntaun: Can anything be done to get the runtime to trace the call one more step to 'b'? 17:11 samth: (define (b) (let ([x (a)]) x)) 17:12 samth: see: file:///home/samth/sw/plt/doc/reference/eval-model.html?q=tail#%28part._.Tail_.Position%29 17:12 samth: wait, that won't work 17:12 samth: see http://docs.racket-lang.org/reference/eval-model.html?q=tail#%28part._.Tail_.Position%29 17:12 rudybot: http://tinyurl.com/5rdm3wm 17:12 samth: tauntaun, as above 17:13 tauntaun: samth: thanks; it'll take me a while to digest this. 17:14 samth: tauntaun, also see: http://planet.racket-lang.org/package-source/dherman/tail.plt/5/0/planet-docs/tail/index.html 17:14 rudybot: http://tinyurl.com/4c747py 17:22 tauntaun: cheers 17:38 (join) MayDaniel 17:55 (quit) mceier: Quit: leaving 18:09 (quit) MayDaniel: Read error: Connection reset by peer 18:15 (join) RaceCondition_ 18:19 (quit) RaceCondition: Ping timeout: 276 seconds 18:20 (nick) RaceCondition_ -> RaceCondition 18:31 tauntaun: Going back to my question about the immutable hashtable: since it is implemented as a RB tree, why did PLT not elect to add ordering guarantees to the abstraction's interface? 18:32 carleastlund: tauntaun: because we have no ordering guarantees on our values in general. 18:33 carleastlund: And immutable hash tables are RB trees on hash values; in the case of a collision, multiple key/value pairs can be stored at one tree node. 18:34 tauntaun: RB trees on hash *values*, not hash *keys*? 18:34 carleastlund: Terminology mixup; hash keys. 18:35 carleastlund: Er, no, wait. 18:35 carleastlund: Neither. Hash numbers. The keys need not be numeric. 18:35 tauntaun: Is a hash number the output of a hash function? 18:35 carleastlund: So for {key, value}, the RB tree is keyed on (equal-hash-code key) 18:36 carleastlund: Right, that's what I've been trying rather clumsily to say. 18:36 tauntaun: OK, thanks. 18:40 tauntaun: carleastlund: And that hash function is hardwired, right? (The PLT Docs don't seem to talk about user-defined hash functions.) 18:42 carleastlund: There are three kinds of primitive hash tables with hardwired hash functions (one each for equal?, eqv?, and eq? based comparisons). There are also "custom" hashes that do not satisfy hash? but do satisfy dict?, and are hash tables behind the scenes. 18:44 carleastlund: But in most cases, custom hashing is for custom types. When you define a new structure type, you can define its hash function using the prop:equal+hash property. Then equal?-based hash tables will use the behavior you write. 18:47 clklein: Which part of the docs says what's in the continuation of top-level expressions in a module? I thought that each one appears in a context that's something like (prompt (print [])), but I'm trying to nail down the details. 18:49 carleastlund: The print thing is not part of a continuation, it's part of the expansion of #%module-begin into #%plain-module-begin. I don't know about the prompt issue, though. 18:52 clklein: Oh, I found it. "Each evaluation of an expression or definition is wrapped with a continuation prompt (see call-with-continuation-prompt) for the default continuation and using the default prompt handler." 18:52 (quit) RaceCondition: Remote host closed the connection 18:52 tauntaun: carleastlund: thanks. 18:52 (join) RaceCondition 19:03 (quit) RaceCondition: Quit: RaceCondition 19:04 (quit) carleastlund: Quit: carleastlund 19:30 (quit) petey-away: Ping timeout: 255 seconds 19:30 (quit) tewk: Ping timeout: 255 seconds 19:37 (join) petey-away 19:52 (join) tewk 20:07 (quit) samth: Ping timeout: 260 seconds 20:08 (quit) saint_cypher: Quit: Leaving. 20:28 (quit) lucian: Remote host closed the connection 20:41 (quit) masm: Quit: Leaving. 21:03 (quit) ckrailo: Quit: Computer has gone to sleep. 21:21 (join) dnolen 21:31 (quit) tauntaun: Quit: Ex-Chat 21:31 (join) ckrailo 22:19 (join) tauntaun 22:21 (quit) tauntaun: Client Quit 22:33 (quit) martinhex: Read error: Connection reset by peer 22:39 (quit) ckrailo: Quit: Computer has gone to sleep. 22:43 (join) martinhex 22:54 (quit) em: *.net *.split 22:54 (quit) askhader: *.net *.split 22:54 (quit) friscosam: *.net *.split 22:54 (quit) jackhill_: *.net *.split 22:56 (quit) dnolen: Quit: dnolen 23:00 (join) em 23:00 (join) askhader 23:00 (join) friscosam 23:00 (join) jackhill_ 23:01 (quit) em: Max SendQ exceeded 23:02 (join) em 23:05 (quit) evhan: Ping timeout: 240 seconds 23:14 (join) rrenaud 23:19 rrenaud: is it easy write write a function that returns me elements of a list in order? something like a python generator? (let* ([l '(1 4 2)] [gen (magic l)] [a (gen)] [b (gen)] [c (gen)]) (list a b c) -> (1 4 2) 23:31 offby1: rrenaud: there are generators in there somewhere, I think. 23:31 rrenaud: yeah, reading docs now 23:31 offby1: rudybot: (require racket/generator) 23:31 rudybot: offby1: your racket sandbox is ready 23:31 rudybot: offby1: Done. 23:32 offby1: rudybot: (define g (generator () (let loop ([x '(a b c)]) (if (null? x) 0 (begin (yield (car x)) (loop (cdr x))))))) 23:32 rudybot: offby1: Done. 23:32 offby1: rudybot: (g) 23:32 rudybot: offby1: ; Value: a 23:32 offby1: rudybot: (g) 23:32 rudybot: offby1: ; Value: b 23:32 offby1: rudybot: (g) 23:32 rudybot: offby1: ; Value: c 23:32 offby1: rudybot: (g) 23:32 rudybot: offby1: ; Value: 0 23:32 offby1: rudybot: (g) 23:32 rudybot: offby1: ; Value: 0 23:32 eli: rrenaud: http://docs.racket-lang.org/reference/sequences.html#(mod-path._racket/generator) 23:36 rrenaud: okay, so this does what i want 23:36 rrenaud: (define x (sequence->generator (in-list '(1 2 3)))) 23:37 rrenaud: it seems natural for such a thing to exist already (did i miss it in the docs?) 23:37 rrenaud: but i guess that's simple enough for me 23:38 offby1: rudybot: (define x (sequence->generator (in-list '(1 2 3)))) 23:38 rudybot: offby1: Done. 23:38 offby1: rudybot: (x) 23:38 rudybot: offby1: ; Value: 1 23:38 offby1: rudybot: (x) 23:38 rudybot: offby1: ; Value: 2 23:38 offby1: rudybot: (x) 23:38 rudybot: offby1: ; Value: 3 23:38 offby1: rudybot: (x) 23:38 rudybot: offby1: Done. 23:38 offby1: groovy 23:38 offby1: groovy 23:38 offby1: rudybot: (x) 23:38 rudybot: offby1: Done.