00:17 (join) dgs 00:18 dgs: does racket have a string-contains function? I thought it did, but I can't find any reference to it any where in the help desk 00:19 jonrafkind: theres regex functions, which is a close seond 00:19 jonrafkind: second 00:19 dgs: i need a function like that (i think) for exercise 139 in HTDP 2ed 00:19 dgs: i was going to try and write my own, but I think that may be beyond the scope of what they were intending for the lession 00:19 dgs: lesson even 00:20 dgs: hmm 00:20 dgs: that sounds more like it 00:20 (quit) jeapostrophe: Quit: jeapostrophe 00:22 jonrafkind: you could do this exercise with string->list and check characters 00:23 jonrafkind: all you really need to do is get a character at a position 00:30 (quit) realitygrill: Read error: Connection reset by peer 00:33 (join) realitygrill 00:48 dgs: yeah 00:48 dgs: that's what I thinking 00:48 dgs: but you'd need to do a full check thru all the characters in the search string 00:49 dgs: which didn't seem too hard 00:49 dgs: just seemed a lot more effort than the rest of the questions around it 00:49 dgs: so thought I may be overlooking something obvious =) 00:49 jonrafkind: well certainly there are optimal ways of searching through strings for substrings 00:49 jonrafkind: grep does a lot of fancy things 00:50 jonrafkind: but for this exercise its fine 01:01 dgs: cool. 01:01 dgs: ok thanks for your help =) 02:07 eli: jonrafkind: "treat #\return like #\newline" sounds dangerous. 02:09 jonrafkind: well.. it was mostly just a hack because matthew wanted to run honu on windows 02:09 jonrafkind: basically anywhere I had "\n" i added "\r" 02:09 jonrafkind: whats the danger you are thinking of? 02:09 eli: Places where newlines matter. 02:09 jonrafkind: and it ended up being in two places I think 02:09 jonrafkind: it goes \r\n right? 02:10 eli: Yes. 02:10 jonrafkind: the only time newlines matter right now is in line comments, which should always end with \n 02:10 eli: IOW, the regexp should be #rx"(\r\n|\n)" 02:10 jonrafkind: any trailing \r's just get treated as whitespace 02:10 eli: Or better: #rx"\r?\n" 02:10 jonrafkind: the line comment chews up all characters until it hits \n 02:11 eli: So that's fine by accident. 02:11 jonrafkind: heh yea, i considered that case 02:11 jonrafkind: its not (or "\r" "\n"), maybe thats the danger you meant 02:11 eli: I'm assuming that you didn't mean to make it compatible with Mac Classic text files... 02:11 jonrafkind: err whats that :p 02:12 eli: Yes, it's not #rx"[\r\n]" 02:12 eli: Here's another example: 02:12 eli: if you want to count the number of lines in a string, 02:12 eli: then "foo\r\nbar" should have two lines. 02:12 eli: Treating \r like \n wouldn't be right. 02:12 jonrafkind: right 02:13 eli: In the Mac Classic world, \r are newlines. 02:13 jonrafkind: hilarious 02:13 eli: Makes things a total mess, so it's good to ignore. 02:13 jonrafkind: actually i have a completely separate program where I think I did \r == \n, so ill fix that 02:14 jonrafkind: (completely unrelated to racket) 02:14 eli: Yeah, that's why I said that it sounds dangerous. 02:14 eli: Its the kind of assumption that works for a good while, then bites you in a very hard to find way, and when you fix it it can be a maintenance disaster. 02:16 (quit) realitygrill: Read error: Connection reset by peer 02:18 (join) realitygrill 02:42 (join) hkBst 03:11 (quit) flaggy: Ping timeout: 245 seconds 03:38 (join) masm 03:55 (quit) jonrafkind: Ping timeout: 276 seconds 04:06 (join) mceier 04:24 (join) neilv 04:42 (join) noelw 05:39 (join) Burlingk 06:13 (join) MayDaniel 06:48 (quit) MayDaniel: Read error: Connection reset by peer 06:49 (quit) realitygrill: Quit: realitygrill 07:21 (quit) dgs: Ping timeout: 264 seconds 07:21 (join) jeapostrophe 07:47 (join) dgs_ 07:56 (join) RacketCommitBot 07:56 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/ZlECjg 07:56 RacketCommitBot: [racket/master] db: added #:use-place arg for ffi-based connections - Ryan Culpepper 07:56 RacketCommitBot: [racket/master] db: fixed kill-safe-connection, improved tests - Ryan Culpepper 07:56 RacketCommitBot: [racket/master] db: improved locking - Ryan Culpepper 07:56 (part) RacketCommitBot 08:06 (quit) bfulgham: Read error: Connection reset by peer 08:08 (join) bfulgham 08:09 (quit) mceier: Quit: leaving 08:15 (join) mceier 09:14 (quit) jeapostrophe: Quit: jeapostrophe 09:20 neilv: looks like mcfly will work. http://i.imgur.com/lloG5.png 09:22 neilv: next step is to add support for "doc Procedure". basically, you *can* put the entire contract in the "doc" form, but if you just put an identifier there, it will use the contract from the code, adapt typed racket info, or try to find the lamba for the procedure and kludge up any/c contract 09:22 ohwow: what does McFly do? 09:22 neilv: mcfly is a convenient way to embed the entire documentation for your planet package in with the code, sorta like javadoc 09:23 noelw: heh. looks fun. 09:24 neilv: for the people who like interspersing docs with code, it's a win. other people will just edit their .scrbl file directly 09:30 (join) anRch 09:30 neilv: you'll also be able to generate your info.rkt from this info for most simple packages. including the release notes info from the "doc History" form 09:40 noelw: what window manager do you use, neilv? 09:40 (quit) davidmitchell: Quit: davidmitchell 09:42 (quit) noelw: Quit: noelw 09:42 (join) jeapostrophe 09:42 neilv: fvwm with a bunch of old modifications of mine 10:11 (join) realitygrill 10:13 ohwow: why xchat? 10:15 neilv: i don't irc much, and it works as a tiny window 10:17 neilv: it beats running http://www.neilvandyke.org/edgeirc/ 10:17 (quit) anRch: Quit: anRch 10:22 ohwow: :) 10:22 ohwow: emacs has an irc client too 10:23 neilv: i've used it and hacked it 10:24 ohwow: cool 10:24 ohwow: which one? erc/ 10:24 neilv: yes 10:25 neilv: but i guess these things aren't really on-topic for racket 10:29 ohwow: oh, sorry 10:30 neilv: i am very good at taking things off-topic 10:36 neilv: bbl 10:36 (quit) neilv: Quit: Leaving 10:44 (quit) jeapostrophe: Quit: jeapostrophe 10:55 (nick) samth_away -> samth 10:57 samth: ohwow, neilv: off-topic discussion is fine 10:59 (join) anRch 11:10 (quit) jao: Ping timeout: 245 seconds 11:12 (quit) hkBst: Read error: Connection reset by peer 11:13 (join) jonrafkind 11:20 (join) francisl 11:21 (quit) francisl: Client Quit 11:25 (quit) realitygrill: Ping timeout: 245 seconds 11:26 (join) realitygrill 11:39 offby1: I'm using ERC Version 5.3 with GNU Emacs 23.1.1 (i386-redhat-linux-gnu, multi-tty) of 2011-01-16. 11:39 offby1: just sayin' 11:40 samth: offby1: the real question is, what IRC client does rudybot endorse? 11:43 offby1: let's ask 11:43 offby1: rudybot: boxers or briefs? 11:43 rudybot: offby1: so would that look like (setq w32-apps-modifier 'hyper) or (setq w32-apps-modifier "hyper") ? 11:43 offby1: samth: there you go 11:47 samth: offby1: where did it get that string? 11:48 offby1: samth: it logs everything. Then, when I say something to it that isn't one of its few built-in commands (like "source", e.g.), it splits what I say up into words; searches its logs for those words; chooses the word which appears the fewest times in the log; then randomly picks a string that contains that rare word. 11:49 offby1: so in the above, apparently it chose the word "or". 11:50 (join) dnolen_ 11:50 (quit) dnolen_: Client Quit 11:53 (join) RacketCommitBot 11:53 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/fjPM7g 11:53 RacketCommitBot: [racket/master] fix "GRacketCGC.app" install - Matthew Flatt 11:53 RacketCommitBot: [racket/master] use closesocket() etc. for scheme_close_socket_fd() - Matthew Flatt 11:53 RacketCommitBot: [racket/master] fix printed form of place channels - Matthew Flatt 11:53 (part) RacketCommitBot 11:55 (join) dnolen 11:55 (quit) dnolen: Client Quit 11:56 (join) MayDaniel 11:58 (join) jeapostrophe 11:58 (quit) blomqvist: Quit: Heroes die once, Cowards live longer! 12:00 (quit) realitygrill: Ping timeout: 264 seconds 12:01 (join) realitygrill 12:02 (join) abbe 12:10 (quit) anRch: Quit: anRch 12:17 (join) anRch 12:22 (join) dnolen 12:30 (join) RacketCommitBot 12:30 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/isTenQ 12:30 RacketCommitBot: [racket/master] Fixes handling of pattern variables that look like metafunctions - Casey Klein 12:30 (part) RacketCommitBot 12:32 (quit) anRch: Read error: Connection reset by peer 12:33 (join) anRch 12:37 (join) neilv 12:37 (join) anRch_ 12:38 (quit) anRch: Ping timeout: 240 seconds 12:38 (nick) anRch_ -> anRch 12:40 (join) RacketCommitBot 12:40 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/bvphhw 12:40 RacketCommitBot: [racket/master] Use reference implementation for srfi/11. - Sam Tobin-Hochstadt 12:40 (part) RacketCommitBot 12:48 (join) anRch_ 12:49 (quit) MayDaniel: Read error: Connection reset by peer 12:49 (quit) anRch: Ping timeout: 245 seconds 12:49 (nick) anRch_ -> anRch 12:52 (quit) anRch: Read error: Connection reset by peer 12:53 (join) anRch 13:00 (quit) anRch: Ping timeout: 264 seconds 13:00 (join) blake_johnson 13:09 (join) anRch 13:11 (quit) anRch: Read error: Connection reset by peer 13:13 (join) anRch 13:23 (quit) anRch: Ping timeout: 250 seconds 13:28 (join) RacketCommitBot 13:28 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/kCr1FQ 13:28 RacketCommitBot: [racket/master] Move interactive helpers away from prims.rkt. - Vincent St-Amour 13:28 RacketCommitBot: [racket/master] Remove useless requires. - Vincent St-Amour 13:28 (part) RacketCommitBot 13:41 (quit) dnolen: Ping timeout: 252 seconds 13:41 neilv: i can't imagine life without quasisyntax/loc 13:42 stamourv: Agreed. It's a must for writing friendly macros. 13:47 (join) dnolen 13:55 (quit) abbe: Quit: Heroes die once, Cowards live longer! 13:58 (quit) dnolen: Ping timeout: 252 seconds 13:58 (join) abbe 14:04 (join) RacketCommitBot 14:04 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/fzT5_w 14:04 RacketCommitBot: [racket/master] adjust timeout for planet tests to 2x the number of seconds it takes to run - Robby Findler 14:04 (part) RacketCommitBot 14:17 (join) turbofail 14:19 (quit) neilv: Quit: Leaving 14:29 (join) MayDaniel 14:30 (join) RacketCommitBot 14:30 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/L3dDKw 14:30 RacketCommitBot: [racket/master] Fix the Compiled-Non-Module-Expression type. - Vincent St-Amour 14:30 (part) RacketCommitBot 14:34 eli: rudybot: Do you like M113 ? 14:34 rudybot: eli: right, or I could use C-u M-| on the region 14:35 eli: rudybot: Do you like M113 ? 14:35 rudybot: eli: (module m scheme 14:35 eli: rudybot: Do you like M113 ? 14:35 rudybot: eli: M-: load-path? 14:35 eli: offby1: So it doesn't leak private conversations? 14:51 (join) realitygrill_ 14:51 (quit) realitygrill: Ping timeout: 245 seconds 14:51 (nick) realitygrill_ -> realitygrill 15:30 (join) JoelMcCracken 15:34 (join) anRch 15:34 bfulgham: eli: I've been away for a long Lisp winter. So I'm just now getting back in touch. 15:34 bfulgham: eli: Is the new 'places' stuff meant to be an Erlang-ish concurrency system? 15:35 eli: bfulgham: Welcome back then! 15:36 eli: bfulgham: No -- places are the heavyweight share-nothing solution. There's also `future' which is a more lightweight share-nothing thing, 15:36 eli: but to do a lot of threads you'd probably want just plain `thread', which is the same green thread thing that you remember from before the winter. 15:40 (quit) MayDaniel: Read error: Connection reset by peer 15:45 (quit) jeapostrophe: Quit: jeapostrophe 15:47 (part) blake_johnson 15:55 (quit) JoelMcCracken: Ping timeout: 252 seconds 16:01 (quit) realitygrill: Ping timeout: 245 seconds 16:01 (join) realitygrill 16:34 (join) RacketCommitBot 16:34 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/O-UACQ 16:34 RacketCommitBot: [racket/master] Fix flag name in raco exe docs. - Vincent St-Amour 16:34 (part) RacketCommitBot 16:54 (join) RacketCommitBot 16:54 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/0BPxMQ 16:54 RacketCommitBot: [racket/master] Use the right Scribble form for flags. - Vincent St-Amour 16:54 (part) RacketCommitBot 16:54 jonrafkind: stamourv, im starting to think a single push per day should be the norm, not that im annoyed with your recent commits or anything 16:55 jonrafkind: but since it works out nicely with git I think its a good flow 16:56 stamourv: Well, in this case, at the time of each of these pushes, I didn't even know I would be doing the next one. 16:58 jonrafkind: well true, but you could wait till shortly before you leave to push 16:58 jonrafkind: or before bed or something 17:02 stamourv: I could, but I don't see the point. In the case of adding features, sure, but in the case of fixes, the sooner the better, IMO. 17:03 jonrafkind: the only real downside is it slows drdr down 17:05 (quit) anRch: Read error: Connection reset by peer 17:06 (join) anRch 17:09 stamourv: jonrafkind: We gotta keep Blake's office nice and warm ;). 17:12 jonrafkind: man its hot here.. 17:12 jonrafkind: although possibly not as hot as boston :p 17:19 stamourv: Eh, it's 73 right now. 17:19 jonrafkind: oh so pretty reasonable 17:24 (quit) realitygrill: Read error: Connection reset by peer 17:26 (join) realitygrill 17:29 (join) MayDaniel 17:35 (quit) shofetim: Remote host closed the connection 17:37 (quit) anRch: Quit: anRch 17:53 samth: eli: `future' is not shared-nothing 17:53 samth: and places are very very erlang-ish, but heavier-weight 17:56 samth: bfulgham: places are like erlang in their concurrency model 17:57 samth: but they're intended to basically be 1-per-processor 17:59 (join) jeapostrophe 18:04 (quit) jeapostrophe: Client Quit 18:05 (join) jeapostrophe 18:06 (quit) jeapostrophe: Client Quit 18:08 (quit) MayDaniel: 18:26 (join) blake_johnson 18:30 (join) jao 18:44 (quit) kennyd: Ping timeout: 245 seconds 18:47 (quit) blake_johnson: Quit: blake_johnson 18:50 (join) kennyd 18:52 (quit) mceier: Quit: leaving 19:09 (nick) samth -> samth_away 19:13 (join) mg4001 19:16 (quit) ryanaghdam: Quit: Lost terminal 19:20 (join) flaggy_ 19:24 (join) jeapostrophe 19:27 (quit) jeapostrophe: Client Quit 19:33 (quit) masm: Quit: Leaving. 19:35 (quit) realitygrill: Read error: Connection reset by peer 19:36 (join) realitygrill 19:55 (join) dnolen 20:03 (quit) sethalves: Ping timeout: 260 seconds 20:04 (join) jeapostrophe 20:05 (quit) jeapostrophe: Client Quit 20:05 (join) RacketCommitBot 20:05 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/XMDI0w 20:05 RacketCommitBot: [racket/master] adjust debugger to print smaller version of values to improve performance - John Griffin 20:05 RacketCommitBot: [racket/master] add some ellipses to the debugger value truncation - Robby Findler 20:05 RacketCommitBot: [racket/master] fixed a leak in the compile locking protocol implementation and added better logging - Robby Findler 20:05 (part) RacketCommitBot 20:06 (join) realitygrill_ 20:08 (quit) realitygrill: Ping timeout: 240 seconds 20:08 (nick) realitygrill_ -> realitygrill 20:29 offby1: eli: I'm honestly not sure, off the top of my head, if rudybot leaks private conversations. I'm 75% sure that I _intended_ it not to. 20:39 (quit) jonrafkind: Read error: Operation timed out 20:53 (join) jeapostrophe 21:27 (join) RacketCommitBot 21:27 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/jpEEUA 21:27 RacketCommitBot: [racket/master] added one more log line - Robby Findler 21:27 (part) RacketCommitBot 21:44 (join) sethalves 21:54 (part) mg4001: "Leaving" 22:15 (quit) turbofail: Ping timeout: 258 seconds 22:20 eli: offby1: Looks like it doesn't. 22:20 eli: samth_away: You don't need to set the responsible person if it's the default for the category. 22:20 eli: samth_away: Re "shared-nothing", that was an obvious typo. 22:21 eli: samth_away: And re places vs erlang, I think that erlangers would consider the super-lightweightedness of them to be a major feature. 22:28 (join) RacketCommitBot 22:28 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/lRxG5w 22:28 RacketCommitBot: [racket/master] Added let and define forms that generalize let-values, let*-values and define-values - James Ian Johnson 22:28 RacketCommitBot: [racket/master] Implemented Sam's suggested changes for new forms, and added a new match/values form. - James Ian Johnson 22:28 RacketCommitBot: [racket/master] Fixed the duplicate identifier bug in match-define-values and changed identifiers to conform to naming conventions. - James Ian Johnson 22:28 (part) RacketCommitBot 22:29 offby1: yay 22:35 (quit) jao: Ping timeout: 245 seconds 23:18 (join) RacketCommitBot 23:18 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/_HGNwA 23:18 RacketCommitBot: [racket/master] adjust drracket so that it copies the definitions text before evaluating it - Robby Findler 23:18 (part) RacketCommitBot 23:21 (join) shofetim 23:33 (join) jonrafkind 23:49 (quit) dnolen: Quit: dnolen