00:00 (quit) Aune: Quit: L?mnar 00:03 (quit) greghendershott: Quit: Leaving. 00:12 (join) mizu_no_oto 00:33 (join) mye 00:37 (quit) SamB_MacG5: Remote host closed the connection 00:38 (join) SamB_MacG5 00:39 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 00:52 (join) mizu_no_oto 00:52 (join) Kaylin 00:56 (quit) mizu_no_oto: Client Quit 01:06 (quit) bjz: Quit: Leaving... 01:25 (quit) crundar: Ping timeout: 276 seconds 01:35 (join) crundar 01:46 (quit) ambrosebs: Ping timeout: 260 seconds 01:56 (join) ambrosebs 02:13 (quit) ambrosebs: Ping timeout: 256 seconds 02:15 (quit) dnolen: Remote host closed the connection 02:16 (join) bjz 02:29 (quit) bjz: Quit: Leaving... 02:41 (join) dyoo 02:41 (quit) dyoo: Client Quit 02:48 (join) bjz 03:37 (quit) scott_: Quit: Leaving 03:47 (join) cdidd 03:52 (quit) jonrafkind: Ping timeout: 252 seconds 04:19 (quit) bjz: Quit: Bye! 04:31 (quit) Kaylin: Read error: Connection reset by peer 04:38 (quit) mye: Ping timeout: 252 seconds 04:52 (quit) mithos28: Quit: mithos28 04:53 (join) mithos28 04:53 (quit) mithos28: Client Quit 05:34 (join) bitonic 06:11 (join) bjz 06:24 (quit) bitonic: Remote host closed the connection 06:26 (join) bitonic 06:36 (join) mye 07:10 (quit) mye: Ping timeout: 256 seconds 07:19 (join) mceier_ 07:19 (quit) mceier: Disconnected by services 07:19 (nick) mceier_ -> mceier 07:22 (join) masm 07:22 (join) MayDaniel 07:27 (quit) MayDaniel: Ping timeout: 256 seconds 07:30 (join) MayDaniel 07:31 (join) mye 07:36 (quit) mye: Ping timeout: 256 seconds 08:20 (join) nathanpc 08:27 (join) greghendershott 08:31 (join) bitonic` 08:33 (quit) bitonic: Ping timeout: 256 seconds 10:11 (join) jeapostrophe 10:11 (quit) jeapostrophe: Changing host 10:11 (join) jeapostrophe 10:31 (join) anRch 10:37 (quit) wtetzner: Ping timeout: 260 seconds 10:38 (join) wtetzner 11:07 (join) laszlokorte 11:07 laszlokorte: Hi, anybody here? 11:08 offby1: z 11:08 offby1: nobody here but us zombie processes. 11:11 laszlokorte: I am starting to learn racket at school and the first task is to build a function to convert degrees into cardinal direction names. The task is not very precise in terms of to which fraction the function should work. The stupidest solution would be to use a if-clause with 16 or 32 cases. But I guess there is a more clever way with some recursion or something? Any hints? 11:13 (join) mizu_no_oto 11:14 offby1: actually I can't think of any way that's fundamentally better than your "stupid" way. 11:15 laszlokorte: I would assume it would be shorter in code (?) 11:16 (join) mithos28 11:17 laszlokorte: something like in the first step i decide between N E S and W and the I call the function recursively with the rest of the degree and get N E S or W again. so I get something like NE or SW and so on NNW, NEbE... 11:18 (quit) greghendershott: Quit: Leaving. 11:19 offby1: I'd do it something like this: http://ix.io/3iP 11:20 offby1: I didn't think to do it recursively, but you might be on to something there. 11:20 offby1: If the names of the directions are themselves recursively structured ... 11:25 laszlokorte: oh, thank you, the recursive thing was more an general idea of mine because I assumed the naming structure is kind of recursive but it could be wrong 11:26 offby1: I've never thought about it, but it's intriguing. 11:26 offby1: if you pulled that off, I suspect your teacher will be impressed. 11:32 laszlokorte: hm ok, thank you 11:32 laszlokorte: is there a function giving me a position of one string in another? 11:33 laszlokorte: In other languages like ruby or php it would be called strpos 11:38 (quit) bjz: Quit: Bye! 11:39 offby1 ponders 11:39 offby1: probably :) 11:39 offby1: you need to get familiar with http://docs.racket-lang.org/ -- it's pretty good 11:40 offby1: certainly you can do a regular-expression match 11:40 offby1: that's probably the official way. 11:43 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 11:43 (quit) masm: Quit: Leaving. 11:45 (join) masm 11:45 offby1: this will probably do for "strpos", if there isn't already something better built in: http://ix.io/3iQ 11:46 offby1: oops, s/car/caar/ 11:48 (join) mizu_no_oto 11:55 (quit) mithos28: Quit: mithos28 11:57 (join) mithos28 11:58 laszlokorte: I do not like this code :D https://gist.github.com/4007699 11:59 offby1: me neither 11:59 offby1: the two functions are too similar. 11:59 chandler: Make it a macro! 11:59 offby1: it's probably easy to combine them into one. 12:00 offby1: chandler: now he has two problems! 12:00 offby1: what you want is a leetle tiny database of strings->numbers, which can also work the other way. 12:00 (nick) bitonic` -> bitonic 12:00 offby1: an alist would be fine. 12:00 chandler: Yeah, you don't actually need a macro. The pattern is pretty simple, and you could just generate two hash tables (one for each direction) 12:00 offby1: *gasp* 12:01 offby1 is aesthetically shocked 12:01 offby1: I personally wouldn't bother with two hash tables with such a small set of data, but sure. 12:01 chandler is aesthetically shocked by alists. 12:01 offby1: as long as you only spell out the constants _once_ and initialize _twice_. 12:02 chandler: You shouldn't need to spell out the constants at all. 12:02 offby1: chandler: didn't you ever read that thing about Richard Feynman sitting in on one of Doug Hofstadter's lectures? I keep coming back to that ... Feynman kept giving deliberately stupid answers to Hofstadter's problems, and claiming that they were excellent answers. I admire that. 12:02 offby1: Alists are deliberately stupid. 12:02 chandler: No, this I did not read, but it sounds amusing. 12:03 chandler: It's not the data structure so much as the process of working with them. 12:03 (quit) anRch: Quit: anRch 12:04 chandler: (Unless there's some procedure roughly equivalent to `hash-ref' for alists which I don't know about.) 12:04 mithos28: dict-ref? 12:05 offby1 nods gravely 12:06 chandler: Ah, that'd be it. 12:09 offby1: I suspect the thing to do is: first figure out the relevant quadrant. Then figure out which -third- of the quadrant you're in. 12:09 offby1: put the quadrants into a circular list, like this: N-E-S-W-N-E-S-W- ... 12:10 offby1: if you're in the middle third of a quadrant, then the resulting string is just the quadrant's name ... 12:10 offby1: otherwise it's the quadrant's name followed by "by" and then the name of the adjacent quadrant. 12:10 offby1: Or something like that. 12:10 offby1 leaves the rest as an exercise for the reader 12:20 (quit) andres-v: Read error: Connection reset by peer 12:27 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 12:45 (join) untrusted 12:48 (join) mizu_no_oto 12:59 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 13:08 (quit) mithos28: Quit: mithos28 13:15 (join) mye 13:19 (join) nilyaK 13:20 (quit) jrslepak: Quit: What happened to Systems A through E? 13:20 (part) crundar: "ERC Version 5.3 (IRC client for Emacs)" 13:38 (nick) hyko- -> hyko 13:40 (join) mithos28 13:43 (join) mceier 13:47 (join) mizu_no_oto 13:54 (quit) mye: Quit: mye 13:59 (join) spanner_ 14:02 (join) tewk_ 14:05 (join) jaaso_ 14:06 (quit) sid0: *.net *.split 14:06 (quit) spanner: *.net *.split 14:06 (quit) jaaso: *.net *.split 14:06 (quit) tewk: *.net *.split 14:15 (join) jrslepak 14:16 (join) mye 14:17 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 14:33 (join) mizu_no_oto 14:35 (quit) untrusted: Remote host closed the connection 14:51 (quit) mithos28: Quit: mithos28 14:55 (join) RacketCommitBot 14:55 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/KEuugA 14:55 RacketCommitBot: racket/master c375042 Robby Findler: fix test so that labels can be regexps (as was already... 14:55 RacketCommitBot: racket/master e1760fa Robby Findler: add find-labelled-windows 14:55 RacketCommitBot: racket/master 5768009 Robby Findler: Revise the language dialog to emphasize the teaching... 14:55 (part) RacketCommitBot 15:17 (join) scott_ 15:17 (quit) scott_: Changing host 15:17 (join) scott_ 15:19 (join) mithos28 15:29 (quit) jrslepak: Quit: What happened to Systems A through E? 15:34 (join) nilyaK1 15:37 (quit) nilyaK: Ping timeout: 240 seconds 15:51 (quit) nilyaK1: Read error: Connection reset by peer 15:52 laszlokorte: any racket plugin for sublime text 2? 15:52 (join) jrslepak 15:52 stamourv: laszlokorte: Not that I know of. 15:56 (quit) mithos28: Quit: mithos28 16:03 mye: so, after coding for three nights straight in drracket my mouse hand hurts. What I need is an eye-focus tracker plugged in to the computer that activates syntax arrows when I look at an identifier! 16:06 stamourv: Sounds like an awesome PLaneT package. ;) 16:16 (join) mithos28 16:33 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 16:36 (join) sizz_ 16:37 (quit) sizz: Ping timeout: 265 seconds 16:47 (quit) mithos28: Quit: mithos28 16:49 (join) mithos28 16:52 (join) RacketCommitBot 16:52 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/XK8Vhg 16:52 RacketCommitBot: racket/master 77fb5ec Robby Findler: working on something to show derivations 16:52 RacketCommitBot: racket/master 4669b6b Robby Findler: adjust tests for the new language dialog... 16:52 (part) RacketCommitBot 16:52 (join) RacketCommitBot 16:52 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/gGrrPg 16:52 RacketCommitBot: racket/master a6384e7 Robby Findler: Oops, didn't mean to push this one... 16:52 (part) RacketCommitBot 17:37 (join) RacketCommitBot 17:37 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/pSjhzg 17:37 RacketCommitBot: racket/master 6ab4085 Danny Yoo: documentation: adding data/heap examples 17:37 (part) RacketCommitBot 17:39 (join) Kaylin 17:40 (join) RacketCommitBot 17:40 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/SfP7Tg 17:40 RacketCommitBot: racket/master 4901c67 Danny Yoo: documentation: correcting my broken example for heap-copy 17:40 (part) RacketCommitBot 17:43 (join) dyoo 17:49 (join) mizu_no_oto 17:54 (join) anRch 17:57 dyoo: Is there a link from the wiki at https://github.com/plt/racket/wiki on the racket-lang home page? (Discoverability concern.) 18:00 (quit) dyoo: Quit: dyoo 18:04 dca: What can be an issue if in geiser pressing C-x C-e does not send eval to repl? 18:04 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 18:05 dca: it just prints the result in minibuffer and that's it 18:10 dca: output appears in *geiser dbg* 18:21 stamourv: dca: Have you tried the geiser mailing list? 18:21 (join) Shviller 18:25 dca: stamourv: not yet. i thought that could be the default behaviour. is it? 18:26 stamourv: I don't know, I don't use geiser. 18:26 stamourv: But I really should. 18:26 stamourv: Trying it has been on my to-do list for a while. 18:34 (quit) nathanpc: Ping timeout: 240 seconds 18:37 (join) nathanpc 18:39 (join) mizu_no_oto 18:39 (join) bitonic 18:49 (quit) anRch: Quit: anRch 18:49 (quit) mithos28: Quit: mithos28 18:53 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 18:58 (join) mizu_no_oto 19:01 offby1: it's pretty good. 19:01 offby1: also, jao is helpful and (used to be, anyway) frequently available. 19:16 (quit) jeapostrophe: Ping timeout: 252 seconds 19:32 (quit) MayDaniel: Read error: Connection reset by peer 19:45 (quit) mceier: Quit: leaving 19:47 (join) adu 19:48 (join) mceier 19:52 (join) ormaaj 20:04 (join) greghendershott 20:16 (join) mithos28 20:26 (quit) mithos28: Quit: mithos28 20:31 (quit) adu: Quit: adu 20:31 (join) RacketCommitBot 20:31 RacketCommitBot: [racket] plt pushed 10 new commits to release: http://git.io/S8zXxA 20:31 RacketCommitBot: racket/release 7c49cd5 Ryan Culpepper: fix doc typo... 20:31 RacketCommitBot: racket/release fd81d53 Matthew Flatt: fix error-message code... 20:31 RacketCommitBot: racket/release 8bffa07 Matthias Felleisen: basic history, please merge... 20:31 (part) RacketCommitBot 20:42 (join) mithos28 20:43 (join) adu 20:45 (join) jeapostrophe 20:56 (quit) jeapostrophe: Ping timeout: 260 seconds 20:58 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 21:08 (join) dsevilla 21:08 dsevilla: guys, I have a problem with typed/racket 21:08 dsevilla: I'm just starting to learn, and tried the first example 21:09 dsevilla: the "distance" function with the type specification for x and y to be "Real" fails in sqrt, because it expects Real and gets Number 21:09 dsevilla: any hints? 21:10 dsevilla: should I just set distance to treat Number instead of Real? 21:10 dsevilla: I just took the example code in the typed/racket documentation 21:27 (join) wtetzner_ 21:33 (quit) mithos28: Quit: mithos28 21:35 (quit) dsevilla: Remote host closed the connection 21:37 mye: gah why is drracket allocating (leaking?) so much memory… it was at over 2GB yesterday :\ 21:38 mye: I did set the memory to unlimited but I think that's for running the programs ?!? 21:40 (quit) bitonic: Ping timeout: 244 seconds 21:49 asumu: Color theory is cool. https://github.com/takikawa/pict-utils/blob/master/ryb.rkt <-- try requiring the 'samples' submodule 21:50 (quit) greghendershott: Quit: Leaving. 21:57 (join) mithos28 22:06 mye: are there other ways to prepend something to input-port P than to (input-port-append #t P2 P) ? I can't get this to work in a lexer (it doesn't see the bytes in P2) 22:07 mye: ah, that would be because I didn't set! it... 22:09 (join) jonrafkind 22:11 (quit) adu: Quit: adu 22:22 (join) Nisstyre-laptop 22:35 (quit) masm: Quit: Leaving. 22:38 (quit) mithos28: Quit: mithos28 22:38 (quit) sizz_: Remote host closed the connection 22:39 (join) sizz 22:40 (quit) cdidd: Ping timeout: 260 seconds 23:03 (quit) Nisstyre-laptop: Quit: Leaving 23:06 (join) Nisstyre-laptop 23:06 (join) didi 23:13 (join) jeapostrophe 23:13 (quit) jeapostrophe: Changing host 23:13 (join) jeapostrophe 23:16 (join) crundar 23:25 (quit) Nisstyre-laptop: Ping timeout: 255 seconds 23:27 (join) Nisstyre-laptop 23:40 (join) dnolen 23:45 (quit) wtetzner_: Remote host closed the connection 23:45 (quit) wtetzner: Remote host closed the connection