00:13 askhader: Have any of you succsessfuly managed to use net/pop3 or net/imap ? 00:19 offby1: I think one of the PLT devs uses some racket app as his primary email, which suggests he successfully uses one or the other of those 00:20 askhader: I ought to write to the mailing list. Two lines of code straight from the documentation produce a regexp-match error from one of the source files. 00:22 offby1: indeed, that does sound like a mailing list type of question 00:29 (quit) mheld: Quit: mheld 00:31 mwolfe: Hopefully easy question here. I'm trying to write a tcp-listener, but I want it to listen for connections and handle them on a different thread. This means I need to pass the input-port and output-port into the function handling the connection. Do I use call/cc to wrap up the arguments so that thread can all the no-arg function produced by call/cc? Am I looking in the wrong direction? 00:41 mwolfe: Hmmm...I just may have been way overthinking that...nm. 00:44 mwolfe: I think I'm tired, that was a very simple question to solve...thanks though. 00:45 offby1: heh 00:50 (join) danking 00:51 danking: So why is "mzlib/etc" a "Legacy Racket Library"? 00:51 danking: Is there another way to get `this-expression-source-directory' without using `define-runtime-path'? 00:54 Lajla: Assuming a purely functional language call/cc cannot be a function right? 00:54 Lajla: It has to be some special form or whatever because it's not referentially transparent, right? 00:57 (join) jonrafkind 01:00 (join) somnium 01:18 (quit) mwolfe: Remote host closed the connection 02:55 (quit) jonrafkind: Ping timeout: 264 seconds 04:16 (join) mceier 05:04 (join) heeki 05:05 heeki: Is there any reason not to change "define" to "def"? 05:14 Lajla: People like long names. 05:14 Lajla: I think def suffices. 05:14 Lajla: But hey 05:14 Lajla: I don't make the rules. 05:14 Lajla: Might as well make let local-block 05:14 Lajla: cons construct 05:14 Lajla: Why not pair really. 05:14 Lajla: I mean you have string, string? vector, vector? list, list? et cetera. 05:15 Lajla: Why not pair and pair? 05:15 Lajla: They already removed the original consp that was in use before that, why not make it complete. 05:16 heeki: Who likes long names though? Have you ever talked to somebody who actually prefers the longer name? 05:16 heeki: I think it's a significant thing that hinders the usability of the langauge 05:16 Lajla: Oh, jonrafkind isn't arouynd. 05:17 Lajla: Well, if you ever see him. 05:17 Lajla: I had endless debates with him about this. 05:17 Lajla: I think long names are indeed harder to read, he thinks the inverse. 05:17 Lajla: He says it makes inferring the function of a symbol hard if you use cryptic short names like 'strcpy' 05:17 Lajla: I think that you should never infer how it works from the name anyway and should just rtfm to begin with. 05:18 Lajla: In fact 05:18 Lajla: I think names should be kind of obfuscated in that way 05:18 Lajla: to force people toa ctually look up what stuff does before using it. 05:18 Lajla: Soooo many bugs have come from people just assuming how stuff works from the name and not looking it up. 05:19 Lajla: 'why doesn't my code work?' someone on stackoverflow asked, 'Well, because append doesn't mutate any of its arguments, it returns a new list!', someone on stackoverflow replied. 05:20 heeki: Is there a Racket function similar to emacs' describe-function? 05:20 Lajla: What does emoacs' describe-function do? 05:21 heeki: displays documentation associated with function. 05:21 heeki: Like if I want to know what a function does, I just press C-h f, type in the function name and hit enter. 05:21 heeki: To view documentation and a link to the source. 05:22 Lajla: I have no idea, I don't know it at the least. 05:22 Lajla: I think I had some discussion here once about the lack of docstrings or whatnot. 05:23 Lajla: This is because scheme users are academic elitist twits who have their Ph.D's stuck up their behind and don't care for practicality and enjoy bleeding fingers to death on long names. But yeah, we do understand call/cc. 05:23 Lajla: Call/cc is my chick magnet. 05:24 Lajla: I'm like 'Yo babe, can I buy you a drink, and even if it fails, don't worry, I used call/cc beforehand, I'll just jump back in and try anoher pickup line', and she's all over me. 05:28 heeki: I'm guessing there was another debate about 'call/cc' vs. callcc? 05:28 heeki: or ccc? 05:28 Lajla: No doubt. 05:29 Lajla: I think guille doesn't support call/cc and only call-with-current-continuation. 05:29 Lajla: I never need to cut my nails, they are trimmed just by typing that all day. 05:33 Lajla: I'm perfectly fine with stuff like this (def (vec . xs) (let* ((the-len (len xs)) (the-vec (mkvec the-len))) (let recur ((k 0) (xs xs)) (when (< k the-len) (vecset! the-vec k (car xs)) (recur (incr k) (cdr xs))))) the-vec))) 06:18 (topic) -: Racket -- http://racket-lang.org/ (logs at http://racket-lang.org/irc-logs/ ) 06:18 (names) -: gabot eli masm danking stamourv` heeki mceier somnium offby1 parcs alexsuraci tv|z martinhex Demosthenes asumu askhader em sethalves rapacity Guest74073 clklein fmu sid3k samth Lajla Quetzalcoatl_ certainty spacebat abbe rotty_ @ChanServ cataska mario-goulart bremner mattmight tewk 07:34 (join) MayDaniel 08:07 (join) mheld 08:37 (quit) MayDaniel: Read error: Connection reset by peer 09:55 (join) malky42 09:56 malky42: hey guys, let's say that i'm using racket on windows. is there any key combination that will let me run the definitions window? 09:57 malky42: that is -- without me having to move the mouse and click the run icon? 09:59 askhader: does CTRL+T not work? 10:00 samth: heeki, (help function) at the repl 10:00 samth: or press F1 when your cursor is on `function' 10:01 samth: Lajla, call/cc is indeed not a pure function 10:01 malky42: oops, I think switched off the menus because I wanted to use the emacs-like keys. that's probably why CTRL+T is not work. it does the emacs transpose thing. 10:02 samth: malky42, in that case, there's probably a separate key for "Run" 10:02 samth: malky42, go to Edit/Keybindings 10:02 samth: that should show you the current keybindings 10:05 malky42: okay i found it in the docs it's F5. that's great. btw the automatically closing ] and ) using just the ) is a great touch. 10:05 malky42: not having to press shift 0 10:05 askhader: malky42: What if you don't want a ] ? 10:05 askhader: Urg ignore me, I'm trolling. 10:05 malky42: hahaha 10:06 malky42: got me there 10:06 askhader: The answer is use non-drracket editor 10:09 samth: danking, you should just use `define-runtime-path' 10:20 (join) MayDaniel 10:47 (join) rudybot 11:05 (join) philo 11:12 (join) carleastlund 11:37 philo: racket use 170 MByte doing nothnig , is that normal ? 11:40 (join) jao 11:40 (quit) jao: Changing host 11:40 (join) jao 11:42 (quit) masm: Ping timeout: 272 seconds 11:44 bremner: philo: could be. drracket uses 237M resident here while idle. 11:44 philo: ok 11:44 philo: seems a lot to me 11:44 philo: no ? 11:45 bremner: philo: I don't really know what to compare it to. 11:48 bremner: doing nothing = "running the interpreter", right? 11:50 (join) anRch 11:52 (quit) rudybot: Remote host closed the connection 11:54 (join) rudybot 11:55 philo: yea i guess 11:55 philo: but compered to other REPL like ruby and python it is really big 11:58 bremner: b.t.w. here racket repl is only using 26M resident. More than python, but less than 170M 12:00 (quit) philo: Ping timeout: 265 seconds 12:02 (join) malky42` 12:05 (quit) malky42: Ping timeout: 240 seconds 12:05 (join) mwolfe 12:16 (quit) MayDaniel: Read error: Connection reset by peer 12:20 (quit) anRch: Quit: anRch 12:20 (quit) stamourv`: Quit: ERC Version 5.2 (IRC client for Emacs) 12:21 (join) stamourv 12:31 (join) anRch 12:34 (join) malky42`` 12:35 (join) sunnyps 12:37 (quit) malky42`: Ping timeout: 240 seconds 12:39 (join) jonrafkind 12:40 (quit) sunnyps: Quit: Leaving 12:41 (join) sunnyps 12:42 (quit) sunnyps: Client Quit 12:42 (join) sunnyps_ 12:43 (quit) sunnyps_: Read error: Connection reset by peer 12:43 (join) sunnyps 12:44 (join) MayDaniel 12:45 (quit) sunnyps: Client Quit 12:45 (quit) malky42``: Ping timeout: 240 seconds 12:50 (join) masm 12:54 (quit) MayDaniel: 13:06 (quit) anRch: Quit: anRch 13:29 rapacity: there are alot of spam tickets on this page http://planet.racket-lang.org/display.ss?package=Tray.plt&owner=Dima_ 13:59 (quit) martinhex: Remote host closed the connection 14:05 (join) martinhex 14:20 carleastlund: rapacity, maybe there's just a bug and that package really is supposed to be buying Cialis 14:21 (quit) martinhex: Remote host closed the connection 14:24 (join) anRch 14:25 (join) martinhex 14:41 jonrafkind: how do you say match two lists of the same length in `match' ? 14:41 jonrafkind: [(list a ...1 b ...1) a] or something? 14:43 jonrafkind: ill just use take and drop for now 14:53 jonrafkind: isn't this nice.. c/c++ -> java -> clojure -> racket 14:53 jonrafkind: java was good for something afterall 15:02 (quit) abbe: Read error: Operation timed out 15:22 Demosthenes: *blink* 15:23 Demosthenes: did i hear you say java was good for something? other than spurring sales of high density memory? 15:23 carleastlund: jonrafkind, what do you mean by "clojure -> racket"? 15:33 jonrafkind: they are functional and lispish 15:33 jonrafkind: the jump from clojure -> racket is much smaller than java -> racket or c++ -> racket 15:36 carleastlund: Okay, so by "->" you mean "is similar to", is that correct? It wasn't at all clear from your statement. 15:43 jonrafkind: i meant a sequence of languages you could learn without too much a gap between any two languages 15:44 carleastlund: Personally I would suggest reversing that list, and then possibly pruning it. 15:51 (quit) anRch: Quit: anRch 15:54 clklein: jonrafkind: If you still care, I think you probably can't express that in the `match' pattern language. You could use the (=> id) notation to bind "nevermind, it didn't match" procedure, test the length in the clause RHS, and call the procedure if they don't match. 15:54 jonrafkind: ok 16:08 (quit) martinhex: Remote host closed the connection 16:09 (join) abbe 16:09 (quit) abbe: Changing host 16:09 (join) abbe 16:10 (join) martinhex 16:20 (quit) masm: Ping timeout: 240 seconds 16:38 (join) MayDaniel 16:38 (quit) MayDaniel: Changing host 16:38 (join) MayDaniel 16:42 (join) masm 16:50 (quit) tv|z: Ping timeout: 265 seconds 16:57 (quit) abbe: *.net *.split 16:57 (quit) mwolfe: *.net *.split 16:57 (quit) heeki: *.net *.split 16:57 (quit) rapacity: *.net *.split 16:57 (quit) jonrafkind: *.net *.split 16:57 (quit) parcs: *.net *.split 16:57 (quit) alexsuraci: *.net *.split 16:57 (quit) asumu: *.net *.split 16:57 (quit) Lajla: *.net *.split 16:57 (quit) Quetzalcoatl_: *.net *.split 16:57 (quit) certainty: *.net *.split 16:57 (quit) spacebat: *.net *.split 16:57 (quit) carleastlund: *.net *.split 16:57 (quit) danking: *.net *.split 16:57 (quit) clklein: *.net *.split 16:57 (quit) fmu: *.net *.split 16:57 (quit) sid3k: *.net *.split 16:57 (quit) samth: *.net *.split 16:57 (quit) martinhex: *.net *.split 16:57 (quit) jao: *.net *.split 16:57 (quit) mceier: *.net *.split 16:57 (quit) offby1: *.net *.split 16:57 (quit) sethalves: *.net *.split 16:57 (quit) rudybot: *.net *.split 16:57 (quit) MayDaniel: *.net *.split 16:57 (quit) em: *.net *.split 16:57 (quit) Guest74073: *.net *.split 16:57 (join) tv|z 16:57 (join) martinhex 16:57 (join) abbe 16:57 (join) jonrafkind 16:57 (join) mwolfe 16:57 (join) rudybot 16:57 (join) jao 16:57 (join) carleastlund 16:57 (join) danking 16:57 (join) heeki 16:57 (join) mceier 16:57 (join) offby1 16:57 (join) parcs 16:57 (join) alexsuraci 16:57 (join) asumu 16:57 (join) em 16:57 (join) sethalves 16:57 (join) rapacity 16:57 (join) Guest74073 16:57 (join) clklein 16:57 (join) fmu 16:57 (join) sid3k 16:57 (join) samth 16:57 (join) Lajla 16:57 (join) Quetzalcoatl_ 16:57 (join) certainty 16:57 (join) spacebat 17:00 (quit) tv|z: Read error: Operation timed out 17:02 (join) tv|z 17:10 (quit) asumu: Read error: Connection reset by peer 18:14 (quit) mceier: Quit: leaving 18:27 (join) asumu 18:50 (quit) alexsuraci: Read error: Operation timed out 19:04 (quit) carleastlund: Quit: carleastlund 19:16 (join) alexsuraci 19:17 (quit) alexsuraci: Client Quit 19:17 (join) alexsuraci 19:21 (quit) jonrafkind: Read error: Operation timed out 19:22 (quit) asumu: Ping timeout: 276 seconds 19:25 (quit) mwolfe: Remote host closed the connection 19:39 (quit) martinhex: Remote host closed the connection 19:45 (join) martinhex 20:27 (quit) masm: Quit: Leaving. 20:32 (join) mwolfe 21:39 (quit) parcs: Ping timeout: 260 seconds 21:40 (join) parcs 21:55 (join) offby1` 21:55 (quit) offby1: Disconnected by services 21:56 (nick) offby1` -> offby1 22:02 (join) shofetim 22:52 (quit) martinhex: Remote host closed the connection 22:53 (join) martinhex 23:40 (quit) heeki: Quit: ERC Version 5.3 (IRC client for Emacs) 23:57 (quit) somnium: Remote host closed the connection