00:12 (join) mithos28 00:18 (quit) jonrafkind: Quit: Ex-Chat 00:19 (join) jonrafkind 00:24 rapacity: how can I make a require syntax work in (provide (all-from-out ? 00:40 (join) jao 00:48 mithos28: rapacity: did you get your question answered? 00:54 rapacity: nope 00:56 mithos28: what was the question, you are requiring syntax and it does not get provided by an (all-from out …)? 00:59 rapacity: for example when you have (require (planet some-package)) you can do (provide (all-from-out (planet the-package))) 01:00 (join) RacketCommitBot 01:00 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/2RE6UQ 01:00 RacketCommitBot: [racket/master] Workaround for a gui instantiation problem. - Eli Barzilay 01:00 (part) RacketCommitBot 01:00 rapacity: I have a require transformer and I want to be able to do the same thing with it 01:00 rapacity: (require (thing x)) (provide (all-from-out (thing x))) 01:01 mithos28: ah 01:02 mithos28: the spec of all-from-out says only module-paths 01:02 mithos28: so not possible through that 01:02 rapacity: ah, thanks 01:03 mithos28: but I think there is another way if you want to write your own (all-from-out) sort of thing 01:03 rapacity: yeah I'll just use a provide-transformer 01:04 mithos28: expand-import 01:05 mithos28: will get you all of the actual imports from your require spec 01:17 mithos28: does anyone know why srfi/13 does not reprovide string-copy? (asking again in case more people are around tonight) 01:21 (quit) dsp_: Ping timeout: 240 seconds 01:22 eli: mithos28: Probably because nobody bothered. These things tend to be hassle sinks. 01:23 (quit) realitygrill: Ping timeout: 260 seconds 01:23 (join) realitygrill 01:23 (join) dsp_ 01:23 eli: But if there's anything useful in `srfi/13' it's usually better to add it to `racket/string' instead. 01:25 mithos28: ok, I was trying to use srfi/13 from TR, realized it wasn't typed and started writing a wrapper and noticed it 01:26 mithos28: racket/string notably is missing string-trim functions 01:27 mithos28: would a patch to re-export the missing bindings from srfi/13 be appreciated? 01:33 eli: mithos28: Maybe. It's certainly not really something I'd lose sleep over... 01:33 (quit) jeapostrophe: Quit: jeapostrophe 01:34 eli: And re the trim functions -- the left/right variants sound redundant, since they're trivial to do with a regexp-replace, 01:35 eli: the double sided version might be worth it, since writing it with `regexp-replace' can be tricky -- maybe add an ability to "normalize" whitespaces by replacing all one-or-more whitespace sequences by a single space. 01:36 mithos28: I'm not saying that I need it in racket/string, but that is why I am using srfi/13 01:37 mithos28: and just the double ended one, to clean up input from another process 01:37 eli: It would be useful to look up what other languages offer in that dept, and suggest it on the dev list. 01:38 mithos28: ok, I'll do that. And just make the typed/srfi/13 export the full bindings since I am going to write it anyways 01:39 eli: Should also raise the name issue -- `string-trim' sounds too vague, but I don't know what's popular and what's not. 01:39 eli: You were going to write what anyway? 01:39 mithos28: nvm on that, 01:40 mithos28: realized a work around for while the trim thing gets mulled over on dev 01:42 eli: mithos28: BTW, the single `regexp-replace' version that I'm talking about is: 01:43 eli: (define (trim str) (regexp-replace #px"^[[:space:]]*(.*?)[[:space:]]*$" str "\\1")) 01:43 eli: And the tricky thing about it is that people usually are unaware of how useful the non-greedy qualifiers are. 01:44 eli: (So they end up doing a the left-then-right thing.) 01:45 eli: (define (trim str) (cadr (regexp-match #px"^[[:space:]]*(.*?)[[:space:]]*$" str))) 01:45 eli: Probably a little faster. 01:47 mithos28: ok, but thats a lot harder to remember that pulling the library version 01:49 mithos28: http://en.wikipedia.org/wiki/Trim_(programming) 01:50 mithos28: Some languages use trim, others strip, and then obj-C with stringByTrimmingCharactersInSet 01:55 (join) masm 01:57 mithos28: a lot slower than doing it on both sides 01:57 mithos28: on some inputs 01:59 (join) dmac 02:22 (quit) pcavs: Quit: Leaving. 02:27 (join) pcavs 02:32 (quit) jonrafkind: Ping timeout: 260 seconds 02:34 (quit) pcavs: Quit: Leaving. 02:42 (quit) jao: Ping timeout: 276 seconds 02:55 (join) wiley 02:55 wiley: somewhat noob-ish question: how do I make two expressions behave like one, where the second one is returning a value? 02:56 wiley: the long version is that I have a type-case, and for a certain case I need to do a large check against items in a list and produce an error under certain circumstances 02:56 wiley: and if I don't hit an error, I need to actually perform the operation 02:57 wiley: do I need to find a different way to write it, or can I use the for-each and normal expression I'm currently using somehow? 02:59 ohwow: (begin ... ) 03:02 (join) hkBst 03:04 wiley: ohwow: thanks! 03:11 (join) Ivoz 03:11 Ivoz: do you guys know what the identity functions are? do they come automatically? 03:21 mithos28: Ivoz: there is the identity function provided by the racket/function library 03:22 mithos28: and reprovided by racket, so yes it does come automatically 03:24 Ivoz: hah 03:24 Ivoz: it seems + can serve as an identity function for 1 argument 03:25 mithos28: Ivoz: only numbers 03:25 Ivoz: mithos28: good point 03:25 mithos28: Ivoz: there is also values 03:26 mithos28: which will work in the case of 1 argument of any type 03:40 (quit) dmac: Ping timeout: 260 seconds 03:47 (quit) masm: Ping timeout: 252 seconds 03:50 (join) noelw 03:52 (quit) noelw: Client Quit 03:53 (quit) mithos28: Quit: mithos28 04:05 (join) tfb 04:07 (quit) tfb: Client Quit 04:47 (quit) qfrslaam: Quit: Phallic Illuminatus 05:24 (join) noelw 05:26 (join) Lajla 05:35 (quit) noelw: Quit: noelw 05:36 (join) noelw 05:38 (quit) noelw: Client Quit 05:39 (join) noelw 05:43 (quit) wiley: Ping timeout: 248 seconds 05:43 (join) wiley 05:43 (quit) tewk: Ping timeout: 260 seconds 05:44 (join) tewk 05:55 (join) Burlingk 06:00 (quit) flying_rhino: 06:19 (quit) Ivoz: Ping timeout: 252 seconds 06:47 (join) masm 06:58 (join) MayDaniel 06:59 (quit) MayDaniel: Read error: Connection reset by peer 07:24 (join) jeapostrophe 07:58 (join) RacketCommitBot 07:58 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/26xEqg 07:58 RacketCommitBot: [racket/master] adjust timeout for tests/drracket/snip/run-all.rkt - Robby Findler 07:58 (part) RacketCommitBot 08:39 (join) RacketCommitBot 08:39 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/DCivxw 08:39 RacketCommitBot: [racket/master] another place-channel finalization repair - Matthew Flatt 08:39 (part) RacketCommitBot 08:51 (quit) torche: Quit: torche 09:13 (join) torche 09:25 (join) mceier 09:26 (join) RacketCommitBot 09:26 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/69v0pQ 09:26 RacketCommitBot: [racket/master] scribble: fix HTML navigation when the main part has 'toc - Matthew Flatt 09:26 RacketCommitBot: [racket/master] scribble CSS: force text-align left in RktBlk - Matthew Flatt 09:26 (part) RacketCommitBot 09:32 (join) chturne 09:42 (quit) realitygrill: Ping timeout: 260 seconds 09:42 (join) pcavs 09:44 (quit) pcavs: Client Quit 09:54 (join) realitygrill 10:11 (join) shofetim 10:17 (join) pcavs 10:20 (quit) jeapostrophe: Quit: jeapostrophe 10:33 (nick) samth_away -> samth 10:42 (join) anRch 10:59 (quit) realitygrill: Quit: realitygrill 11:10 samth: mattmight: isn't that (re twitter) just known as good advising/parenting? 11:18 (join) jeapostrophe 11:23 (quit) hkBst: Remote host closed the connection 11:35 (quit) jrslepak: Quit: Leaving 11:39 (join) dnolen 11:52 (join) superjudge 11:52 (quit) anRch: Quit: anRch 11:55 (join) samth_ 11:58 (join) anRch 12:08 (join) MayDaniel 12:09 (quit) noelw: Quit: noelw 12:14 (join) jao 12:35 (quit) anRch: Quit: anRch 12:40 (quit) dnolen: Quit: dnolen 13:04 (join) dnolen 13:06 (join) jonrafkind 13:29 (quit) samth_: Ping timeout: 276 seconds 13:54 (join) dmac 13:56 (join) anRch 14:17 (join) noelw 14:18 (quit) noelw: Client Quit 14:23 (quit) MayDaniel: Read error: Connection reset by peer 14:39 jonrafkind: is there absolutely no way to expand to syntax that somehow completely goes away? 14:39 samth: (begin) will work, in some contexts 14:39 samth: namely, those contexts that do begin-splicing 14:40 samth: but not in general 14:43 jonrafkind: aha my hack is to expand to (define x 0) so that it won't get printed 14:47 samth: any context that (define ...) works in (begin) should work in too 14:47 jonrafkind: ok let me see.. 14:47 samth: and `(define x 0)' changes the semantics of the program 14:48 jonrafkind: shouldn't that x be hidden by hygiene? 14:48 jonrafkind: but ok just using (begin) worked 14:48 samth: what about at module top-level -- it doesn't get hidden in the namespace of things you get from the module 14:49 jonrafkind: ok thats true 15:13 (quit) jao: Ping timeout: 260 seconds 15:17 (quit) anRch: Quit: anRch 15:33 (quit) superjudge: Quit: superjudge 15:43 (join) superjudge 15:51 (join) jao 16:12 (quit) superjudge: Quit: superjudge 16:29 (join) RacketCommitBot 16:29 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/eGAQ7w 16:29 RacketCommitBot: [racket/master] fix calculation for hash code of a hash table - Matthew Flatt 16:29 (part) RacketCommitBot 16:34 (join) MayDaniel 16:37 eli: rudybot: eval system 16:37 rudybot: eli: your sandbox is ready 16:37 rudybot: eli: ; Value: # 16:37 eli: rudybot: (system "ls") 16:37 rudybot: eli: error: subprocess: `execute' access denied for /bin/sh 16:39 (join) ChibaPet 17:04 (quit) MayDaniel: Read error: Connection reset by peer 17:39 (join) MayDaniel 17:40 (quit) dnolen: Quit: dnolen 17:48 (join) RacketCommitBot 17:48 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/CPRLGg 17:48 RacketCommitBot: [racket/master] dynamic-place now pipes standard io to standard out and error much like system. - Kevin Tew 17:48 (part) RacketCommitBot 17:49 sir_lewk: why doesn't RacketCommitBot just stay online? 17:49 samth: sir_lewk: that's how github works 17:50 sir_lewk: oh, it's githubs software 17:50 sir_lewk: forgot they even had that 17:50 sir_lewk: I didn't see the hostname >_> 17:50 jamessan: it's an option. you can have it stay in the channel or join/announce/part 17:52 jonrafkind: so maybe eli can change it? 17:57 (quit) torche: Quit: torche 18:00 samth: jamessan, jonrafkind, sir_lewk: fixed now 18:05 (quit) jeapostrophe: Quit: jeapostrophe 18:06 (quit) jao: Ping timeout: 260 seconds 18:12 samth: jonrafkind: when are we going to have documentation? 18:12 jonrafkind: *snary answer* you already do! 18:12 jonrafkind: snarky* 18:13 jonrafkind: damn 18:13 jonrafkind: yea i thought about writing documentation today 18:14 (join) dyoo 18:14 jonrafkind: ok how about after the repl works, otherwise no one will try it 18:15 (quit) dyoo: Quit: Colloquy for iPad - http://colloquy.mobi 18:16 (quit) mceier: Quit: leaving 18:21 samth: jonrafkind: i'll try it 18:21 jonrafkind: ok you can run it at the plain command line 18:22 samth: but i want documentation! 18:22 samth: or at least an email-length overview 18:23 jonrafkind: ok 18:24 jonrafkind: ill probably add the indentation style reader thing at some point 18:25 (join) machuga 18:33 (join) torche 18:34 (join) dnolen 18:35 (quit) Burlingk: Quit: Leaving 18:37 (quit) torche: Read error: Connection reset by peer 18:43 (quit) dsp_: Ping timeout: 244 seconds 18:47 samth: jonrafkind: woot 18:55 (nick) samth -> samth_away 19:06 (quit) MayDaniel: Read error: Connection reset by peer 19:08 eli: jamessan: That option is very new. 19:08 jamessan: ah 19:08 jamessan: I only noticed they provided that when I saw racket's bot 19:09 eli: Well, last time I checked their options was last week, and they didn't have it. 19:22 (join) jeapostrophe 19:32 (quit) masm: Quit: Leaving. 19:44 (quit) pcavs: Quit: Leaving. 19:49 (quit) ChibaPet: Ping timeout: 260 seconds 19:50 (join) coyo 19:50 coyo: hey all! 19:51 coyo: how's yall? 19:57 (join) realitygrill 20:10 (quit) jeapostrophe: Quit: jeapostrophe 20:22 (quit) jamessan: Remote host closed the connection 20:40 (quit) jonrafkind: Ping timeout: 260 seconds 20:43 (join) neilv 20:57 (join) realitygrill_ 20:58 (quit) realitygrill: Ping timeout: 260 seconds 20:58 (nick) realitygrill_ -> realitygrill 21:07 (join) otzi 21:10 coyo yawns 21:16 (join) jeapostrophe 21:49 (join) mithos28 21:50 (join) pcavs 21:53 (quit) Lajla: Ping timeout: 260 seconds 22:02 (join) realitygrill_ 22:02 (quit) realitygrill: Read error: Connection reset by peer 22:02 (nick) realitygrill_ -> realitygrill 22:45 (join) jonrafkind 22:56 (quit) shofetim: Ping timeout: 240 seconds 23:01 (quit) mithos28: Quit: mithos28 23:01 (join) mithos28 23:02 (join) realitygrill_ 23:04 (quit) realitygrill: Ping timeout: 260 seconds 23:04 (nick) realitygrill_ -> realitygrill 23:08 (quit) neilv: Ping timeout: 260 seconds 23:29 (quit) realitygrill: Read error: Connection reset by peer 23:30 (join) neilv 23:30 (quit) neilv: Changing host 23:30 (join) neilv 23:30 (join) realitygrill 23:39 (quit) dmac: Ping timeout: 258 seconds 23:50 (quit) neilv: Quit: Leaving