00:07 (quit) asumu: Ping timeout: 260 seconds 00:54 (quit) dnolen_: Quit: dnolen_ 01:02 (join) srid 01:15 (quit) srid: Quit: Textual IRC Client: http://www.textualapp.com/ 01:18 (quit) emma: Ping timeout: 276 seconds 01:25 jonrafkind: eli, ping 01:33 (join) emma 01:35 (join) samth 02:10 (join) YokYok 02:18 (join) misterm 02:20 (quit) samth: Ping timeout: 252 seconds 02:26 (join) realitygrill 02:40 (quit) jonrafkind: Ping timeout: 252 seconds 02:56 (join) RacketCommitBot 02:56 RacketCommitBot: [racket] plt pushed 6 new commits to master: https://github.com/plt/racket/compare/3441686...b78a1a8 02:56 RacketCommitBot: [racket/master] fix an error message - Matthew Flatt 02:56 RacketCommitBot: [racket/master] add `for/sum', `for/product', etc. - Matthew Flatt 02:56 RacketCommitBot: [racket/master] Racket-implemented `reverse', `member', `memv', `memq' - Matthew Flatt 02:56 (part) RacketCommitBot 03:58 (quit) rgrinberg_: Ping timeout: 250 seconds 04:11 (quit) realitygrill: Quit: realitygrill 04:15 (join) noelw 04:16 (quit) noelw: Client Quit 05:04 (join) noelw 05:04 noelw: eartiveatom 07:18 (join) pyro- 07:19 (part) pyro- 07:19 (join) dnolen_ 07:21 (join) darkf 07:22 darkf: hello - is there a way to print a struct's members (e.g. I'm doing (printf "~a" object) but it only prints #, I'd like it to print something like #)? 07:37 ohwow_: declare a struct with #:transparent 07:38 ohwow_: rudybot: eval (struct a (b) #:transparent) 07:38 rudybot: ohwow_: your sandbox is ready 07:38 rudybot: ohwow_: Done. 07:38 ohwow_: rudybot: eval (define x (a 3)) 07:38 rudybot: ohwow_: Done. 07:38 ohwow_: rudybot: eval (printf "~a" x) 07:38 rudybot: ohwow_: ; stdout: "#(struct:a 3)" 07:40 darkf: Is there a way to do that if I'm not the one defining the struct? 08:29 (join) wingo 08:40 (join) RacketCommitBot 08:40 RacketCommitBot: [racket] plt pushed 1 new commit to master: https://github.com/plt/racket/commit/a26eb340c86383a4dd0f387ab423de9a20a81ca0 08:40 RacketCommitBot: [racket/master] fix the parent of the 'can close this window?' messages for tabs that aren't the frontmost tab - Robby Findler 08:40 (part) RacketCommitBot 08:43 (quit) didi: Remote host closed the connection 09:08 (quit) darkf: Quit: Leaving 09:13 danking: Is (length (call-with-values vs list)) the only way to get the number of values? Alternatively, is there a way to write rackunit tests which test the equality of a function which returns multiple values? 09:14 (join) MayDaniel 09:49 (quit) dnolen_: Quit: dnolen_ 09:50 (join) joshcough 10:29 (join) RacketCommitBot 10:29 RacketCommitBot: [racket] plt pushed 1 new commit to master: https://github.com/plt/racket/commit/e6b4d547c9c53a682b411f48af3c4393a1a6406f 10:29 RacketCommitBot: [racket/master] fix problem with initialization of tag name array - Matthew Flatt 10:29 (part) RacketCommitBot 10:46 noelw: danking: Multiple values are not ... err ... values 10:46 noelw: That is, they don't have any representation as values in the programming language 10:47 noelw: So to turn them into values you need to do the call-with-values thing 10:47 noelw: Rackunit doesn't have any built-in support for this but you can easily write your own check 10:47 noelw: see define-check and define-simple-check 10:58 danking: noelw: My question was probably unclear. `define-simple-check' merely lets me define a custom rackunit check, it doesn't solve my real problem of how to do equality testing of mutliple values. Using `call-with-values' seemed like an indirect way to do so. Upon further consideration, I've accepted this approach. 11:00 noelw: I too was unclear. You can wrap the ugliness of call-with-values with a custom check -- that is what I was getting at but didn't actually state 11:29 (join) asumu 11:34 (join) dnolen 11:38 (join) Daemmerung 11:39 clklein: Ugh, burned again by `case' and `cond' not blowing up when no cases match. 11:40 clklein: When I wrote this code, I thought, "hrm, I know this is dangerous, but do I really want to scroll all the way up to require racket/match? Eh, what could go wrong..." 11:40 clklein: Lesson learned. 11:43 noelw: :) 11:43 Daemmerung: (else (error "Duh, forgot a clause")) 11:44 clklein: I know I can write that by hand, but whats' the point of writing it by hand every single time? 11:44 Daemmerung: sometimes you really want a case or a cond. 11:46 clklein: Then you should have to say "I don't care if this falls through." 11:46 clklein: The default should not be wrong so often. 11:47 Daemmerung: think of case and cond as generalizations of when and unless. 11:47 clklein: I'm saying that's not a helpful way to think of them. 11:48 clklein: (because that behavior is not usually helpful) 11:48 Daemmerung: works on my machine(tm). 11:49 clklein: You routinely want the fall-through behavior? 11:51 (join) JuanDaugherty 11:53 (join) jonrafkind 11:54 (quit) MayDaniel: Read error: Connection reset by peer 11:56 Daemmerung: more like it's useful, and i 11:56 Daemmerung: m used to it. 11:57 clklein: Do you often make use of its usefulness? 11:59 Daemmerung: i don't even think about it any more. cond is what it is. i prefer the existing model to one where i'd have to write (else (no-really-im-cool-with-this)) at the end of every side-effectful cascade. 12:04 wingo: is (else) valid in racket? 12:04 wingo: it does not appear to be in r5rs 12:04 (join) tfb 12:16 (quit) noelw: Quit: noelw 12:18 jonrafkind: wingo, for what, cond? 12:19 wingo: jonrafkind: yes; clklein was wanting cond to error if there is no else clause, but Daemmerung was protesting it would be too verbose in the imperative case 12:20 wingo: but i just meant to lurk here, so don't mind me ;-) 12:23 Daemmerung: clklein: i don't mean to be glib, and i appreciate you challenging my assumptions borne of habit 12:27 (quit) tfb: Quit: gone 12:39 (join) RacketCommitBot 12:39 RacketCommitBot: [racket] plt pushed 4 new commits to release: https://github.com/plt/racket/compare/fd6e9c2...37eca34 12:39 RacketCommitBot: [racket/release] win32: fix `copy-file' handling of file-exists error - Matthew Flatt 12:39 RacketCommitBot: [racket/release] Changed error messages in test case to match corrected error messages in - Stephen Bloch 12:39 RacketCommitBot: [racket/release] Fixed an off-by-one bug in "myflip", an example for build-image. Now it passes its tests :-) - Stephen Bloch 12:39 (part) RacketCommitBot 12:39 (join) rgrinberg_ 12:40 clklein: Daemmerung: no problem :) 12:44 (join) masm 12:46 stamourv: clklein: It should be reasonably easy to write a `cond/err' or `case/err' that errors if control falls through. 12:46 stamourv: That would fit nicely in unstable/whatever. ;) 12:47 jonrafkind: conderr? i hardly even knew her! 12:48 stamourv: Coming up with good names is a superpower I don't have, unfortunately. 12:49 jonrafkind: cond/error 12:49 Daemmerung: the schemely tradition embraces long, awkward, hyphen-studded names. cond-with-guaranteed-guard-clause 12:50 Daemmerung: cond-with-guaranteed-return-value-or-your-money-back 12:51 JuanDaugherty: that's general lisp actually 12:52 clklein: stamourv: I wonder how much would be saved by requiring unstable/whatever over racket/match. 12:53 Daemmerung: cond/check, case/check 13:18 danking: There's always condWithGuaranteedReturnValueOrYourMoneyBack if you're sick of studly names. 13:21 (join) dherman 13:22 (join) samth 13:58 stamourv: clklein: That's not the point. 13:59 stamourv: The point would be to see whether having these at all is convenient enough for people to use. 13:59 stamourv: And if so, it may make its way in a more proeminent collect. 14:02 (quit) asumu: Ping timeout: 260 seconds 14:15 (join) RacketCommitBot 14:15 RacketCommitBot: [racket] plt pushed 1 new commit to release: https://github.com/plt/racket/commit/2c5e9b9e42613ea070dbc5d1375aeebd945977f9 14:15 RacketCommitBot: [racket/release] fix problem with initialization of tag name array - Matthew Flatt 14:15 (part) RacketCommitBot 14:27 svk_: Is there a standard stream function equivalent to "stream-head" or to "take" in Haskell? (Meaning, one to get a list/sequence/stream of the first k elements of a potentially infinite stream.) 14:31 samth: svk_, no, but you should write one for `racket/stream' and submit it as a patch :) 14:36 svk_: Oh, okay.. I assumed I just couldn't find the name 14:38 samth: svk_, racket/stream is pretty new 14:38 samth: new functions are a good idea 14:38 (join) realitygrill 14:47 jonrafkind: theres a stream-take in srfi/41 14:47 samth: jonrafkind, srfi/41 streams aren't the same as racket/stream streams, right? 14:47 svk_: This seems like a passable implementation to me, consistent with stream-tail as far as I can see: http://paste.lisp.org/display/123581 14:48 jonrafkind: right, but making the implementation should be easy if you can steal it from srfi/41 (as long as stream-take doesn't touch the internal representation too much) 14:48 samth: svk_, that looks right 14:51 samth: jonrafkind, svk_, i was wrong, just using srfi/41 should wokr 14:51 samth: *work 14:52 svk_: Oh, okay 14:56 svk_: Doesn't seem to work for me, (stream-take 10 (in-range 10 30)) -> error, stream-take: non-stream argument 14:58 samth: svk_, `in-range' produces a sequence, but not a stream 15:16 (join) littlebobby 15:25 svk_: Oh, thanks, misread that 15:28 svk_: I think I was misled by the fact that whatever it produces prints as #, I notice stream-cons streams don't 15:29 (join) anRch 15:33 jonrafkind: stamourv, what was the new logging you mentioned? 15:35 stamourv: jonrafkind: unstable/logging 15:36 stamourv: It's for programmatically controlling logging. 15:36 stamourv: Like capturing logging output from inside the program, or changing the output level from within the program. 15:40 stamourv: You could already do that, with log listeners and all, but it's quite complicated. 15:46 (quit) Sgeo: Ping timeout: 255 seconds 15:52 (join) SethTisue 16:05 (join) ChibaPet 16:05 (quit) elliottcable: Ping timeout: 240 seconds 16:06 (join) elliottcable 16:31 (join) Sgeo 16:46 (quit) anRch: Quit: anRch 21:00 (topic) -: Racket -- http://racket-lang.org -- logs @ http://racket-lang.org/irc-logs 21:00 (names) -: gabot joshcough rgee dnolen Sgeo_ elliottcable SethTisue littlebobby Daemmerung YokYok emma ohwow_ DT`` svk_ mario-goulart snorble tauntaun drhodes Twey samth_away stchang_ rudybot Zao cipher tomku shachaf tewk Utkarsh clklein flazz stamourv ohwow cky janne gf3 hyko stride fmu ve blomqvist dsp_ danking void- askhader _p4bl0 rapacity sir_lewk mattmight offby1 tonyg @ChanServ zakwilson 21:03 (join) groovy2shoes 21:07 (quit) groovy2shoes: Client Quit 21:07 (join) dnolen_ 21:08 (join) eli 21:22 (join) Lajla 21:41 (join) wtetzner 21:47 (quit) wtetzner: Quit: Leaving 22:01 (quit) littlebobby: Quit: Ex-Chat 22:50 (join) jonrafkind 23:17 (join) mblomqvist 23:19 (quit) blomqvist: Ping timeout: 264 seconds